CVE-2025-38564
Last modified
CVE-2025-38564 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: perf/core: Handle buffer mapping fail correctly in perf_mmap() After successful allocation of a buffer or a successful attachment to an existing buffer perf_mmap() tries to map the buffer read only into the page table. If that fails, the already set up page table entries are zapped, but the other perf specific side effects of that failure are not handled. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: perf/core: Handle buffer mapping fail correctly in perf_mmap() After successful allocation of a buffer or a successful attachment to an existing buffer perf_mmap() tries to map the buffer read only into the page table. If that fails, the already set up page table entries are zapped, but the other perf specific side effects of that failure are not handled. The calling code just cleans up the VMA and does not invoke perf_mmap_close(). This leaks reference counts, corrupts user->vm accounting and also results in an unbalanced invocation of event::event_mapped(). Cure this by moving the event::event_mapped() invocation before the map_range() call so that on map_range() failure perf_mmap_close() can be invoked without causing an unbalanced event::event_unmapped() call. perf_mmap_close() undoes the reference counts and eventually frees buffers.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.14, < 6.15.10 |
| Linux | Linux Kernel | >= 6.16, < 6.16.1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-38564?
How severe is CVE-2025-38564?
How do I fix CVE-2025-38564?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38559In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3856A vulnerability was found in xxyopen Novel-Plus 5.1.0. It ha…9.8
- CVE-2025-38560In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38561In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38562In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38563In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38565In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38566In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-38567In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38568In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38569In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3857When reading binary Ion data through Amazon.IonDotnet using …8.7
Are you affected by CVE-2025-38564?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
