CVE-2026-23248
Last modified
CVE-2026-23248 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix refcount bug and potential UAF in perf_mmap Syzkaller reported a refcount_t: addition on 0; use-after-free warning in perf_mmap. The issue is caused by a race condition between a failing mmap() setup and a concurrent mmap() on a dependent event (e.g., using output redirection). In perf_mmap(), the ring_buffer (rb) is allocated and assigned to event->rb with the mmap_mutex held. The mutex is then released to perform map_range(). If map_range() fails, perf_mmap_close() is called to clean up. However, since the mutex was dropped, another thread attaching to this event (via inherited events or output redirection) can acquire the mutex, observe the valid event->rb pointer, and attempt to increment its reference count. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix refcount bug and potential UAF in perf_mmap Syzkaller reported a refcount_t: addition on 0; use-after-free warning in perf_mmap. The issue is caused by a race condition between a failing mmap() setup and a concurrent mmap() on a dependent event (e.g., using output redirection). In perf_mmap(), the ring_buffer (rb) is allocated and assigned to event->rb with the mmap_mutex held. The mutex is then released to perform map_range(). If map_range() fails, perf_mmap_close() is called to clean up. However, since the mutex was dropped, another thread attaching to this event (via inherited events or output redirection) can acquire the mutex, observe the valid event->rb pointer, and attempt to increment its reference count. If the cleanup path has already dropped the reference count to zero, this results in a use-after-free or refcount saturation warning. Fix this by extending the scope of mmap_mutex to cover the map_range() call. This ensures that the ring buffer initialization and mapping (or cleanup on failure) happens atomically effectively, preventing other threads from accessing a half-initialized or dying ring buffer.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.14, < 6.18.17 | — |
| Linux | Linux Kernel | >= 6.19, < 6.19.7 | — |
| Linux | Linux Kernel | 7.0 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-23248?
How severe is CVE-2026-23248?
How do I fix CVE-2026-23248?
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 2026
- CVE-2026-23242In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-23243In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-23244In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-23245In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-23246In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-23247In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23249In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-2325Mattermost versions 11.5.x <= 11.5.1, 10.11.x <= 10.11.13, 1…6.5
- CVE-2026-23250In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23251In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23252In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-23253In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2026-23248?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
