CVE-2026-31449: ext4: validate p_idx bounds in ext4_ext_correct_indexes

Published Apr 22, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ext4: validate pidx bounds in ext4extcorrectindexes

ext4extcorrectindexes() walks up the extent tree correcting index entries when the first extent in a leaf is modified. Before accessing path[k].pidx->eiblock, there is no validation that pidx falls within the valid range of index entries for that level.

If the on-disk extent header contains a corrupted or crafted ehentries value, pidx can point past the end of the allocated buffer, causing a slab-out-of-bounds read.

Fix this by validating path[k].pidx against EXTLASTINDEX() 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 Software

15 affected components
Linux Linux kernel (ext4)
Linux Linux kernel>=2.6.19.1<6.12.80
Linux Linux kernel>=6.13<6.18.21
Linux Linux kernel>=6.19<6.19.11
Linux Linux kernel=2.6.19
Linux Linux kernel=2.6.19-rc2
Linux Linux kernel=2.6.19-rc3
Linux Linux kernel=2.6.19-rc4
Linux Linux kernel=2.6.19-rc5
Linux Linux kernel=2.6.19-rc6
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    On affected systems, treat this as a kernel ext4 bounds-validation issue and limit risk by using filesystem snapshots/mount options and restricting access to vulnerable ext4 volumes until the kernel fix is applied (vulnerability occurs during ext4 extent index correction when path[k].p_idx is crafted/out of range).

Event History

Apr 22, 2026
CVE Published
via MITRE·01:53 PM
Data Sourced
via MITRE·01:53 PM
DescriptionSeverity
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31449?

The severity of CVE-2026-31449 is rated high with a score of 7.8.

2

How do I fix CVE-2026-31449?

To fix CVE-2026-31449, apply the available patch provided by the Linux kernel.

3

What does CVE-2026-31449 affect?

CVE-2026-31449 affects the ext4 file system in the Linux kernel.

4

What type of vulnerability is CVE-2026-31449?

CVE-2026-31449 is a vulnerability related to improper validation of index bounds in the ext4 file system.

5

Can CVE-2026-31449 lead to data corruption?

Yes, CVE-2026-31449 can potentially lead to data corruption and increased risk due to improper handling of extent trees.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203