In the Linux kernel, the following vulnerability has been resolved: ext4: detect invalid INLINE_DATA + EXTENTS flag combination syzbot reported a… (CVE-2025-40167)
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.
AI Analysis
Technical Summary
The Linux kernel ext4 filesystem had a vulnerability (CVE-2025-40167) where an inode could incorrectly have both INLINE_DATA and EXTENTS flags set. This invalid combination caused ext4_has_inline_data() to return true, which skipped extent tree validation in __ext4_iget(). Consequently, unvalidated out-of-order extents triggered a BUG_ON in ext4_es_cache_extent() due to integer underflow when calculating hole sizes. The flaw was detected by syzbot when opening a verity file on a corrupted ext4 filesystem mounted without a journal. The vulnerability is resolved by adding early detection of this invalid flag combination in ext4_iget() and rejecting the corrupted inode.
Potential Impact
This vulnerability can cause a kernel crash (BUG_ON) due to integer underflow when handling corrupted ext4 inodes with invalid flag combinations. The impact includes potential denial of service and possible compromise of system stability. The CVSS vector indicates local attack vector with low complexity, no privileges required, user interaction required, unchanged scope, and high confidentiality, integrity, and availability impacts.
Mitigation Recommendations
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.
In the Linux kernel, the following vulnerability has been resolved: ext4: detect invalid INLINE_DATA + EXTENTS flag combination syzbot reported a… (CVE-2025-40167)
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.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel ext4 filesystem had a vulnerability (CVE-2025-40167) where an inode could incorrectly have both INLINE_DATA and EXTENTS flags set. This invalid combination caused ext4_has_inline_data() to return true, which skipped extent tree validation in __ext4_iget(). Consequently, unvalidated out-of-order extents triggered a BUG_ON in ext4_es_cache_extent() due to integer underflow when calculating hole sizes. The flaw was detected by syzbot when opening a verity file on a corrupted ext4 filesystem mounted without a journal. The vulnerability is resolved by adding early detection of this invalid flag combination in ext4_iget() and rejecting the corrupted inode.
Potential Impact
This vulnerability can cause a kernel crash (BUG_ON) due to integer underflow when handling corrupted ext4 inodes with invalid flag combinations. The impact includes potential denial of service and possible compromise of system stability. The CVSS vector indicates local attack vector with low complexity, no privileges required, user interaction required, unchanged scope, and high confidentiality, integrity, and availability impacts.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x383-8hmc-j634
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40167"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f8479f4b
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 17:22:55 UTC
Last updated: 09/10/2026, 19:38:45 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.