CVE-2025-39779: Linux kernel · btrfs: subpage: keep TOWRITE tag until folio is cleaned
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 19 Nov 2026, 02:21 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 11 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
AI-suggested
A fix is available that corrects the handling of the TOWRITE tag by retaining it until the folio is fully cleaned. Users should apply the official Linux kernel patch that replaces btrfs_subpage_set_writeback() with btrfs_subpage_set_writeback_keepwrite() to prevent the ordering break and kernel crashes.
Description
CVE-2025-39779 is a medium severity vulnerability in the Linux kernel's btrfs filesystem subpage writeback handling. The issue involves premature clearing of the PAGECACHE_TAG_TOWRITE tag during folio writeback, which breaks ordering guarantees required for proper filesystem operation. This can lead to kernel assertion failures and system crashes, particularly on zoned block device setups. The flaw is fixed by retaining the TOWRITE tag until the folio is fully cleaned.
References
- nvd.nist.gov/vuln/detail/CVE-2025-39779 (opens in a new tab)
- git.kernel.org/stable/c/3d61136945a7008fc90d013c3c67007ce0c96131 (opens in a new tab)
- git.kernel.org/stable/c/b1511360c8ac882b0c52caa263620538e8d73220 (opens in a new tab)
- git.kernel.org/stable/c/bce7a5c77a1e7a759e227b7713dde18c52da4759 (opens in a new tab)