CVE Database›CVE-2025-40167

CVE-2025-40167

kernel: ext4: detect invalid INLINE_DATA + EXTENTS flag combination

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · November 12, 2025

Updated · August 14, 2026

Description

A flaw was found in the Linux kernel’s ext4 filesystem: during inode initialization (__ext4_iget()), the code did not properly validate a corrupted inode that has both INLINE_DATA and EXTENTS flags set simultaneously. This invalid flag combination may cause ext4_has_inline_data() to return true, skipping validation of the extent tree, which in turn can lead to integer underflow in ext4_es_cache_extent(), triggering a kernel BUG_ON

Statement

This issue is triggered by a specially crafted disk image containing on-disk metadata inconsistencies. Exploitation requires that an attacker convince a user to download and use a malicious image from an untrusted source, a scenario with limited practical impact. Red Hat rates this as Low severity.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:H

CWE-191 · Integer Underflow (Wrap or Wraparound)