Bug 2389506 (CVE-2025-38565) - CVE-2025-38565 kernel: perf/core: Exit early on perf_mmap() fail
Summary: CVE-2025-38565 kernel: perf/core: Exit early on perf_mmap() fail
Keywords:
Status: NEW
Alias: CVE-2025-38565
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-19 18:04 UTC by OSIDB Bzimport
Modified: 2025-08-19 20:03 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-08-19 18:04:43 UTC
In the Linux kernel, the following vulnerability has been resolved:

perf/core: Exit early on perf_mmap() fail

When perf_mmap() fails to allocate a buffer, it still invokes the
event_mapped() callback of the related event. On X86 this might increase
the perf_rdpmc_allowed reference counter. But nothing undoes this as
perf_mmap_close() is never called in this case, which causes another
reference count leak.

Return early on failure to prevent that.


Note You need to log in before you can comment on or make changes to this bug.