CVE-2026-99787: cpufreq: CPPC: Select the frequency-invariance callback per CPU
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: CPPC: Select the frequency-invariance callback per CPU
cppc_cpufreq_cpu_fie_init() initializes deferred work only for CPUs whose feedback counters use PCC. However, if any CPU in a shared policy uses PCC, it installs the PCC tick callback for the entire policy. With FIE enabled, a non-PCC CPU then queues an uninitialized irq_work and can call a NULL function pointer when that work runs.
Choose the frequency-invariance callback separately for each CPU using the recorded work-initialization state. Processor removal can unpublish the CPC descriptor before callback registration, so querying its counter transport again can incorrectly select direct reads for a PCC CPU.
Register the callbacks after all counter initialization has completed, so a failed initial read for an online CPU cannot leave a partially registered policy. PCC CPUs use their initialized deferred work, while non-PCC CPUs read their own counters directly from the tick.
The Linux kernel CVE team has assigned CVE-2026-99787 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.0 with commit 997c021abc6eb9cf7df39fa77fa5e666ad55e3a3 and fixed in 7.3.5 with commit 309af21d334f970ad32175eefd1f33d154c1160d Issue introduced in 7.0 with commit 997c021abc6eb9cf7df39fa77fa5e666ad55e3a3 and fixed in 7.4-rc1 with commit 21e018235d99bc86249b034c06646df8757b2852
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-99787
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:
drivers/cpufreq/cppc_cpufreq.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/309af21d334f970ad32175eefd1f33d154c1160d https://git.kernel.org/stable/c/21e018235d99bc86249b034c06646df8757b2852