CVE-2025-39779
BaseFortify
Publication date: 2025-09-11
Last updated on: 2025-11-25
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | 6.17 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-NVD-CWE-noinfo |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is in the Linux kernel's btrfs filesystem, specifically related to how writeback operations handle subpage folios. The function btrfs_subpage_set_writeback() clears a tag (PAGECACHE_TAG_TOWRITE) prematurely even when there are still dirty blocks in the folio. This breaks ordering guarantees required for proper writeback synchronization, causing failures such as kernel assertions and bugs during file operations, especially on zoned storage setups. The fix involves retaining the TOWRITE tag until the folio is fully cleaned to maintain correct write ordering.
How can this vulnerability impact me? :
This vulnerability can cause kernel crashes (BUGs) and assertion failures during file write operations on systems using the btrfs filesystem, particularly with zoned storage devices. It breaks the expected ordering of writebacks, potentially leading to data corruption or system instability when files are truncated or written concurrently. This can disrupt normal system operation and data integrity.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability manifests as a kernel BUG related to btrfs on zoned setups, often triggered by running specific tests like generic/464. Detection involves monitoring kernel logs for assertion failures or BUG messages referencing fs/btrfs/zoned.c:1899. You can check kernel logs using commands such as 'dmesg | grep btrfs' or 'journalctl -k | grep btrfs' to look for related error messages or kernel oopses.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version where this vulnerability is fixed, specifically one that uses the patched function btrfs_subpage_set_writeback_keepwrite() which retains the TOWRITE tag until the folio is clean. Until an update is applied, avoid workloads that trigger the bug, such as zoned btrfs setups performing concurrent writes that may cause ordering breaks.