VDB

CVE-2025-38565

CVE-2025-38565 PUBLISHED

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.

PackageEcosystemFixed in
kernel-livepatch-6.12.46-66.121Amazon Linux1:1.0-0.amzn2023
perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
python3-perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
python3-perfAmazon Linux1:6.1.148-173.267.amzn2023
kernel-modules-extraAmazon Linux1:6.1.148-173.267.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.46-66.121.amzn2023
LinuxLinuxf41e9eba77bf97626e04296dc5677d02816d2432, de85e72598d89880a02170a1cbc27b35a7d978a9, 9b90a48c7de828a15c7a4fc565d46999c6e22d6b, 92043120a2e992800580855498ab8507e1b22db9, 7ff8521f30c4c2fcd4e88bd7640486602bf8a650, 5ffda7f3ed76ec8defc19d985e33b3b82ba07839, 27d44145bd576bbef9bf6165bcd78128ec3e6cbd, 163b0d1a209fe0df5476c1df2330ca12b55abf92, 07091aade394f690e7b655578140ef84d0e8d7b0

Affected products

VendorProductVersions
LinuxLinux1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb
LinuxLinux4.0, 0, 5.4.297
amazon:2023kernel-livepatch-6.12.46-66.1210
amazon:2023perf6.120
amazon:2023python3-perf6.120
amazon:2023python3-perf0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.12-modules-extra0
LinuxLinux6.1.148, 5.15.190, 5.10.241
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-libbpf0
amazon:2023kernel6.12-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-tools0
amazon:2023kernel-modules-extra-common0
amazon:2023bpftool0
amazon:2023bpftool6.120
amazon:2023kernel-devel0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›