CVE-2026-99788: ACPI: CPPC: Validate FFH register fields before hardware access
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ACPI: CPPC: Validate FFH register fields before hardware access
The x86 CPPC FFH accessors construct masks and shift values using the firmware's Bit Width and Bit Offset without checking that the field fits in an MSR. A zero-width field or a field extending beyond bit 63 can therefore cause an invalid shift. The safe MSR accessors only handle an access fault, not invalid field arithmetic after a successful read.
Also, the 64-bit GAS address is implicitly narrowed to the 32-bit MSR number. A descriptor with nonzero upper address bits can access a different MSR from the one described by firmware.
The arm64 AMU counter readers have the same unchecked field arithmetic. Validate the field bounds before reading a counter, including both descriptors in the paired counter path.
Dispatch FFH accesses before decoding the GAS Access Size in the common read and write paths. Otherwise, a large access_width can trigger an invalid shift in GET_BIT_WIDTH() before the architecture validates its register. That field has architecture-specific FFH semantics and is not needed by the generic memory/port accessor on this path.
Validate x86 MSR addresses and share the field-bounds checks between related accessors within each architecture.
The Linux kernel CVE team has assigned CVE-2026-99788 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.9 with commit a6cbcdd5ab5f242d49f511127f0a601b71be2cc4 and fixed in 6.12.118 with commit dd2322d548cc1b424da6d07e69eeab7543020106 Issue introduced in 4.9 with commit a6cbcdd5ab5f242d49f511127f0a601b71be2cc4 and fixed in 6.18.64 with commit 353c0cb4375c57d282449cf87e8e405c2e8bc8ed Issue introduced in 4.9 with commit a6cbcdd5ab5f242d49f511127f0a601b71be2cc4 and fixed in 7.3.5 with commit 4f6a4864308b57cf7aa38ddd07cf4ddcecfbcc41 Issue introduced in 4.9 with commit a6cbcdd5ab5f242d49f511127f0a601b71be2cc4 and fixed in 7.4-rc1 with commit 6b016c5c96448c0a5f09328d37f66562d154a5e5
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99788
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/arm64/kernel/topology.c arch/x86/kernel/acpi/cppc.c drivers/acpi/cppc_acpi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/dd2322d548cc1b424da6d07e69eeab7543020106 https://git.kernel.org/stable/c/353c0cb4375c57d282449cf87e8e405c2e8bc8ed https://git.kernel.org/stable/c/4f6a4864308b57cf7aa38ddd07cf4ddcecfbcc41 https://git.kernel.org/stable/c/6b016c5c96448c0a5f09328d37f66562d154a5e5