# CVE-2026-23248: perf/core: Fix refcount bug and potential UAF in perf\_mmap

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-03-18T10:05:10.070Z
- **Modified:** 2026-10-19T19:17:43.737Z

## Who should check

- Anyone running Linux \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< c27dea9f50ed525facb62ef647dddc4722456e07; \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< ac7ecb65af170a7fc193e7bd8be15dac84ec6a56; \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< 77de62ad3de3967818c3dbe656b7336ebee461d2
- Anyone running Linux 6.14

## 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.

## Affected and fixed versions

- Linux: \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< c27dea9f50ed525facb62ef647dddc4722456e07; \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< ac7ecb65af170a7fc193e7bd8be15dac84ec6a56; \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< 77de62ad3de3967818c3dbe656b7336ebee461d2 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 77de62ad3de3967818c3dbe656b7336ebee461d2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23248. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23248.md
Affected: Linux >= b709eb872e19a19607bbb6d2975bc264d59735cf, < c27dea9f50ed525facb62ef647dddc4722456e07; >= b709eb872e19a19607bbb6d2975bc264d59735cf, < ac7ecb65af170a7fc193e7bd8be15dac84ec6a56; >= b709eb872e19a19607bbb6d2975bc264d59735cf, < 77de62ad3de3967818c3dbe656b7336ebee461d2; Linux 6.14
Fixed in: Linux 77de62ad3de3967818c3dbe656b7336ebee461d2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23248 being exploited?

There is no confirmed exploitation: CVE-2026-23248 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23248?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23248?

Linux \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< c27dea9f50ed525facb62ef647dddc4722456e07; \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< ac7ecb65af170a7fc193e7bd8be15dac84ec6a56; \>= b709eb872e19a19607bbb6d2975bc264d59735cf, \< 77de62ad3de3967818c3dbe656b7336ebee461d2; Linux 6.14.

### Is there a fix for CVE-2026-23248?

Yes. Fixed in Linux 77de62ad3de3967818c3dbe656b7336ebee461d2. Upgrade Linux to 77de62ad3de3967818c3dbe656b7336ebee461d2 or later.

### How do I check if I'm affected by CVE-2026-23248?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c27dea9f50ed525facb62ef647dddc4722456e07>
- patch: <https://git.kernel.org/stable/c/ac7ecb65af170a7fc193e7bd8be15dac84ec6a56>
- patch: <https://git.kernel.org/stable/c/77de62ad3de3967818c3dbe656b7336ebee461d2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23248>

HTML: <https://flawdb.com/CVE-2026-23248> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23248>
