CVE-2025-38563
perf/core: Prevent VMA split of buffer mappings
Check your servers for CVE-2025-38563
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-38563 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: Prevent VMA split of buffer mappings
The perf mmap code is careful about mmap()'ing the user page with the ringbuffer and additionally the auxiliary buffer, when the event supports it. Once the first mapping is established, subsequent mapping have to use the same offset and the same size in both cases. The reference counting for the ringbuffer and the auxiliary buffer depends on this being correct.
Though perf does not prevent that a related mapping is split via mmap(2), munmap(2) or mremap(2). A split of a VMA results in perf_mmap_open() calls, which take reference counts, but then the subsequent perf_mmap_close() calls are not longer fulfilling the offset and size checks. This leads to reference count leaks.
As perf already has the requirement for subsequent mappings to match the initial mapping, the obvious consequence is that VMA splits, caused by resizing of a mapping or partial unmapping, have to be prevented.
Implement the vm_operations_struct::may_split() callback and return unconditionally -EINVAL.
That ensures that the mapping offsets and sizes cannot be changed after the fact. Remapping to a different fixed address with the same size is still possible as it takes the references for the new mapping and drops those of the old mapping.
Exploitation
EPSS 0.48%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 42.9% 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 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before e4346ffec2c44d6b0be834d59b20632b5bb5729e affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before d52451a9210f2e5a079ba052918c93563518a9ff affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before 3bd518cc7ea61076bcd725e36ff0e690754977c0 affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before 7b84cb58d1f0aa07656802eae24689566e5f5b1b affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before 6757a31a8e295ae4f01717a954afda173f25a121 affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before e529888b7e8092912dd8789bdfc76685ccd2ff5f affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before ff668930871e0198c7f4e325058b8b7c286787bd affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before 65311aad4c808bedad0c05d9bb8b06c47dae73eb affected from 45bfb2e50471abbbfd83d40d28c986078b0d24ff, before b024d7b56c77191cde544f838debb7f8451cd0d6
Other versions: unaffected
|
| Linux |
affected 4.1 unaffected before 4.1 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-38563 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38563
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-38563
trivy image --scanners vuln IMAGE | grep CVE-2025-38563
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/e4346ffec2c44d6b0be834d59b20632b5bb5729e git.kernel.org
- https://git.kernel.org/stable/c/d52451a9210f2e5a079ba052918c93563518a9ff git.kernel.org
- https://git.kernel.org/stable/c/3bd518cc7ea61076bcd725e36ff0e690754977c0 git.kernel.org
- https://git.kernel.org/stable/c/7b84cb58d1f0aa07656802eae24689566e5f5b1b git.kernel.org
- https://git.kernel.org/stable/c/6757a31a8e295ae4f01717a954afda173f25a121 git.kernel.org
- https://git.kernel.org/stable/c/e529888b7e8092912dd8789bdfc76685ccd2ff5f git.kernel.org
- https://git.kernel.org/stable/c/ff668930871e0198c7f4e325058b8b7c286787bd git.kernel.org
- https://git.kernel.org/stable/c/65311aad4c808bedad0c05d9bb8b06c47dae73eb git.kernel.org
- https://git.kernel.org/stable/c/b024d7b56c77191cde544f838debb7f8451cd0d6 git.kernel.org
- https://www.zerodayinitiative.com/advisories/ZDI-25-873/ zerodayinitiative.com
- 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-38563 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