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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-08-19T17:02:41.700Z
- **Modified:** 2026-11-05T22:17:18.717Z

## Who should check

- Anyone running Linux \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 5ffda7f3ed76ec8defc19d985e33b3b82ba07839; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 9b90a48c7de828a15c7a4fc565d46999c6e22d6b; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< de85e72598d89880a02170a1cbc27b35a7d978a9; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 27d44145bd576bbef9bf6165bcd78128ec3e6cbd; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< f41e9eba77bf97626e04296dc5677d02816d2432; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 92043120a2e992800580855498ab8507e1b22db9; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 163b0d1a209fe0df5476c1df2330ca12b55abf92; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 7ff8521f30c4c2fcd4e88bd7640486602bf8a650; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 07091aade394f690e7b655578140ef84d0e8d7b0
- Anyone running Linux 4.0

## 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 and fixed versions

- Linux: \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 5ffda7f3ed76ec8defc19d985e33b3b82ba07839; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 9b90a48c7de828a15c7a4fc565d46999c6e22d6b; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< de85e72598d89880a02170a1cbc27b35a7d978a9; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 27d44145bd576bbef9bf6165bcd78128ec3e6cbd; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< f41e9eba77bf97626e04296dc5677d02816d2432; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 92043120a2e992800580855498ab8507e1b22db9; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 163b0d1a209fe0df5476c1df2330ca12b55abf92; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 7ff8521f30c4c2fcd4e88bd7640486602bf8a650; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 07091aade394f690e7b655578140ef84d0e8d7b0 (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- Upgrade Linux to 07091aade394f690e7b655578140ef84d0e8d7b0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38565. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38565.md
Affected: Linux >= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, < 5ffda7f3ed76ec8defc19d985e33b3b82ba07839; >= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, < 9b90a48c7de828a15c7a4fc565d46999c6e22d6b; >= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, < de85e72598d89880a02170a1cbc27b35a7d978a9; >= 1e0fb9ec679c9273a641f1d…
Fixed in: Linux 5ffda7f3ed76ec8defc19d985e33b3b82ba07839, Linux 9b90a48c7de828a15c7a4fc565d46999c6e22d6b, Linux 27d44145bd576bbef9bf6165bcd78128ec3e6cbd, Linux 92043120a2e992800580855498ab8507e1b22db9, Linux 163b0d1a209fe0df5476c1df2330ca12b55abf92, Linux 7ff8521f30c4c2fcd4e88bd7640486602bf8a650, Linux 07091…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38565 being exploited?

There is no confirmed exploitation: CVE-2025-38565 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38565?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38565?

Linux \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 5ffda7f3ed76ec8defc19d985e33b3b82ba07839; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 9b90a48c7de828a15c7a4fc565d46999c6e22d6b; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< de85e72598d89880a02170a1cbc27b35a7d978a9; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 27d44145bd576bbef9bf6165bcd78128ec3e6cbd; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< f41e9eba77bf97626e04296dc5677d02816d2432; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 92043120a2e992800580855498ab8507e1b22db9; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 163b0d1a209fe0df5476c1df2330ca12b55abf92; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 7ff8521f30c4c2fcd4e88bd7640486602bf8a650; \>= 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, \< 07091aade394f690e7b655578140ef84d0e8d7b0; Linux 4.0.

### Is there a fix for CVE-2025-38565?

Yes. Fixed in Linux 5ffda7f3ed76ec8defc19d985e33b3b82ba07839, Linux 9b90a48c7de828a15c7a4fc565d46999c6e22d6b, Linux 27d44145bd576bbef9bf6165bcd78128ec3e6cbd, Linux 92043120a2e992800580855498ab8507e1b22db9, Linux 163b0d1a209fe0df5476c1df2330ca12b55abf92, Linux 7ff8521f30c4c2fcd4e88bd7640486602bf8a650, Linux 07091aade394f690e7b655578140ef84d0e8d7b0. Upgrade Linux to 07091aade394f690e7b655578140ef84d0e8d7b0 or later.

### How do I check if I'm affected by CVE-2025-38565?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5ffda7f3ed76ec8defc19d985e33b3b82ba07839>
- patch: <https://git.kernel.org/stable/c/9b90a48c7de828a15c7a4fc565d46999c6e22d6b>
- patch: <https://git.kernel.org/stable/c/de85e72598d89880a02170a1cbc27b35a7d978a9>
- patch: <https://git.kernel.org/stable/c/27d44145bd576bbef9bf6165bcd78128ec3e6cbd>
- patch: <https://git.kernel.org/stable/c/f41e9eba77bf97626e04296dc5677d02816d2432>
- patch: <https://git.kernel.org/stable/c/92043120a2e992800580855498ab8507e1b22db9>
- patch: <https://git.kernel.org/stable/c/163b0d1a209fe0df5476c1df2330ca12b55abf92>
- patch: <https://git.kernel.org/stable/c/7ff8521f30c4c2fcd4e88bd7640486602bf8a650>
- patch: <https://git.kernel.org/stable/c/07091aade394f690e7b655578140ef84d0e8d7b0>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38565>

HTML: <https://flawdb.com/CVE-2025-38565> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38565>
