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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-19 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2025-38563, DEBIAN-CVE-2025-38563
- Record: https://cvemate.com/vulnerability/CVE-2025-38563 · JSON: https://cvemate.com/vulnerability/CVE-2025-38563/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.478%, percentile 42.96%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 153)

- debian linux (Debian): \< 6.1.148-1 \| \< 6.12.43-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-163.173 \| \< 6.8.0-147.147
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104 \| \< 6.8.0-1067.70
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1097.104~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1017.17~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104+fips1 \| \< 6.8.0-1067.70+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1101.110 \| \< 6.8.0-1071.79
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 41)

- <https://git.kernel.org/stable/c/e4346ffec2c44d6b0be834d59b20632b5bb5729e>
- <https://git.kernel.org/stable/c/d52451a9210f2e5a079ba052918c93563518a9ff>
- <https://git.kernel.org/stable/c/3bd518cc7ea61076bcd725e36ff0e690754977c0>
- <https://git.kernel.org/stable/c/7b84cb58d1f0aa07656802eae24689566e5f5b1b>
- <https://git.kernel.org/stable/c/6757a31a8e295ae4f01717a954afda173f25a121>
- <https://git.kernel.org/stable/c/e529888b7e8092912dd8789bdfc76685ccd2ff5f>
- <https://git.kernel.org/stable/c/ff668930871e0198c7f4e325058b8b7c286787bd>
- <https://git.kernel.org/stable/c/65311aad4c808bedad0c05d9bb8b06c47dae73eb>
- <https://git.kernel.org/stable/c/b024d7b56c77191cde544f838debb7f8451cd0d6>
- <https://www.zerodayinitiative.com/advisories/ZDI-25-873/>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://ubuntu.com/security/CVE-2025-38563>
- <https://www.cve.org/CVERecord?id=CVE-2025-38563>
- <https://git.kernel.org/linus/b024d7b56c77191cde544f838debb7f8451cd0d6>
- <https://ubuntu.com/security/notices/USN-7879-1>
- <https://ubuntu.com/security/notices/USN-7879-2>
- <https://ubuntu.com/security/notices/USN-7880-1>
- <https://ubuntu.com/security/notices/USN-7879-3>
- <https://ubuntu.com/security/notices/USN-7909-1>

---

Data as of 2026-12-05T03:14:30.101Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
