CVE Database›Document archive›CVE-2025-40327

CVE-2025-40327

kernel: perf/core: Fix system hang caused by cpu-clock usage

Loading…

Severity

Moderate

Red Hat Product Security

6.5

CVSS 3.1

Review impact separately from score.

Published · December 9, 2025

Updated · June 30, 2026

Description

A flaw was found in the Linux kernel's perf subsystem. When using cpu-clock events, the __perf_event_overflow() callback is invoked from an hrtimer handler. This callback attempts to stop the event by calling cpu_clock_event_stop(), which in turn calls hrtimer_cancel() to cancel the hrtimer. This results in recursive entry into the hrtimer code from within an hrtimer handler, causing a deadlock and system hang. A local user with the ability to create perf events could exploit this to cause a denial of service.

Statement

This issue affects systems where local users can create perf cpu-clock events. The vulnerability requires local access and the ability to use the perf_event_open() system call, which may be restricted by the kernel.perf_event_paranoid sysctl setting. Exploitation leads to a system hang requiring a reboot to recover.

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 · 6.5
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H

CWE not specified