CVE-2026-23332: cpufreq: intel_pstate: Fix crash during turbo disable
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: intel_pstate: Fix crash during turbo disable
When the system is booted with kernel command line argument "nosmt" or "maxcpus" to limit the number of CPUs, disabling turbo via:
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
results in a crash:
PF: supervisor read access in kernel mode
PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: Oops: 0000 [#1] SMP PTI ... RIP: 0010:store_no_turbo+0x100/0x1f0 ...
This occurs because for_each_possible_cpu() returns CPUs even if they are not online. For those CPUs, all_cpu_data[] will be NULL. Since commit 973207ae3d7c ("cpufreq: intel_pstate: Rearrange max frequency updates handling code"), all_cpu_data[] is dereferenced even for CPUs which are not online, causing the NULL pointer dereference.
To fix that, pass CPU number to intel_pstate_update_max_freq() and use all_cpu_data[] for those CPUs for which there is a valid cpufreq policy.
The Linux kernel CVE team has assigned CVE-2026-23332 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 973207ae3d7c3c92df4a382df5d7bd695deaa904 and fixed in 6.18.17 with commit a1850e2aef4d15405e7ff53fd51c4b3124d46182 Issue introduced in 6.16 with commit 973207ae3d7c3c92df4a382df5d7bd695deaa904 and fixed in 6.19.7 with commit d20d48916ce8531b157c2edeba76d69af2974270 Issue introduced in 6.16 with commit 973207ae3d7c3c92df4a382df5d7bd695deaa904 and fixed in 7.0-rc2 with commit 6b050482ec40569429d963ac52afa878691b04c9
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-23332
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/intel_pstate.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/a1850e2aef4d15405e7ff53fd51c4b3124d46182 https://git.kernel.org/stable/c/d20d48916ce8531b157c2edeba76d69af2974270 https://git.kernel.org/stable/c/6b050482ec40569429d963ac52afa878691b04c9