{"id":"CVE-2026-31449","aliases":["CVE-2026-31449"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: validate p_idx bounds in ext4_ext_correct_indexes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: validate p_idx bounds in ext4_ext_correct_indexes\n\next4_ext_correct_indexes() walks up the extent tree correcting\nindex entries when the first extent in a leaf is modified. Before\naccessing path[k].p_idx->ei_block, there is no validation that\np_idx falls within the valid range of index entries for that\nlevel.\n\nIf the on-disk extent header contains a corrupted or crafted\neh_entries value, p_idx can point past the end of the allocated\nbuffer, causing a slab-out-of-bounds read.\n\nFix this by validating path[k].p_idx against EXT_LAST_INDEX() at\nboth access sites: before the while loop and inside it. Return\n-EFSCORRUPTED if the index pointer is out of range, consistent\nwith how other bounds violations are handled in the ext4 extent\ntree code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: validate p_idx bounds in ext4_ext_correct_indexes\n\next4_ext_correct_indexes() walks up the extent tree correcting\nindex entries when the first extent in a leaf is modified. Before\naccessing path[k].p_idx->ei_block, there is no validation that\np_idx falls within the valid range of index entries for that\nlevel.\n\nIf the on-disk extent header contains a corrupted or crafted\neh_entries value, p_idx can point past the end of the allocated\nbuffer, causing a slab-out-of-bounds read.\n\nFix this by validating path[k].p_idx against EXT_LAST_INDEX() at\nboth access sites: before the while loop and inside it. Return\n-EFSCORRUPTED if the index pointer is out of range, consistent\nwith how other bounds violations are handled in the ext4 extent\ntree code.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\next4: validar los límites de p_idx en ext4_ext_correct_indexes\n\next4_ext_correct_indexes() recorre el árbol de extensiones corrigiendo las entradas de índice cuando se modifica la primera extensión en una hoja. Antes de acceder a path[k].p_idx -> ei_block, no hay validación de que p_idx caiga dentro del rango válido de entradas de índice para ese nivel.\n\nSi el encabezado de extensión en disco contiene un valor eh_entries corrupto o manipulado, p_idx puede apuntar más allá del final del búfer asignado, causando una lectura fuera de límites de slab.\n\nEsto se soluciona validando path[k].p_idx contra EXT_LAST_INDEX() en ambos sitios de acceso: antes del bucle while y dentro de él. Devolver -EFSCORRUPTED si el puntero de índice está fuera de rango, consistente con cómo se manejan otras violaciones de límites en el código del árbol de extensiones ext4.","source":"nvd"}],"published":"2026-04-22T13:53:44.777Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"39d6e2b67651614bac0dc6592fa9836321910067","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"c5839b34704c9c2f47f079451bdbb22de0da1ed1","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"10242e640b36b91ad03d25f3dc77854bbdff8358","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"4d08401aa13f1531216f1a7ae281ca4806e90a5c","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"407c944f217c17d4343148011acafebc604d55e1","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"93f2e975ed658ce09db4d4c2877ca2c06540df83","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"01bf1e0b997d82c0e353b51ed74ef99698043c33","status":"affected"},{"type":"git","introduced":"a86c61812637c7dd0c57e29880cffd477b62f2e7","fixed":"2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.19","status":"unaffected"},{"type":"semver","introduced":"5.10.259","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.210","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.19.1","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"2.6.19"},{"status":"affected","version":"2.6.19"},{"status":"affected","version":"2.6.19"},{"status":"affected","version":"2.6.19"},{"status":"affected","version":"2.6.19"},{"status":"affected","version":"2.6.19"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/39d6e2b67651614bac0dc6592fa9836321910067","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5839b34704c9c2f47f079451bdbb22de0da1ed1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10242e640b36b91ad03d25f3dc77854bbdff8358","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d08401aa13f1531216f1a7ae281ca4806e90a5c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/407c944f217c17d4343148011acafebc604d55e1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93f2e975ed658ce09db4d4c2877ca2c06540df83","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01bf1e0b997d82c0e353b51ed74ef99698043c33","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2acb5c12ebd860f30e4faf67e6cc8c44ddfe5fe8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:09:29.200Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31449","url":"https://www.cve.org/CVERecord?id=CVE-2026-31449","licence":"CVE Terms of Use","modified":"2026-11-10T12:44:24.918Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31449","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31449","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.267Z","epss":{"score":0.00193,"percentile":0.09379,"date":"2026-12-01T12:00:22.000Z"}}