# CVE-2025-38565: perf/core: Exit early on perf\_mmap() fail

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-19 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2025-38565, DEBIAN-CVE-2025-38565
- Record: https://cvemate.com/vulnerability/CVE-2025-38565 · JSON: https://cvemate.com/vulnerability/CVE-2025-38565/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.218%, percentile 13.054%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 153)

- debian linux (Debian): \< 6.1.148-1 \| \< 6.12.43-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-163.173 \| \< 6.8.0-147.147
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104 \| \< 6.8.0-1067.70
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1097.104~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1017.17~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104+fips1 \| \< 6.8.0-1067.70+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1101.110 \| \< 6.8.0-1071.79
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 40)

- <https://git.kernel.org/stable/c/5ffda7f3ed76ec8defc19d985e33b3b82ba07839>
- <https://git.kernel.org/stable/c/9b90a48c7de828a15c7a4fc565d46999c6e22d6b>
- <https://git.kernel.org/stable/c/de85e72598d89880a02170a1cbc27b35a7d978a9>
- <https://git.kernel.org/stable/c/27d44145bd576bbef9bf6165bcd78128ec3e6cbd>
- <https://git.kernel.org/stable/c/f41e9eba77bf97626e04296dc5677d02816d2432>
- <https://git.kernel.org/stable/c/92043120a2e992800580855498ab8507e1b22db9>
- <https://git.kernel.org/stable/c/163b0d1a209fe0df5476c1df2330ca12b55abf92>
- <https://git.kernel.org/stable/c/7ff8521f30c4c2fcd4e88bd7640486602bf8a650>
- <https://git.kernel.org/stable/c/07091aade394f690e7b655578140ef84d0e8d7b0>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://ubuntu.com/security/CVE-2025-38565>
- <https://www.cve.org/CVERecord?id=CVE-2025-38565>
- <https://git.kernel.org/linus/07091aade394f690e7b655578140ef84d0e8d7b0>
- <https://ubuntu.com/security/notices/USN-7879-1>
- <https://ubuntu.com/security/notices/USN-7879-2>
- <https://ubuntu.com/security/notices/USN-7880-1>
- <https://ubuntu.com/security/notices/USN-7879-3>
- <https://ubuntu.com/security/notices/USN-7909-1>
- <https://ubuntu.com/security/notices/USN-7879-4>

---

Data as of 2026-12-05T03:12:30.383Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
