CVE-2026-139001: cpufreq: CPPC: Create the FIE worker before enabling PCC callbacks
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: CPPC: Create the FIE worker before enabling PCC callbacks
cppcfreqinvarianceinit() creates the PCC worker only if an online CPU currently has PCC counters. A shared policy can also initialize an offline PCC member. When that CPU comes online, its callback queues work through the missing kworkerfie and dereferences NULL. A later hot-added PCC policy can encounter the same missing worker.
Create the worker when policy initialization encounters PCC counters, before initializing their work and publishing any callbacks. Serialize creation and reuse the worker until driver teardown. This covers offline policy members and later PCC policies without creating an unused deadline worker on direct-counter-only systems.
If worker allocation or scheduling setup fails, leave FIE unregistered for that policy. Keep the global FIE setting unchanged so direct-counter policies remain independent of worker setup and existing policies still drain their initialized work during teardown. Publish kworkerfie only after successful setup, allowing a later policy initialization to retry.