CVE-2025-40327
Last modified
CVE-2025-40327 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix system hang caused by cpu-clock usage cpu-clock usage by the async-profiler tool can trigger a system hang, which got bisected back to the following commit by Octavia Togami: 18dbcbfabfff ("perf: Fix the POLL_HUP delivery breakage") causes this issue The root cause of the hang is that cpu-clock is a special type of SW event which relies on hrtimers. The __perf_event_overflow() callback is invoked from the hrtimer handler for cpu-clock events, and __perf_event_overflow() tries to call cpu_clock_event_stop() to stop the event, which calls htimer_cancel() to cancel the hrtimer. But that's a recursion into the hrtimer code from a hrtimer handler, which (unsurprisingly) deadlocks. To fix this bug, use hrtimer_try_to_cancel() instead, and set the PERF_HES_STOPPED flag, which causes perf_swevent_hrtimer() to stop the event once it sees the PERF_HES_STOPPED flag. [ mingo: Fixed the comments and improved the changelog. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix system hang caused by cpu-clock usage cpu-clock usage by the async-profiler tool can trigger a system hang, which got bisected back to the following commit by Octavia Togami: 18dbcbfabfff ("perf: Fix the POLL_HUP delivery breakage") causes this issue The root cause of the hang is that cpu-clock is a special type of SW event which relies on hrtimers. The __perf_event_overflow() callback is invoked from the hrtimer handler for cpu-clock events, and __perf_event_overflow() tries to call cpu_clock_event_stop() to stop the event, which calls htimer_cancel() to cancel the hrtimer. But that's a recursion into the hrtimer code from a hrtimer handler, which (unsurprisingly) deadlocks. To fix this bug, use hrtimer_try_to_cancel() instead, and set the PERF_HES_STOPPED flag, which causes perf_swevent_hrtimer() to stop the event once it sees the PERF_HES_STOPPED flag. [ mingo: Fixed the comments and improved the changelog. ]
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 18dbcbfabfffc4a5d3ea10290c5ad27f22b0d240, < 6b8c512811644cf2f5eaf6f44e928683c54127f0; >= 18dbcbfabfffc4a5d3ea10290c5ad27f22b0d240, < eb3182ef0405ff2f6668fd3e5ff9883f60ce8801; b2de0c9ce8e542b5cb4cd3944620d9dd1ea1f0ac; >= 6.16.8, < 6.17 |
| Linux | Linux | 6.17 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40327?
How severe is CVE-2025-40327?
How do I fix CVE-2025-40327?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40321In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40322In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-40323In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40324In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40325In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-40326In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40328In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40329In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4033A vulnerability classified as critical has been found in PHP…9.8
- CVE-2025-40330In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40331In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40332In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40327?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
