CVE-2025-38358
BaseFortify
Publication date: 2025-07-25
Last updated on: 2025-11-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | 6.16 |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-362 | The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a race condition in the Linux kernel's Btrfs filesystem code. It occurs between the asynchronous metadata reclaim worker and the unmount sequence's close_ctree() function. Specifically, the async reclaim worker tries to add a delayed inode put (delayed iput) after the filesystem state has been set to disallow delayed iputs, causing an assertion failure. The issue arises because the flag BTRFS_FS_STATE_NO_DELAYED_IPUT is set too early before the async reclaim workers have finished, leading to a conflict when the async worker attempts to add a delayed iput. The fix involves setting this flag only after waiting for the async reclaim workers to finish and running all delayed iputs beforehand.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to hit an assertion failure and potentially crash or become unstable when using the Btrfs filesystem. This could lead to system instability, data loss, or denial of service during filesystem unmount or heavy asynchronous metadata reclaim operations.