CVE-2026-143279: cpufreq: Hold the policy write lock when changing boost state
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: Hold the policy write lock when changing boost state
The per-policy boost sysfs handler calls policysetboost() under policy->rwsem, but the global boost handler and cpufreqonline() do not. Consequently, global and per-policy boost changes can concurrently update policy->boostenabled, invoke the driver callback and update the boost frequency QoS request. The driver callbacks also access policy state, e.g. CPPC updates cpuinfo.maxfreq that assumes policy->rwsem held.
Take policy->rwsem around policysetboost() in both unlocked callers. Keep locking at the call sites because the per-policy sysfs handler already holds the lock.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
Concurrent boost-state changes are required: a global boost change or CPU frequency policy online operation must overlap with a per-policy or other boost update. The race affects updates to policy->boost_enabled, driver callbacks, and boost frequency QoS requests.
Which systems are most exposed?
Linux kernel systems using CPU frequency scaling with boost support are relevant. Exposure is greatest where global boost controls, per-policy boost controls, or CPU policy online events can occur concurrently.
What is the practical impact of the race?
Concurrent callers can update boost policy state without the required policy write lock while invoking driver callbacks. Drivers that access policy state under the assumption that policy->rwsem is held, such as CPPC when updating cpuinfo.max_freq, may observe unsafe concurrent access.
What does the fix change?
The fix takes policy->rwsem around policy_set_boost() in the global boost handler and cpufreq_online(). The existing per-policy sysfs handler already holds this lock, so its locking behavior is retained.