CVE-2025-38565
perf/core: Exit early on perf_mmap() fail
Reported by linux · Published August 19, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.12.46-66.121 | Amazon Linux | 1:1.0-0.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.148-173.267.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.148-173.267.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| Linux | Linux | f41e9eba77bf97626e04296dc5677d02816d2432, de85e72598d89880a02170a1cbc27b35a7d978a9, 9b90a48c7de828a15c7a4fc565d46999c6e22d6b, 92043120a2e992800580855498ab8507e1b22db9, 7ff8521f30c4c2fcd4e88bd7640486602bf8a650, 5ffda7f3ed76ec8defc19d985e33b3b82ba07839, 27d44145bd576bbef9bf6165bcd78128ec3e6cbd, 163b0d1a209fe0df5476c1df2330ca12b55abf92, 07091aade394f690e7b655578140ef84d0e8d7b0 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb |
| Linux | Linux | 4.0, 0, 5.4.297 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Linux | Linux | 6.1.148, 5.15.190, 5.10.241 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel-devel | 0 |
…and 12 more
Timeline
- Aug 19, 2025 CVE Published
- Aug 20, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (17 in total, the first dated here)
- Apr 20, 2026 Distribution Patch (157 in total, the first dated here)
- Apr 20, 2026 Security Advisory (181 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38565
vulnetix vdb fixes CVE-2025-38565
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38565/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart