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

Published Nov 30, 2026
·
Updated

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

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

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

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

- When resolving the base of the ranking data for a processor, the pointer is shifted by an extra "i nrclass" term, where i is the current bitmap index. The per-processor offset is already applied through apicindex, which uses the running count of active processors (apicstart). 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 nbitmaps value that would not fit within the shared memory region, and drop the bogus "i nrclass" term so the ranking data is addressed only through its correct per-processor offset.

Affected Software

5 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.17.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  4. Compensating control

    In amd_hfi_fill_metadata(), validate that firmware-provided n_bitmaps fits within the shared memory region (pcct_ext->length), and remove the extra i * nr_class term from the ranking-data pointer calculation so the per-processor offset is applied only once.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description
Data Sourced
via OSV·01:25 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Which systems are in scope?

The issue is in the Linux kernel's platform/x86/amd HFI code when it parses CPU core ranking data from firmware-provided PCC shared memory. The provided information does not identify affected kernel versions or specific hardware models.

2

Are fix commits available for backport verification?

The references identify fixes at stable commit IDs 70ef07bf84276694597697c17d439c945084fe61, 2a70ce6a31689b3c4c1b6ffba81742a0c6336d35, and b7b273844b94af9cc64907dccd9e7997c2b60f1a.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203