CVE-2025-38565: perf/core: Exit early on perf_mmap() fail
In the Linux kernel, the following vulnerability has been resolved:
perf/core: Exit early on perfmmap() fail
When perfmmap() fails to allocate a buffer, it still invokes the eventmapped() callback of the related event. On X86 this might increase the perfrdpmcallowed reference counter. But nothing undoes this as perfmmapclose() is never called in this case, which causes another reference count leak.
Return early on failure to prevent that.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38565?
CVE-2025-38565 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2025-38565?
To fix CVE-2025-38565, update your Linux kernel to the latest stable version that contains the patch.
What versions of the Linux kernel are affected by CVE-2025-38565?
CVE-2025-38565 affects multiple versions of the Linux kernel prior to the implementation of the patch.
What is the impact of CVE-2025-38565 on systems?
The impact of CVE-2025-38565 includes potential resource mismanagement in kernel performance monitoring.
Is it safe to use systems with CVE-2025-38565 without a patch?
Using systems with CVE-2025-38565 without applying the patch can pose risks, especially in environments requiring performance monitoring.