CVE-2025-40327
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40327 is a Linux kernel vulnerability in the perf/core subsystem that causes a system hang (deadlock) when cpu-clock software events are used, particularly by profiling tools such as async-profiler. The issue was introduced by commit 18dbcbfabfff ("perf: Fix the POLL_HUP delivery breakage") and affects Linux kernel versions from that commit up to (but not including) the fixed commits 6b8c512811644cf2f5eaf6f44e928683c54127f0 and eb3182ef0405ff2f6668fd3e5ff9883f60ce8801. It was published on December 9, 2025. The CVSS score has not been formally assigned; Feedly estimates the severity as Medium, and the ENISA EUVD lists a base score of 0.0 pending official scoring (Feedly, ENISA EUVD).

Technical details

The root cause is a recursive deadlock (CWE-833: Deadlock) in the Linux kernel's performance event subsystem. cpu-clock is a software event type that relies on high-resolution timers (hrtimers). When __perf_event_overflow() is invoked from within an hrtimer handler for a cpu-clock event, it attempts to stop the event by calling cpu_clock_event_stop(), which in turn calls hrtimer_cancel() to cancel the active hrtimer. Calling hrtimer_cancel() from within an hrtimer handler causes a recursive lock acquisition, resulting in a deadlock and system hang. The fix replaces hrtimer_cancel() with hrtimer_try_to_cancel() and sets the PERF_HES_STOPPED flag so that perf_swevent_hrtimer() can cleanly stop the event upon detecting the flag (Feedly, ENISA EUVD).

Impact

Successful triggering of this vulnerability causes a complete system hang (deadlock), resulting in a total loss of availability for the affected Linux host. Any local user or process with permission to use perf cpu-clock events — including profiling tools like async-profiler — can inadvertently or deliberately trigger the hang. There is no known confidentiality or integrity impact; the primary consequence is a denial of service requiring a hard reboot to recover (Feedly, ENISA EUVD).

Mitigation and workarounds

The fix is included in Linux kernel stable commits 6b8c512811644cf2f5eaf6f44e928683c54127f0 (for one stable branch) and eb3182ef0405ff2f6668fd3e5ff9883f60ce8801 (for another), as well as in kernel version 6.17.8 and the 6.18 release. Administrators should update to a patched kernel version as soon as it is available from their Linux distribution. As a temporary workaround, restricting unprivileged access to perf events (e.g., via kernel.perf_event_paranoid sysctl) or disabling use of cpu-clock profiling tools like async-profiler can reduce exposure until a patch is applied (Feedly, ENISA EUVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management