CVE-2025-38565

perf/core: Exit early on perf_mmap() fail

HIGH
7.8
CVSS Score
Published: August 19, 2025 at 05:02 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: perf/core: Exit early on perf_mmap() fail When perf_mmap() fails to allocate a buffer, it still invokes the event_mapped() callback of the related event. On X86 this might increase the perf_rdpmc_allowed reference counter. But nothing undoes this as perf_mmap_close() is never called in this case, which causes another reference count leak. Return early on failure to prevent that.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.0 ≤ v < 5.10.2414.0 ≤ v < 5.15.1904.0 ≤ v < 5.4.2974.0 ≤ v < 6.1.1484.0 ≤ v < 6.12.424.0 ≤ v < 6.15.104.0 ≤ v < 6.16.14.0 ≤ v < 6.174.0 ≤ v < 6.6.1025.11 ≤ v < 5.15.1905.16 ≤ v < 6.1.1485.5 ≤ v < 5.10.2416.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.2 ≤ v < 6.6.1026.7 ≤ v < 6.12.421e0fb9ec679c9273a641f1d6f3d25ea47baef2bb4.0
Vendor states this is fixed in 07091aade394f690e7b655578140ef84d0e8d7b0 (fixed)
Vendor states this is fixed in 163b0d1a209fe0df5476c1df2330ca12b55abf92 (fixed)
Vendor states this is fixed in 27d44145bd576bbef9bf6165bcd78128ec3e6cbd (fixed)
Vendor states this is fixed in 5ffda7f3ed76ec8defc19d985e33b3b82ba07839 (fixed)
Vendor states this is fixed in 7ff8521f30c4c2fcd4e88bd7640486602bf8a650 (fixed)
Vendor states this is fixed in 92043120a2e992800580855498ab8507e1b22db9 (fixed)
Vendor states this is fixed in 9b90a48c7de828a15c7a4fc565d46999c6e22d6b (fixed)
Vendor states this is fixed in de85e72598d89880a02170a1cbc27b35a7d978a9 (fixed)
Vendor states this is fixed in f41e9eba77bf97626e04296dc5677d02816d2432 (fixed)
Vendor states this is fixed in 4.0 (unaffected)
Vendor states this is fixed in 5.10.241 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 5.4.297 (unaffected)
Vendor states this is fixed in 6.1.148 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.102 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/07091aade394f690e7b655578140ef84d0e8d7b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/163b0d1a209fe0df5476c1df2330ca12b55abf92
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27d44145bd576bbef9bf6165bcd78128ec3e6cbd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5ffda7f3ed76ec8defc19d985e33b3b82ba07839
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7ff8521f30c4c2fcd4e88bd7640486602bf8a650
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92043120a2e992800580855498ab8507e1b22db9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b90a48c7de828a15c7a4fc565d46999c6e22d6b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/de85e72598d89880a02170a1cbc27b35a7d978a9

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card