BreachSpiderVerified, not vibes

CVE-2025-40167 in Kernel products

High 7.8

In the Linux kernel, the following vulnerability has been resolved: ext4: detect invalid INLINE_DATA + EXTENTS flag combination syzbot reported a BUG_ON in ext4_es_cache_extent() when opening a verity file on a corrupted ext4 filesystem mounted without a journal. The issue is that the filesystem has an inode with...

Affects 1 product from 3 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS0.3%
EPSS percentile10th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Kernel — —
Linux Linux 3.8
Verity — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

In the Linux kernel, the following vulnerability has been resolved: ext4: detect invalid INLINE_DATA + EXTENTS flag combination syzbot reported a BUG_ON in ext4_es_cache_extent() when opening a verity file on a corrupted ext4 filesystem mounted without a journal. The issue is that the filesystem has an inode with both the INLINE_DATA and EXTENTS flags set: EXT4-fs error (device loop0): ext4_cache_extents:545: inode #15: comm syz.0.17: corrupted extent tree: lblk 0 < prev 66 Investigation revealed that the inode has both flags set: DEBUG: inode 15 - flag=1, i_inline_off=164, has_inline=1, extents_flag=1 This is an invalid combination since an inode should have either: - INLINE_DATA: data stored directly in the inode - EXTENTS: data stored in extent-mapped blocks Having both flags causes ext4_has_inline_data() to return true, skipping extent tree validation in __ext4_iget(). The unvalidated out-of-order extents then trigger a BUG_ON in ext4_es_cache_extent() due to integer underflow when calculating hole sizes. Fix this by detecting this invalid flag combination early in ext4_iget() and rejecting the corrupted inode.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40167
BreachSpider IDBS-2025-GLOBAL-258892-I
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2025-11-12
Last modified2026-10-19
SourceNVD

Analysis AI-written, not human-reviewed

A vulnerability in the Linux kernel's ext4 filesystem module allows for a BUG_ON condition when a corrupted filesystem with an inode having both INLINE_DATA and EXTENTS flags set is accessed without a journal.

The vulnerability is triggered by accessing a verity file on a corrupted ext4 filesystem that has been mounted without a journal. The specific issue arises from an inode having both the INLINE_DATA and EXTENTS flags set, which is an invalid combination.

Questions

What is CVE-2025-40167?

A vulnerability in the Linux kernel's ext4 filesystem module allows for a BUG_ON condition when a corrupted filesystem with an inode having both INLINE_DATA and EXTENTS flags set is accessed without a journal.

What is the CVSS score for CVE-2025-40167?

CVE-2025-40167 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.3%.

Is CVE-2025-40167 actively exploited?

No confirmed active exploitation of CVE-2025-40167 as of 2026-10-25.

How do I remediate CVE-2025-40167?

Priority: MEDIUM.

What systems are affected by CVE-2025-40167?

CVE-2025-40167 affects Kernel; Linux Linux; Verity.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Kernel","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.