CVE-2025-39821: Linux kernel · perf: Avoid undefined behavior from stopping/starting inactive events
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 22 Nov 2026, 02:46 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
AI-suggested
A fix has been implemented that adds proper state checks in perf_event_throttle() and perf_event_unthrottle() to skip inactive events, preventing undefined behavior. Users should apply the official Linux kernel patch that addresses this issue. Since this is a kernel vulnerability, upgrading to a fixed kernel version is the recommended remediation. No additional mitigations are indicated by the vendor advisory.
Description
CVE-2025-39821 is a high-severity vulnerability in the Linux kernel's perf subsystem. It involves undefined behavior caused by stopping or starting inactive performance monitoring events, which can lead to invalid hardware index usage and UBSAN shift-out-of-bounds errors. The flaw arises from a logical error in handling event groups with disabled members during throttling. This issue affects kernel performance monitoring on arm64 and x86-64 architectures and has been addressed by adding state checks to skip inactive events during throttling operations.