Description
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 policy_set_boost() under policy->rwsem, but the global boost handler and cpufreq_online() do not. Consequently, global and per-policy boost changes can concurrently update policy->boost_enabled, invoke the driver callback and update the boost frequency QoS request. The driver callbacks also access policy state, e.g. CPPC updates cpuinfo.max_freq that assumes policy->rw_sem held. Take policy->rwsem around policy_set_boost() in both unlocked callers. Keep locking at the call sites because the per-policy sysfs handler already holds the lock.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
218a06a79d9a98a96ef46bb003d4d8adb0962056 to < 181aee5f26ecc8d5654c2ca43862ef669b044302affected218a06a79d9a98a96ef46bb003d4d8adb0962056 to < 5a4d0d190f210073e3fed6e876ffcb7cbd677b72affected218a06a79d9a98a96ef46bb003d4d8adb0962056 to < e6f50e602e373583423654ec000cad8b8d08f7bcaffected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected