CVE-2025-38564: Linux kernel · perf/core: Handle buffer mapping fail correctly in perf_mmap()
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 19 Nov 2026, 02:22 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by reordering the event mapping calls to ensure proper cleanup on buffer mapping failure. Users should apply the official kernel updates that include this fix. Since no specific patch links or fixed versions are provided, users should consult their Linux distribution or kernel vendor for the relevant security updates. No additional mitigation is indicated.
Description
CVE-2025-38564 is a medium severity vulnerability in the Linux kernel's perf subsystem. It involves improper handling of buffer mapping failures in the perf_mmap() function, which can lead to resource leaks and corruption of user virtual memory accounting. The flaw occurs when a buffer mapping fails after allocation or attachment, causing reference counts to leak and resulting in an unbalanced event mapping state. This can ultimately cause denial of service due to resource exhaustion or instability.
References
- nvd.nist.gov/vuln/detail/CVE-2025-38564 (opens in a new tab)
- git.kernel.org/stable/c/831e1c90a5d72e6977a57c44f47c46b73a438695 (opens in a new tab)
- git.kernel.org/stable/c/a9025f73c88d9d6e125743a43afc569da3ce5328 (opens in a new tab)
- git.kernel.org/stable/c/f74b9f4ba63ffdf597aaaa6cad7e284cb8e04820 (opens in a new tab)