CVE-2026-31449
ext4: validate p_idx bounds in ext4_ext_correct_indexes
Reported by linux · Published April 22, 2026
In the Linux kernel, the following vulnerability has been resolved: ext4: validate p_idx bounds in ext4_ext_correct_indexes ext4_ext_correct_indexes() walks up the extent tree correcting index entries when the first extent in a leaf is modified. Before accessing path[k].p_idx->ei_block, there is no validation that p_idx falls within the valid range of index entries for that level. If the on-disk extent header contains a corrupted or crafted eh_entries value, p_idx can point past the end of the allocated buffer, causing a slab-out-of-bounds read. Fix this by validating path[k].p_idx against EXT_LAST_INDEX() at both access sites: before the while loop and inside it. Return -EFSCORRUPTED if the index pointer is out of range, consistent with how other bounds violations are handled in the ext4 extent tree code.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12 | Amazon Linux | 1:6.12.80-105.147.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.80-105.147.amzn2023 |
| kernel-livepatch-6.12.80-105.147 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-livepatch-6.18.25-52.107 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.25-52.107.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.80-105.147.amzn2023 |
| linux_kernel | linux | 6.19.11, 6.18.21, 6.12.80 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a86c61812637c7dd0c57e29880cffd477b62f2e7, a86c61812637c7dd0c57e29880cffd477b62f2e7, a86c61812637c7dd0c57e29880cffd477b62f2e7 |
| Linux | Linux | 2.6.19, 0, 5.10.259 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.80-105.147 | 0 |
| amazon:2023 | kernel-livepatch-6.18.25-52.107 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.7, 3.1.6 |
| amazon:2023 | kernel6.18-devel | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.7, 3.1.6 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7 |
| linux | linux_kernel | 2.6.19, 2.6.19, 2.6.19 |
| Linux | Linux | 6.19.11, 7.0, 6.18.21 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.7, 3.1.6 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
…and 29 more
Timeline
- Apr 22, 2026 CVE Published
- Apr 23, 2026 Security Advisory (97 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jul 16, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (92 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-31449
vulnetix vdb fixes CVE-2026-31449
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-2026-31449/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart