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.