CVE-2025-38565: perf/core: Exit early on perf_mmap() fail

Published Aug 19, 2025
·
Updated

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

13 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=4.0<5.4.297
Linux Linux kernel>=5.5<5.10.241
Linux Linux kernel>=5.11<5.15.190
Linux Linux kernel>=5.16<6.1.148
Linux Linux kernel>=6.2<6.6.102
Linux Linux kernel>=6.7<6.12.42
Linux Linux kernel>=6.13<6.15.10
Linux Linux kernel>=6.16<6.16.1
Debian Debian Linux=11.0
Microsoft cbl2 kernel 5.15.186.1-1
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.96.2-2

Event History

Aug 19, 2025
CVE Published
via MITRE·05:02 PM
Data Sourced
via MITRE·05:02 PM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·04:47 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38565?

CVE-2025-38565 is classified as a medium severity vulnerability in the Linux kernel.

2

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.

3

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.

4

What is the impact of CVE-2025-38565 on systems?

The impact of CVE-2025-38565 includes potential resource mismanagement in kernel performance monitoring.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203