Skip to main content

Linux Kernel CVE-2025-40167

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI
5.0 MEDIUM

Local corrupted-image mount requires privilege/interaction so PR:L and UI:R; the reported impact is a BUG_ON crash, so A:H with no confirmed confidentiality or integrity loss.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE
5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat
5.8 MEDIUM
qualitative

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Analysis Updated
Jul 30, 2026 - 08:50 vuln.today
v3 (cvss_changed)
Analysis Updated
Jul 30, 2026 - 08:50 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jul 30, 2026 - 06:37 vuln.today
cvss_changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:31 nvd
Patch available
Analysis Generated
Mar 28, 2026 - 19:21 vuln.today
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

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.

AnalysisAI

Denial-of-service in the Linux kernel ext4 filesystem driver allows a local attacker to trigger a kernel BUG_ON (panic) by inducing a victim to mount and access a specially crafted, corrupted ext4 image. The flaw stems from an inode that illegally carries both the INLINE_DATA and EXTENTS flags, which causes extent-tree validation to be skipped and an integer underflow during hole-size calculation in ext4_es_cache_extent(). Discovered via the syzbot fuzzer, it carries a low EPSS score (0.07%, 21st percentile), is not on the CISA KEV list, and has no public exploit identified at time of analysis, though a syzbot reproducer effectively exists.

Technical ContextAI

ext4 is the default filesystem for most Linux distributions and stores small files either directly inside the inode (INLINE_DATA feature) or in extent-mapped blocks (EXTENTS feature); these two storage modes are mutually exclusive by design. The root cause is a missing consistency check: when a corrupted inode sets both flags, ext4_has_inline_data() returns true, so __ext4_iget() skips extent-tree validation. The unvalidated, out-of-order extents are then fed into ext4_es_cache_extent(), where computing a hole size across non-monotonic logical block numbers underflows an unsigned integer and hits a BUG_ON. This is a classic improper input validation / uncaught-corruption class of bug (no CWE was assigned in the source data), specific to on-disk metadata trust boundaries and made reachable here because the filesystem was mounted without a journal, exercised while opening a fs-verity file.

Affected ProductsAI

The Linux kernel's ext4 filesystem driver is affected across multiple stable branches, as evidenced by the eight git.kernel.org stable-tree fix commits (e.g., 1437c95ab2a2, 1d3ad183943b, de985264eef6, f061f7c331fc). Exact vulnerable-to-fixed version ranges are not enumerated in the provided data, but Ubuntu confirms affected kernels and provides fixed packages via USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1). No CPE strings were supplied in the input, so precise version boundaries should be confirmed against each distribution's advisory.

RemediationAI

Upstream fix available (multiple stable-tree commits at git.kernel.org, e.g., 1437c95ab2a2b138 and backports); a released patched version is not independently pinned in the provided data, so apply your distribution's updated kernel packages - Ubuntu users should update per USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1) and reboot into the new kernel. Where immediate patching is not possible, the practical compensating control is to prevent untrusted ext4 images from being mounted: disable removable-media auto-mount (e.g., stop udisks2 automounting or restrict it via polkit) so users cannot passively mount attacker-crafted USB/loopback images, and avoid mounting untrusted filesystem images, with the trade-off that legitimate removable-media workflows are disrupted. Restricting mount capability to trusted administrators (do not grant CAP_SYS_ADMIN or unprivileged mount rights broadly) further limits the attack surface at the cost of convenience.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

Share

CVE-2025-40167 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy