CVE-2025-38564
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38564 is a vulnerability discovered in the Linux kernel's perf subsystem, specifically in the perf_mmap() function. The vulnerability was disclosed on August 19, 2025, and affects the buffer mapping functionality in the performance monitoring subsystem (NVD).

Technical details

The vulnerability occurs in the perf/core component when handling buffer mapping failures in perfmmap(). After successful buffer allocation or attachment to an existing buffer, perfmmap() attempts to map the buffer as read-only into the page table. If this mapping fails, while the page table entries are properly cleared, other perf-specific side effects of the failure are not handled correctly. This results in reference count leaks, user->vm accounting corruption, and unbalanced event::event_mapped() invocations (Debian Security).

Impact

The vulnerability leads to memory management issues including reference count leaks and corruption of user->vm accounting. This can potentially affect system stability and resource management in the Linux kernel's performance monitoring subsystem (NVD).

Mitigation and workarounds

The issue has been resolved by moving the event::eventmapped() invocation before the maprange() call, ensuring that perfmmapclose() can be properly invoked without causing unbalanced event::eventunmapped() calls when maprange() fails. The fix has been implemented in various Linux distributions, with Ubuntu providing fixes in version 6.8.0-40.40 for noble release and Debian implementing fixes in multiple versions including 5.10.237-1 for bullseye and 6.1.147-1 for bookworm (Debian Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management