# CVE-2026-31449: ext4: validate p\_idx bounds in ext4\_ext\_correct\_indexes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-04-22T13:53:44.777Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 39d6e2b67651614bac0dc6592fa9836321910067; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< c5839b34704c9c2f47f079451bdbb22de0da1ed1; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 10242e640b36b91ad03d25f3dc77854bbdff8358; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 4d08401aa13f1531216f1a7ae281ca4806e90a5c; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 407c944f217c17d4343148011acafebc604d55e1; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 93f2e975ed658ce09db4d4c2877ca2c06540df83; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 01bf1e0b997d82c0e353b51ed74ef99698043c33; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8
- Anyone running Linux 2.6.19

## Description

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.

## Affected and fixed versions

- Linux: \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 39d6e2b67651614bac0dc6592fa9836321910067; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< c5839b34704c9c2f47f079451bdbb22de0da1ed1; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 10242e640b36b91ad03d25f3dc77854bbdff8358; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 4d08401aa13f1531216f1a7ae281ca4806e90a5c; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 407c944f217c17d4343148011acafebc604d55e1; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 93f2e975ed658ce09db4d4c2877ca2c06540df83; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 01bf1e0b997d82c0e353b51ed74ef99698043c33; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8 (cvelist)
- Linux: 2.6.19 (cvelist)

## Mitigation

- Upgrade Linux to 2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31449. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31449.md
Affected: Linux >= a86c61812637c7dd0c57e29880cffd477b62f2e7, < 39d6e2b67651614bac0dc6592fa9836321910067; >= a86c61812637c7dd0c57e29880cffd477b62f2e7, < c5839b34704c9c2f47f079451bdbb22de0da1ed1; >= a86c61812637c7dd0c57e29880cffd477b62f2e7, < 10242e640b36b91ad03d25f3dc77854bbdff8358; >= a86c61812637c7dd0c57e29…
Fixed in: Linux 39d6e2b67651614bac0dc6592fa9836321910067, Linux 10242e640b36b91ad03d25f3dc77854bbdff8358, Linux 4d08401aa13f1531216f1a7ae281ca4806e90a5c, Linux 407c944f217c17d4343148011acafebc604d55e1, Linux 93f2e975ed658ce09db4d4c2877ca2c06540df83, Linux 01bf1e0b997d82c0e353b51ed74ef99698043c33, Linux 2acb5…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31449 being exploited?

There is no confirmed exploitation: CVE-2026-31449 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31449?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-31449?

Linux \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 39d6e2b67651614bac0dc6592fa9836321910067; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< c5839b34704c9c2f47f079451bdbb22de0da1ed1; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 10242e640b36b91ad03d25f3dc77854bbdff8358; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 4d08401aa13f1531216f1a7ae281ca4806e90a5c; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 407c944f217c17d4343148011acafebc604d55e1; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 93f2e975ed658ce09db4d4c2877ca2c06540df83; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 01bf1e0b997d82c0e353b51ed74ef99698043c33; \>= a86c61812637c7dd0c57e29880cffd477b62f2e7, \< 2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8; Linux 2.6.19.

### Is there a fix for CVE-2026-31449?

Yes. Fixed in Linux 39d6e2b67651614bac0dc6592fa9836321910067, Linux 10242e640b36b91ad03d25f3dc77854bbdff8358, Linux 4d08401aa13f1531216f1a7ae281ca4806e90a5c, Linux 407c944f217c17d4343148011acafebc604d55e1, Linux 93f2e975ed658ce09db4d4c2877ca2c06540df83, Linux 01bf1e0b997d82c0e353b51ed74ef99698043c33, Linux 2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8. Upgrade Linux to 2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8 or later.

### How do I check if I'm affected by CVE-2026-31449?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/407c944f217c17d4343148011acafebc604d55e1>
- patch: <https://git.kernel.org/stable/c/93f2e975ed658ce09db4d4c2877ca2c06540df83>
- patch: <https://git.kernel.org/stable/c/01bf1e0b997d82c0e353b51ed74ef99698043c33>
- patch: <https://git.kernel.org/stable/c/2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8>
- other: <https://git.kernel.org/stable/c/39d6e2b67651614bac0dc6592fa9836321910067>
- other: <https://git.kernel.org/stable/c/c5839b34704c9c2f47f079451bdbb22de0da1ed1>
- other: <https://git.kernel.org/stable/c/10242e640b36b91ad03d25f3dc77854bbdff8358>
- other: <https://git.kernel.org/stable/c/4d08401aa13f1531216f1a7ae281ca4806e90a5c>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31449>

HTML: <https://flawdb.com/CVE-2026-31449> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31449>
