CVE-2026-64318

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

State
Published
Severity
7.1 High
Published
Jul 25, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before 09861651617ba0fec089e8b9477439e68398c110Affected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before 5eacdb1967378f5e5591cd27a2d8cdee2df1a599Affected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before b5e9c09309e18fd9839ad007c238120353ca0cc4Affected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before fd94a779020f2ecc8b2607f4c20b34acb1763b9aAffected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before 4671bb74bba05fdd4acf670a35758c29e8c97b83Affected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before ce93228e2193a17d2c58b656e439bb39fe5c3af8Affected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before 44f37ee92fdcd377c41bdf6a31cdd8cc7d4c410eAffected
  • 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 to before 2dc0bfd2fe355fb930de63c2f2eb8ced8570c579Affected
LinuxLinux
  • 3.11Affected
  • before 3.11Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.96 through 6.12.*Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.