CVE-2026-23271

perf: Fix __perf_event_overflow() vs perf_remove_from_context() race

Published Mar 20, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

This vulnerability is a race condition that occurs when the __perf_event_overflow() handler runs with only preemption disabled while the perf_event_exit_event() path frees objects that the overflow handler still expects to exist, such as BPF programs. The race can result in the handler dereferencing freed memory, which may lead to kernel memory corruption and a system crash. While the description does not explicitly state privilege escalation, memory corruption could potentially be leveraged by an attacker with sufficient execution control, so the impact may extend beyond denial of service.

Affected Systems

All Linux kernel implementations that do not include the patch enforcing IRQ disable in __perf_event_overflow() are affected. This covers every distribution kernel shipped before the commit that introduces the fix, including kernels listed in the provided CPEs (e.g., any kernel prior to 7.0‑rc1 that lacks the update). The flaw exists in systems that have the perf subsystem and BPF support enabled.

Risk and Exploitability

The CVSS score of 7.8 categorizes the flaw as high severity, while the EPSS score of less than 1 % indicates a low likelihood of exploitation in the wild. The vulnerability is not tracked in CISA’s KEV catalog. Exploitation would generally require a local attacker who can trigger a perf event overflow and race the cleanup path, implying that privileged or local access is needed to create the conditions necessary for the flaw to be triggered.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the race condition fix, which disables IRQs inside __perf_event_overflow()
  • If an immediate kernel update is not possible, temporarily disable the perf event handling or BPF subsystem to eliminate the race condition until a patched kernel is deployed
  • Monitor kernel logs for signs of perf overflow crashes and schedule the update at the earliest opportunity

Generated by OpenCVE AI on May 26, 2026 at 15:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4561-1 linux-6.1 security update
Debian DSA Debian DSA DSA-6238-1 linux security update
Debian DSA Debian DSA DSA-6243-1 linux security update
Ubuntu USN Ubuntu USN USN-8567-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-1 Linux kernel (GCP FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8596-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8608-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-3 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8665-1 Linux kernel (Raspberry Pi) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-362
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description 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.
Title perf: Fix __perf_event_overflow() vs perf_remove_from_context() race
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 10, 2026, 12:42 PM
Reserved
Jan 13, 2026, 3:37 PM
Status
Modified
Published
Mar 20, 2026, 9:16 AM
Modified
Nov 10, 2026, 1:18 PM
Severity
Moderate
Public date
Mar 20, 2026, 12:00 AM