partitions: aix: bound the pp_count scan to the ppe array (Linux Linux)

CVE-2026-64318
HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 < 09861651617ba0fec089e8b9477439e68398c110 ; affected 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 < 5eacdb1967378f5e5591cd27a2d8cdee2df1a599 ; affected 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 < b5e9c09309e18fd9839ad007c238120353ca0cc4 ; affected 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 < fd94a779020f2ecc8b2607f4c20b34acb1763b9a ; affected 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 < 4671bb74bba05fdd4acf670a35758c29e8c97b83 ; affected 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 < ce93228e2193a17d2c58b656e439bb39fe5c3af8
Linux · Linuxaffected 3.11 ; unaffected 0 < 3.11 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD