CVE-2025-40235: Linux kernel · btrfs: directly free partially initialized fs_info in btrfs_check_leaked_roots()
Source GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 03:38 UTC
Rated High by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 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 24 Nov 2026.
What to do
AI-suggested
Until a fix is available, avoid triggering the vulnerable code path by limiting use of Btrfs subvolume operations that could invoke btrfs_get_tree_subvol().
Description
CVE-2025-40235 is a vulnerability in the Linux kernel's Btrfs filesystem code where a NULL pointer dereference can occur in the btrfs_check_leaked_roots() function. This happens if certain allocations fail during subvolume tree retrieval, leading to an uninitialized pointer being freed and causing a kernel crash (Oops).
References
- nvd.nist.gov/vuln/detail/CVE-2025-40235 (opens in a new tab)
- git.kernel.org/stable/c/0c2b2d4d053e9840e6da6ed581befa20309f281a (opens in a new tab)
- git.kernel.org/stable/c/17679ac6df6c4830ba711835aa8cf961be36cfa1 (opens in a new tab)
- git.kernel.org/stable/c/b1c2b4e6ffd307720ab6ce42f6749b0c02ba0a73 (opens in a new tab)