CVE-2025-38565
perf/core: Exit early on perf_mmap() fail
Check your servers for CVE-2025-38565
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38565 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 5ffda7f3ed76ec8defc19d985e33b3b82ba07839 affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 9b90a48c7de828a15c7a4fc565d46999c6e22d6b affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before de85e72598d89880a02170a1cbc27b35a7d978a9 affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 27d44145bd576bbef9bf6165bcd78128ec3e6cbd affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before f41e9eba77bf97626e04296dc5677d02816d2432 affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 92043120a2e992800580855498ab8507e1b22db9 affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 163b0d1a209fe0df5476c1df2330ca12b55abf92 affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 7ff8521f30c4c2fcd4e88bd7640486602bf8a650 affected from 1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb, before 07091aade394f690e7b655578140ef84d0e8d7b0
Other versions: unaffected
|
| Linux |
affected 4.0 unaffected before 4.0 unaffected from 5.4.297 up to and including 5.4.* unaffected from 5.10.241 up to and including 5.10.* unaffected from 5.15.190 up to and including 5.15.* unaffected from 6.1.148 up to and including 6.1.* unaffected from 6.6.102 up to and including 6.6.* unaffected from 6.12.42 up to and including 6.12.* unaffected from 6.15.10 up to and including 6.15.* unaffected from 6.16.1 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38565 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38565
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38565
trivy image --scanners vuln IMAGE | grep CVE-2025-38565
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5ffda7f3ed76ec8defc19d985e33b3b82ba07839 git.kernel.org
- https://git.kernel.org/stable/c/9b90a48c7de828a15c7a4fc565d46999c6e22d6b git.kernel.org
- https://git.kernel.org/stable/c/de85e72598d89880a02170a1cbc27b35a7d978a9 git.kernel.org
- https://git.kernel.org/stable/c/27d44145bd576bbef9bf6165bcd78128ec3e6cbd git.kernel.org
- https://git.kernel.org/stable/c/f41e9eba77bf97626e04296dc5677d02816d2432 git.kernel.org
- https://git.kernel.org/stable/c/92043120a2e992800580855498ab8507e1b22db9 git.kernel.org
- https://git.kernel.org/stable/c/163b0d1a209fe0df5476c1df2330ca12b55abf92 git.kernel.org
- https://git.kernel.org/stable/c/7ff8521f30c4c2fcd4e88bd7640486602bf8a650 git.kernel.org
- https://git.kernel.org/stable/c/07091aade394f690e7b655578140ef84d0e8d7b0 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38565 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse