CVE-2025-40167
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel-livepatch-6.1.158-178.288 | Amazon Linux | 1:1.0-0.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f19d5870cbf72d4cb2a8e1f749dff97af99b071e, f19d5870cbf72d4cb2a8e1f749dff97af99b071e, f19d5870cbf72d4cb2a8e1f749dff97af99b071e |
| Linux | Linux | 3.8, 0, 5.4.301 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.1.158-178.288 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| linux | linux_kernel | 3.8, 3.8, 3.8 |
| amazon:2023 | kernel-livepatch-6.12.55-74.119 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
…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