CVE-2025-38358
Linux Ubuntu vulnerability analysis and mitigation

Overview

CVE-2025-38358 is a vulnerability discovered in the Linux kernel, specifically affecting the btrfs filesystem component. The vulnerability was disclosed on July 25, 2025, and involves a race condition between the async reclaim worker and close_ctree() function. This issue affects the Linux kernel's btrfs implementation, particularly in the handling of delayed iput operations (NVD).

Technical details

The vulnerability stems from a race condition in the btrfs filesystem where an assertion failure occurs due to an attempt to add a delayed iput after BTRFSFSSTATENODELAYEDIPUT has been set in the fsinfo state. The issue manifests in the btrfsadddelayediput function at fs/btrfs/inode.c:3420. The race condition occurs between the async metadata reclaim worker and the unmount sequence, specifically during the interaction between shrinkdelalloc() and close_ctree() operations (NVD).

Impact

The vulnerability can lead to assertion failures in the Linux kernel when specific conditions are met during filesystem operations. While primarily affecting system stability, the issue could potentially cause system crashes or filesystem inconsistencies (NVD).

Mitigation and workarounds

The issue has been resolved by modifying when the BTRFSFSSTATENODELAYEDIPUT flag is set in the fsinfo state. The fix involves setting this flag only after waiting for async reclaim workers to finish and after running delayed iputs, but before setting the bit (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64460HIGH7.5
  • DjangoDjango
  • python-django
NoYesDec 02, 2025
CVE-2025-13735HIGH7.4
  • Linux UbuntuLinux Ubuntu
  • linux-aws-fips
NoNoNov 26, 2025
CVE-2025-13372MEDIUM4.3
  • DjangoDjango
  • python-django
NoYesDec 02, 2025
CVE-2025-2486LOW3.7
  • Linux DebianLinux Debian
  • edk2
NoYesNov 26, 2025
CVE-2025-66270N/AN/A
  • Linux DebianLinux Debian
  • kdeconnect
NoYesNov 27, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management