KernelScan.io

HIGH

perf Overflow Race

CVE-2026-23271

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.9MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: perf: Fix __perf_event_overflow() vs perf_remove_from_context() race Make sure that __perf_event_overflow() runs with IRQs disabled for all possible callchains. Specifically the software events can end up running it with only preemption disabled. This opens up a race vs perf_event_exit_event() and friends that will go and free various things the overflow path expects to be present, like the BPF program.

02

Engine v0.2.0

Risk summary

Local users with low privileges can trigger a race condition in the perf subsystem leading to a use-after-free. This can result in kernel memory corruption, privilege escalation, or system crashes when perf software events are processed concurrently with event cleanup operations.

Affectedkernel/events/core.c (perf subsystem)

Vulnerability analysis

The vulnerability stems from insufficient synchronization in __perf_event_overflow(), which can run with only preemption disabled for software events. This creates a race window against perf_event_exit_event() and related cleanup functions that concurrently free resources—including BPF programs and the perf_event structure itself—while the overflow path still references them. The fix ensures IRQs are disabled in the software event overflow path and adds state checking to serialize against event removal, closing the use-after-free window.

03

BranchFixed inPatch commit
6.16.1.1674df1a45819e5
6.126.12.775c48fdc4b462
6.186.18.173f89b61dd504
6.196.19.7bb190628fe5f
6.66.6.1304f8d58123378
mainline7.0c9bc1753b3cc