Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97961 Overview
CVE-2026-97961 is a Linux kernel vulnerability in the performance monitoring subsystem (perf/core). The flaw allows list corruption of sched_cb_list during perf_event_overflow() handling. A Performance Monitoring Unit (PMU) callback can trigger perf_sched_cb_dec() while the kernel is still iterating the list, removing an in-use node. The condition is reachable when a user invokes ioctl(fd, PERF_EVENT_IOC_REFRESH, ...) and perf_event::event_limit reaches zero. The upstream fix converts the iteration to for_each_list_entry_safe(), preventing the list from being corrupted during traversal.
Critical Impact
Local list corruption in the kernel perf subsystem can lead to memory corruption, kernel instability, or denial of service on affected Linux systems.
Affected Products
- Linux kernel (upstream perf/core subsystem)
- Distributions shipping affected kernel versions prior to the referenced stable commits
- Systems exposing perf_event_open and PERF_EVENT_IOC_REFRESH to unprivileged users
Discovery Timeline
- 2026-09-25 - CVE-2026-97961 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97961
Vulnerability Analysis
The perf/core subsystem lets a PMU register pmu::sched_task callbacks via perf_sched_cb_inc() and perf_sched_cb_dec(). The kernel invokes these callbacks by walking the sched_cb_list using a non-safe iterator. During traversal, the callback chain can reach perf_event_overflow() and then __perf_event_overflow(), which calls pmu->stop() and ultimately perf_sched_cb_dec(). That decrement removes the current entry from sched_cb_list while the outer loop still holds a pointer to it, producing list corruption.
The trigger path requires a user-controlled refresh operation. When ioctl(fd, PERF_EVENT_IOC_REFRESH, xxx) is called and event_limit decrements to zero, the overflow handler stops the event, which detaches the list node mid-iteration. The upstream patch replaces for_each_list_entry() with for_each_list_entry_safe(), allowing safe deletion during traversal.
Root Cause
The root cause is use of a non-safe list iterator over sched_cb_list in perf_pmu_sched_task() while callback execution can mutate the list. The design assumed list membership would remain stable during traversal, but the overflow path can call perf_sched_cb_dec() and unlink the current node.
Attack Vector
Exploitation requires local access and the ability to call perf_event_open() and issue PERF_EVENT_IOC_REFRESH ioctls. On systems where unprivileged perf_event_open is permitted (kernel.perf_event_paranoid set permissively), a local user can trigger the overflow path to corrupt kernel list state. Impact depends on timing but typically manifests as kernel memory corruption or a crash.
No verified public exploit code is available. See the upstream commits for the exact code paths involved: Linux Kernel Commit Fix and Linux Kernel Commit Patch.
Detection Methods for CVE-2026-97961
Indicators of Compromise
- Kernel oops or panic traces referencing perf_pmu_sched_task, __perf_event_overflow, or sched_cb_list
- Unexpected list debugging warnings such as list_del corruption in dmesg
- Repeated use of perf_event_open() followed by PERF_EVENT_IOC_REFRESH from non-privileged processes
Detection Strategies
- Audit kernel version strings across the fleet and compare against the fixed stable commits
- Enable CONFIG_DEBUG_LIST in non-production kernels to surface list corruption early
- Monitor syscall telemetry for anomalous perf_event_open and ioctl activity on PMU file descriptors
Monitoring Recommendations
- Collect dmesg and /var/log/kern.log centrally and alert on kernel panics or list corruption warnings
- Track processes using perf_event_open and correlate against expected profiling tools
- Review kernel.perf_event_paranoid sysctl values across hosts and alert on permissive settings
How to Mitigate CVE-2026-97961
Immediate Actions Required
- Apply the Linux stable kernel updates containing the for_each_list_entry_safe() conversion
- Restrict unprivileged use of perf_event_open() by setting kernel.perf_event_paranoid to 2 or higher
- Audit which workloads legitimately need PMU access and remove the capability from the rest
Patch Information
The fix is applied in multiple upstream stable branches. See the referenced commits: Linux Kernel Commit Update, Linux Kernel Commit Fix, Linux Kernel Commit Change, and Linux Kernel Commit Patch. Rebuild and deploy distribution kernels that incorporate these commits.
Workarounds
- Set kernel.perf_event_paranoid=3 to disallow unprivileged perf_event_open() entirely where supported
- Remove CAP_PERFMON and CAP_SYS_ADMIN from untrusted users and container workloads
- Disable or restrict profiling tooling in multi-tenant environments until kernels are patched
# Harden perf_event_open access until the kernel patch is deployed
sysctl -w kernel.perf_event_paranoid=3
echo 'kernel.perf_event_paranoid=3' > /etc/sysctl.d/99-perf-hardening.conf
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

