CVE-2025-40167: Linux kernel · ext4: detect invalid INLINE_DATA + EXTENTS flag combination
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
AI-suggested
A fix is available that detects and rejects inodes with the invalid INLINE_DATA and EXTENTS flag combination early in ext4_iget(). Users should apply the official Linux kernel updates that address this issue. Since no explicit patch links are provided here, consult the Linux kernel vendor advisories or mainline kernel updates for the fix. No additional mitigations are indicated by the vendor advisory.
Description
A vulnerability in the Linux kernel's ext4 filesystem was identified where an inode could have both INLINE_DATA and EXTENTS flags set simultaneously, an invalid state. This flaw leads to skipping extent tree validation, causing a kernel BUG_ON due to integer underflow when processing corrupted extents. The issue was reported by syzbot and affects ext4 filesystems mounted without a journal. The fix involves detecting and rejecting inodes with this invalid flag combination early during inode retrieval.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40167 (opens in a new tab)
- git.kernel.org/stable/c/1437c95ab2a28b138d4521653583729f61ccb48b (opens in a new tab)
- git.kernel.org/stable/c/1d3ad183943b38eec2acf72a0ae98e635dc8456b (opens in a new tab)
- git.kernel.org/stable/c/1f5ccd22ff482639133f2a0fe08f6d19d0e68717 (opens in a new tab)
- git.kernel.org/stable/c/2e9e10657b04152ed0d6ecae8d0c02a3405e28f5 (opens in a new tab)
- git.kernel.org/stable/c/4954d297c91d292630ab43ba4d195dc371ce65d3 (opens in a new tab)
- git.kernel.org/stable/c/cb6039b68efa547b676a8a10fc4618d9d1865c23 (opens in a new tab)
- git.kernel.org/stable/c/de985264eef64be8a90595908f2e6a87946dad34 (opens in a new tab)
- git.kernel.org/stable/c/f061f7c331fc16250fc82aa68964f35821687217 (opens in a new tab)