# perf/core: Exit early on perf_mmap() fail

CVE record · `CVE-2025-38565`

- **Identifiers:** `CVE-2025-38565`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 19 Aug 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 19 Aug 2025, 17:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 5ffda7f3ed76ec8defc19d985e33b3b82ba07839` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 9b90a48c7de828a15c7a4fc565d46999c6e22d6b` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before de85e72598d89880a02170a1cbc27b35a7d978a9` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 27d44145bd576bbef9bf6165bcd78128ec3e6cbd` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before f41e9eba77bf97626e04296dc5677d02816d2432` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 92043120a2e992800580855498ab8507e1b22db9` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 163b0d1a209fe0df5476c1df2330ca12b55abf92` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 7ff8521f30c4c2fcd4e88bd7640486602bf8a650` (git)
  - affected: `1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb to before 07091aade394f690e7b655578140ef84d0e8d7b0` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.0`
  - unaffected: `before 4.0` (semver)
  - unaffected: `5.4.297 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.241 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.190 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.148 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.102 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.42 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.10 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16.1 to 6.16.*, inclusive` (semver)
  - unaffected: `6.17 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Linux kernel versions from 4.0 until the fixes are affected: when perf_mmap() fails to allocate a buffer, it still runs event_mapped(), leaking a reference count. The source gives few details on the impact or what an attacker needs. Upgrade to 5.4.297, 5.10.241, 5.15.190, 6.1.148 or a later release in the same series.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 12th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 19 Aug 2025, 17:02 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38565)
- 19 Aug 2025, 17:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38565)

## Sources

- [CVE List: CVE-2025-38565](https://www.cve.org/CVERecord?id=CVE-2025-38565)
- [NVD: CVE-2025-38565](https://nvd.nist.gov/vuln/detail/CVE-2025-38565)

### References from the CNA

- <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>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38565>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38565/>. Everything for agents: <https://agentprime.io/llms.txt>.
