platform/x86/amd: hfi: Fix out-of-bounds reads when parsing ranking data

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

platform/x86/amd: hfi: Fix out-of-bounds reads when parsing ranking data

amd_hfi_fill_metadata() parses CPU core ranking data out of the firmware-provided PCC shared memory but trusts two values it should not:

- n_bitmaps is used to bound the outer loop that reads the APIC ID bitmaps from table_data[], but it is never validated against the size of the shared memory region (pcct_ext->length). A firmware-supplied count larger than the region reads past the end of table_data.

- When resolving the base of the ranking data for a processor, the pointer is shifted by an extra "i * nr_class" term, where i is the current bitmap index. The per-processor offset is already applied through apic_index, which uses the running count of active processors (apic_start). The extra shift compounds for every logical processor beyond the first bitmap (APIC ID >= 32), reading out of bounds.

Both result in out-of-bounds reads that can corrupt the ranking metrics, oops, or otherwise destabilise the system.

Reject an n_bitmaps value that would not fit within the shared memory region, and drop the bogus "i * nr_class" term so the ranking data is addressed only through its correct per-processor offset.

ProductVersions
Linux Linuxd4e95ea7a78e46be2f2fe529fe578d3834c453a2 to before 70ef07bf84276694597697c17d439c945084fe61 Affectedd4e95ea7a78e46be2f2fe529fe578d3834c453a2 to before 2a70ce6a31689b3c4c1b6ffba81742a0c6336d35 Affectedd4e95ea7a78e46be2f2fe529fe578d3834c453a2 to before b7b273844b94af9cc64907dccd9e7997c2b60f1a Affected
Linux Linux6.17 Affectedbefore 6.17 Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.