CVE-2026-89791 json
perf: Fix use-after-free when perf mmap() revival races with the last munmap()
published 2026-09-16 54 d ago modified 2026-10-19 21 d ago also EUVD-2026-80312
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 8%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
perf: Fix use-after-free when perf mmap() revival races with the last munmap()
perf_mmap_close() drops rb->mmap_count *without* holding event->mmap_mutex (the refcount_dec_and_test() right before the refcount_dec_and_mutex_lock() of event->mmap_count). A concurrent perf_mmap_rb() can slot its entire "revival" path into that window (perf_mmap holds event->mmap_mutex for its whole duration, including rb_alloc):
munmap side (perf_mmap_close) mmap side (perf_mmap_rb) ----------------------------------- -------------------------------- rb->mmap_count 1 -> 0 (no lock) (holds event->mmap_mutex) inc_not_zero(rb->mmap_count) fails ring_buffer_attach(event, NULL) rb_alloc() + attach new rb refcount_set(&event->mmap_count, 1) lock; event->mmap_count 1 -> 0 ring_buffer_attach(event, NULL) ring_buffer_put() -> frees the *new* rb
The revival's refcount_set(&event->mmap_count, 1) is an invisible 1 -> 1 write: the close frees the just-revived buffer although the other process still has it mapped -- a page-level use-after-free allowing local privilege escalation to root by any unprivileged user (default kernel.perf_event_paranoid=2).
Swap the order of the two counter updates: event->mmap_count is dropped first via refcount_dec_and_mutex_lock(), so its 1 -> 0 transition and the ring_buffer_attach() stay serialized with perf_mmap(). rb->mmap_count == 0 then implies every event using the buffer is detached already, so the result of the rb->mmap_count drop can gate the remaining teardown directly and detach_rest is no longer needed.
An earlier fix for this race from Kyle Zeng and David Lee takes event->mmap_mutex around both counter updates [0]; here the not-last close stays lockless.
Patch / fix
- Linux Linux 6.18.52, 7.2.5, 7.3
- linux Debian 14 7.2.6-1
debian advisories DEBIAN-CVE-2026-89791
- linux Ubuntu 26.04 LTS 7.0.0-42.42
- linux-aws Ubuntu 26.04 LTS 7.0.0-1016.17
- linux-gcp Ubuntu 26.04 LTS 7.0.0-1016.18
- linux-ibm Ubuntu 26.04 LTS 7.0.0-1017.17
- linux-riscv Ubuntu 26.04 LTS 7.0.0-42.42.1
- linux-oracle Ubuntu 26.04 LTS 7.0.0-1015.16
- linux-hwe-7.0 Ubuntu 24.04 LTS 7.0.0-42.42~24.04.1
- linux-oem-7.0 Ubuntu 26.04 LTS 7.0.0-1017.17
ubuntu advisories UBUNTU-CVE-2026-89791
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-default SLES 16.0, SLE High Availability Extension 16.0, Linux Micro 6.2 +1 more 6.12.0-160000.39.1
- kernel-rt Linux Micro 6.2 6.12.0-160000.39.1
- kernel-64kb SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 6.12.0-160000.39.1
- kernel-source SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 6.12.0-160000.39.1
- kernel-default-base SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 6.12.0-160000.39.1.160000.2.26
- kernel-syms SLES 16.0, Linux Micro Extras 6.2, SLES for SAP applications 16.0 6.12.0-160000.39.1
- kernel-azure SLES for SAP applications 16.0, SLES 16.0 6.12.0-160000.39.1
- kernel-obs-qa SLES for SAP applications 16.0, SLES 16.0 6.12.0-160000.39.1
suse advisories SUSE-SU-2026:24197-1SUSE-SU-2026:24184-1SUSE-SU-2026:24235-1SUSE-SU-2026:24179-1
- kernel-rt openSUSE Leap 16.0 6.12.0-160000.39.1
- dtb-aarch64 openSUSE Leap 16.0 6.12.0-160000.39.1
- kernel-64kb openSUSE Leap 16.0 6.12.0-160000.39.1
- kernel-syms openSUSE Leap 16.0 6.12.0-160000.39.1
- kernel-azure openSUSE Leap 16.0 6.12.0-160000.39.1
- kernel-obs-qa openSUSE Leap 16.0 6.12.0-160000.39.1
- kernel-source openSUSE Leap 16.0 6.12.0-160000.39.1
- kernel-default openSUSE Leap 16.0 6.12.0-160000.39.1
opensuse advisories openSUSE-SU-2026:22091-1openSUSE-SU-2026:11880-1
- kernel AlmaLinux 10 6.12.0-211.68.1.el10_2
- rv AlmaLinux 10 6.12.0-211.68.1.el10_2
- perf AlmaLinux 10 6.12.0-211.68.1.el10_2
- rtla AlmaLinux 10 6.12.0-211.68.1.el10_2
- libperf AlmaLinux 10 6.12.0-211.68.1.el10_2
- kernel-rt AlmaLinux 10 6.12.0-211.68.1.el10_2
- kernel-64k AlmaLinux 10 6.12.0-211.68.1.el10_2
- kernel-core AlmaLinux 10 6.12.0-211.68.1.el10_2
almalinux advisories ALSA-2026:88477
- kernel Rocky Linux 10 6.12.0-211.68.1.el10_2
rocky linux advisories RLSA-2026:88477
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-89791 updated cvss 7.0
kernel: perf: Fix use-after-free when perf mmap() revival races with the last munmap()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreunder investigation
-
Red Hat Enterprise Linux kernel-modules-internal 6.12.0-211.68.1.el10_2 Red Hat Enterprise Linux AppStream (v. 10) rv 6.12.0-211.68.1.el10_2, perf 6.12.0-211.68.1.el10_2, rtla 6.12.0-211.68.1.el10_2, python3-perf 6.12.0-211.68.1.el10_2, kernel-devel-matched 6.12.0-211.68.1.el10_2, kernel-64k-devel-matched 6.12.0-211.68.1.el10_2, +7 more Red Hat Enterprise Linux BaseOS (v. 10) kernel 6.12.0-211.68.1.el10_2, kernel-64k 6.12.0-211.68.1.el10_2, kernel-core 6.12.0-211.68.1.el10_2, kernel-tools 6.12.0-211.68.1.el10_2, kernel-modules 6.12.0-211.68.1.el10_2, kernel-64k-core 6.12.0-211.68.1.el10_2, +28 more Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libperf 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-s390x 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-x86_64 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-aarch64 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-ppc64le 6.12.0-211.68.1.el10_2 Red Hat Enterprise Linux Hidden (v. 10) kernel-modules-internal 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-x86_64 6.12.0-211.68.1.el10_2 Red Hat Enterprise Linux Real Time (v. 10) kernel-rt 6.12.0-211.68.1.el10_2, kernel-rt-64k 6.12.0-211.68.1.el10_2, kernel-rt-core 6.12.0-211.68.1.el10_2, kernel-rt-modules 6.12.0-211.68.1.el10_2, kernel-rt-64k-core 6.12.0-211.68.1.el10_2, kernel-rt-debug-core 6.12.0-211.68.1.el10_2, +14 morefixed: vendor fix RHSA-2026:88477
+1 more productsfewer
Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt 6.12.0-211.68.1.el10_2, kernel-rt-core 6.12.0-211.68.1.el10_2, kernel-rt-modules 6.12.0-211.68.1.el10_2, kernel-rt-debug-core 6.12.0-211.68.1.el10_2, kernel-rt-modules-core 6.12.0-211.68.1.el10_2, kernel-rt-debug-modules 6.12.0-211.68.1.el10_2, +4 more -
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9 Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.18% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
Sources
- CVE List CVE-2026-89791
- NVD CVE-2026-89791
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.