CVE Database›Document archive›CVE-2026-23271

CVE-2026-23271

kernel: perf: Fix __perf_event_overflow() vs perf_remove_from_context() race

Loading…

Severity

Moderate

Red Hat Product Security

5.8

CVSS 3.1

Review impact separately from score.

Published · March 20, 2026

Updated · July 3, 2026

Description

A flaw was found in the Linux kernel's perf subsystem. A race condition exists between the __perf_event_overflow() function and functions like perf_remove_from_context() or perf_event_exit_event(). This occurs because __perf_event_overflow() may execute with only preemption disabled, allowing other operations to free resources, such as BPF (Berkeley Packet Filter) programs, that the overflow path expects to be available. This could lead to system instability or a denial of service.

Statement

A race exists in the perf software event overflow handling where __perf_event_overflow can run without IRQs disabled for some callchains. This allows perf_event_release_kernel and perf_remove_from_context to free objects that the overflow path still expects to be present such as an attached BPF program. This is a classic lifetime bug and can result in use after free behavior which may manifest as a kernel crash. The issue is not network reachable and it requires local execution that can trigger perf overflow paths such as software events tracepoints or timer based sampling. Impact is denial of service. A conservative worst case includes limited confidentiality and integrity impact due to the use after free class but reliable privilege escalation is not demonstrated by the patch context.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

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

CWE-672 · Operation on a Resource after Expiration or Release