CVE-2026-64318
JSON

7.1high

partitions: aix: bound the pp_count scan to the ppe array

Severity
7.1high CVSS:3.1 by Linux
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: partitions: aix: bound the pp_count scan to the ppe array aix_partition() reads the physical volume descriptor into a fixed-size struct pvd and then scans its physical-partition-extent array: int numpps = be16_to_cpu(pvd->pp_count); ... for (i = 0; i < numpps; i += 1) { struct ppe *p = pvd->ppe + i; ... lp_ix = be16_to_cpu(p->lp_ix); pvd points at a single kmalloc()'d struct pvd whose ppe[] member holds a fixed ARRAY_SIZE(pvd->ppe) (1016) entries, but the loop runs up to the on-disk pp_count. pp_count is an unvalidated __be16 read straight from the descriptor, so a crafted AIX image with pp_count larger than 1016 drives the loop to read pvd->ppe[i] past the end of the allocation (up to 65535 entries, ~2 MB out of bounds). The partition scan runs without mounting anything, when a block device with a crafted AIX/IBM partition table appears (an attacker-supplied image attached with losetup -P, or a device auto-scanned by udev), via msdos_partition() -> aix_partition(). Clamp the scan to the number of entries the ppe[] array can hold.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before 09861651617ba0fec089e8b9477439e68398c110, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before 5eacdb1967378f5e5591cd27a2d8cdee2df1a599, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before b5e9c09309e18fd9839ad007c238120353ca0cc4, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before fd94a779020f2ecc8b2607f4c20b34acb1763b9a, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before 4671bb74bba05fdd4acf670a35758c29e8c97b83, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before ce93228e2193a17d2c58b656e439bb39fe5c3af8, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before 44f37ee92fdcd377c41bdf6a31cdd8cc7d4c410e, from 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 before 2dc0bfd2fe355fb930de63c2f2eb8ced8570c579 and 1 more
Not affected: before 3.11, from 5.10.261 up to 5.10.*, from 5.15.212 up to 5.15.*, from 6.1.178 up to 6.1.*, from 6.6.145 up to 6.6.*, from 6.12.96 up to 6.12.*
CVE List
linux linux_kernelfrom 3.11 before 5.10.261, from 5.11 before 5.15.212, from 5.16 before 6.1.178, from 6.2 before 6.6.145, from 6.7 before 6.12.96, from 6.13 before 6.18.39, from 6.19 before 7.1.4NVD

References

Sources

SourceRecordLicence
CVE ListCVE-2026-64318 changed 2026-08-17CVE Terms of Use
NVDCVE-2026-64318 changed 2026-09-03Public domain