VDB

CVE-2025-40167

CVE-2025-40167 PUBLISHED CVSS 7.8 HIGH

ext4: detect invalid INLINE_DATA + EXTENTS flag combination

Reported by linux · Published November 12, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux1:6.1.158-178.288.amzn2023
kernel-livepatch-6.1.158-178.288Amazon Linux1:1.0-0.amzn2023
python3-perf6.12Amazon Linux1:6.12.55-74.119.amzn2023
kernel-toolsAmazon Linux1:6.1.158-178.288.amzn2023

Risk scores

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

Affected products

VendorProductVersions
LinuxLinuxf19d5870cbf72d4cb2a8e1f749dff97af99b071e, f19d5870cbf72d4cb2a8e1f749dff97af99b071e, f19d5870cbf72d4cb2a8e1f749dff97af99b071e
LinuxLinux3.8, 0, 5.4.301
amazon:2023kernel-modules-extra0
amazon:2023kernel-livepatch-6.1.158-178.2880
amazon:2023python3-perf6.120
amazon:2023kernel-tools0
linuxlinux_kernel3.8, 3.8, 3.8
amazon:2023kernel-livepatch-6.12.55-74.1190
amazon:2023kernel6.12-libbpf-static0
amazon:2023perf0
amazon:2023kernel6.12-headers0
amazon:2023python3-perf0
amazon:2023kernel-libbpf0
amazon:2023perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.120

…and 12 more

Timeline

  • Nov 10, 2025 CVE Published
  • Nov 12, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (194 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (201 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40167
vulnetix vdb fixes CVE-2025-40167

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40167/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›