CVE-2025-39821Out-of-bounds Write in Linux

Severity
7.8HIGHNVD
EPSS
0.0%
top 93.11%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 16

Description

In the Linux kernel, the following vulnerability has been resolved: perf: Avoid undefined behavior from stopping/starting inactive events Calling pmu->start()/stop() on perf events in PERF_EVENT_STATE_OFF can leave event->hw.idx at -1. When PMU drivers later attempt to use this negative index as a shift exponent in bitwise operations, it leads to UBSAN shift-out-of-bounds reports. The issue is a logical flaw in how event groups handle throttling when some members are intentionally disabled. B

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages4 packages

NVDlinux/linux_kernel6.166.16.5+1
Debianlinux/linux_kernel< 6.16.5-1
CVEListV5linux/linux9734e25fbf5ae68eb04234b2cd14a4b36ab89141d689135aa9c5e4e0eab5a92bbe35dab0c8d6677f+2
debiandebian/linux< linux 6.16.5-1 (forky)

Patches

🔴Vulnerability Details

2
OSV
CVE-2025-39821: In the Linux kernel, the following vulnerability has been resolved: perf: Avoid undefined behavior from stopping/starting inactive events Calling pmu-2025-09-16
GHSA
GHSA-cqwc-52gw-4x53: In the Linux kernel, the following vulnerability has been resolved: perf: Avoid undefined behavior from stopping/starting inactive events Calling pm2025-09-16

📋Vendor Advisories

2
Red Hat
kernel: perf: Avoid undefined behavior from stopping/starting inactive events2025-09-16
Debian
CVE-2025-39821: linux - In the Linux kernel, the following vulnerability has been resolved: perf: Avoid...2025
CVE-2025-39821 — Out-of-bounds Write in Linux | cvebase