# CVE-2025-38563: perf/core: Prevent VMA split of buffer mappings

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-08-19T17:02:40.249Z
- **Modified:** 2026-11-05T22:17:18.517Z

## Who should check

- Anyone running Linux \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< e4346ffec2c44d6b0be834d59b20632b5bb5729e; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< d52451a9210f2e5a079ba052918c93563518a9ff; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 3bd518cc7ea61076bcd725e36ff0e690754977c0; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 7b84cb58d1f0aa07656802eae24689566e5f5b1b; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 6757a31a8e295ae4f01717a954afda173f25a121; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< e529888b7e8092912dd8789bdfc76685ccd2ff5f; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< ff668930871e0198c7f4e325058b8b7c286787bd; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 65311aad4c808bedad0c05d9bb8b06c47dae73eb; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< b024d7b56c77191cde544f838debb7f8451cd0d6
- Anyone running Linux 4.1

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

## Affected and fixed versions

- Linux: \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< e4346ffec2c44d6b0be834d59b20632b5bb5729e; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< d52451a9210f2e5a079ba052918c93563518a9ff; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 3bd518cc7ea61076bcd725e36ff0e690754977c0; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 7b84cb58d1f0aa07656802eae24689566e5f5b1b; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 6757a31a8e295ae4f01717a954afda173f25a121; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< e529888b7e8092912dd8789bdfc76685ccd2ff5f; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< ff668930871e0198c7f4e325058b8b7c286787bd; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 65311aad4c808bedad0c05d9bb8b06c47dae73eb; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< b024d7b56c77191cde544f838debb7f8451cd0d6 (cvelist)
- Linux: 4.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38563. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38563.md
Affected: Linux >= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, < e4346ffec2c44d6b0be834d59b20632b5bb5729e; >= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, < d52451a9210f2e5a079ba052918c93563518a9ff; >= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, < 3bd518cc7ea61076bcd725e36ff0e690754977c0; >= 45bfb2e50471abbbfd83d40…
Fixed in: Linux 3bd518cc7ea61076bcd725e36ff0e690754977c0, Linux 7b84cb58d1f0aa07656802eae24689566e5f5b1b, Linux 6757a31a8e295ae4f01717a954afda173f25a121, Linux 65311aad4c808bedad0c05d9bb8b06c47dae73eb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38563 being exploited?

There is no confirmed exploitation: CVE-2025-38563 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38563?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38563?

Linux \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< e4346ffec2c44d6b0be834d59b20632b5bb5729e; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< d52451a9210f2e5a079ba052918c93563518a9ff; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 3bd518cc7ea61076bcd725e36ff0e690754977c0; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 7b84cb58d1f0aa07656802eae24689566e5f5b1b; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 6757a31a8e295ae4f01717a954afda173f25a121; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< e529888b7e8092912dd8789bdfc76685ccd2ff5f; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< ff668930871e0198c7f4e325058b8b7c286787bd; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< 65311aad4c808bedad0c05d9bb8b06c47dae73eb; \>= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \< b024d7b56c77191cde544f838debb7f8451cd0d6; Linux 4.1.

### Is there a fix for CVE-2025-38563?

Yes. Fixed in Linux 3bd518cc7ea61076bcd725e36ff0e690754977c0, Linux 7b84cb58d1f0aa07656802eae24689566e5f5b1b, Linux 6757a31a8e295ae4f01717a954afda173f25a121, Linux 65311aad4c808bedad0c05d9bb8b06c47dae73eb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38563?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e4346ffec2c44d6b0be834d59b20632b5bb5729e>
- patch: <https://git.kernel.org/stable/c/d52451a9210f2e5a079ba052918c93563518a9ff>
- patch: <https://git.kernel.org/stable/c/3bd518cc7ea61076bcd725e36ff0e690754977c0>
- patch: <https://git.kernel.org/stable/c/7b84cb58d1f0aa07656802eae24689566e5f5b1b>
- patch: <https://git.kernel.org/stable/c/6757a31a8e295ae4f01717a954afda173f25a121>
- patch: <https://git.kernel.org/stable/c/e529888b7e8092912dd8789bdfc76685ccd2ff5f>
- patch: <https://git.kernel.org/stable/c/ff668930871e0198c7f4e325058b8b7c286787bd>
- patch: <https://git.kernel.org/stable/c/65311aad4c808bedad0c05d9bb8b06c47dae73eb>
- patch: <https://git.kernel.org/stable/c/b024d7b56c77191cde544f838debb7f8451cd0d6>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-25-873/>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38563>

HTML: <https://flawdb.com/CVE-2025-38563> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38563>
