CVE-2026-89791

Updated on 16 Sep 2026

Severity

7.8 High severity

Details

CVSS score
7.8
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Overview

About vulnerability

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.

Details

Affected product:
Debian 10 ELS , Debian 11 ELS
Affected packages:
linux @ 5.10.259 (+1 more)

Fixes

KernelCare state

Live-patch status from KernelCare for each operating system.

Operating system Status Covered kernels
AlmaLinux 10 Will Not Fix
37 kernels
  • 6.12.0-55.27.1.el10_0
  • 6.12.0-55.28.1.el10_0
  • 6.12.0-55.29.1.el10_0
  • 6.12.0-55.30.1.el10_0
  • 6.12.0-55.31.1.el10_0
  • 6.12.0-55.32.1.el10_0
  • 6.12.0-55.33.1.el10_0
  • 6.12.0-55.34.1.el10_0
  • 6.12.0-55.37.1.el10_0
  • 6.12.0-55.38.1.el10_0
  • 6.12.0-55.39.1.el10_0
  • 6.12.0-55.40.1.el10_0
  • 6.12.0-55.42.1.el10_0
  • 6.12.0-55.43.1.el10_0
  • 6.12.0-124.8.1.el10_1
  • 6.12.0-124.13.1.el10_1
  • 6.12.0-124.16.1.el10_1
  • 6.12.0-124.20.1.el10_1
  • 6.12.0-124.21.1.el10_1
  • 6.12.0-124.27.1.el10_1
  • 6.12.0-124.28.1.el10_1
  • 6.12.0-124.29.1.el10_1
  • 6.12.0-124.31.1.el10_1
  • 6.12.0-124.35.1.el10_1
  • 6.12.0-124.38.1.el10_1
  • 6.12.0-124.39.1.el10_1
  • 6.12.0-124.43.1.el10_1
  • 6.12.0-124.45.1.el10_1
  • 6.12.0-124.47.1.el10_1
  • 6.12.0-124.49.1.el10_1
  • 6.12.0-124.52.1.el10_1
  • 6.12.0-124.55.1.el10_1
  • 6.12.0-124.40.1.el10_1
  • 6.12.0-124.52.2.el10_1
  • 6.12.0-124.52.3.el10_1
  • 6.12.0-124.56.5.el10_1
  • 6.12.0-124.55.3.el10_1
Oracle Linux 10 Released
26 kernels
  • 6.12.0-211.7.3.el10_2
  • 6.12.0-211.34.1.el10_2
  • 6.12.0-211.37.1.el10_2
  • 6.12.0-211.38.1.el10_2
  • 6.12.0-211.39.1.el10_2
  • 6.12.0-211.40.1.el10_2
  • 6.12.0-211.42.1.el10_2
  • 6.12.0-211.43.1.el10_2
  • 6.12.0-211.44.1.el10_2
  • 6.12.0-211.46.1.el10_2
  • 6.12.0-211.47.1.el10_2
  • 6.12.0-211.49.1.el10_2
  • 6.12.0-211.50.1.el10_2
  • 6.12.0-211.51.1.el10_2
  • 6.12.0-211.53.1.el10_2
  • 6.12.0-211.54.1.el10_2
  • 6.12.0-211.55.1.el10_2
  • 6.12.0-211.56.1.el10_2
  • 6.12.0-211.61.1.el10_2
  • 6.12.0-211.60.1.el10_2
  • 6.12.0-211.62.1.el10_2
  • 6.12.0-211.63.1.el10_2
  • 6.12.0-211.64.1.el10_2
  • 6.12.0-211.65.1.el10_2
  • 6.12.0-211.66.1.el10_2
  • 6.12.0-211.67.1.el10_2
RHEL 10 Released
41 kernels
  • 6.12.0-211.16.1.el10_2
  • 6.12.0-211.7.1.el10_2
  • 6.12.0-211.7.3.el10_2
  • 6.12.0-211.18.1.el10_2
  • 6.12.0-211.20.1.el10_2
  • 6.12.0-211.22.1.el10_2
  • 6.12.0-211.26.1.el10_2
  • 6.12.0-211.28.1.el10_2
  • 6.12.0-211.29.1.el10_2
  • 6.12.0-211.30.1.el10_2
  • 6.12.0-211.31.1.el10_2
  • 6.12.0-211.32.1.el10_2
  • 6.12.0-211.33.1.el10_2
  • 6.12.0-211.34.1.el10_2
  • 6.12.0-211.37.1.el10_2
  • 6.12.0-211.38.1.el10_2
  • 6.12.0-211.39.1.el10_2
  • 6.12.0-211.40.1.el10_2
  • 6.12.0-211.42.1.el10_2
  • 6.12.0-211.43.1.el10_2
  • 6.12.0-211.44.1.el10_2
  • 6.12.0-211.46.1.el10_2
  • 6.12.0-211.47.1.el10_2
  • 6.12.0-211.49.1.el10_2
  • 6.12.0-211.50.1.el10_2
  • 6.12.0-211.51.1.el10_2
  • 6.12.0-211.52.1.el10_2
  • 6.12.0-211.53.1.el10_2
  • 6.12.0-211.54.1.el10_2
  • 6.12.0-211.55.1.el10_2
  • 6.12.0-211.56.1.el10_2
  • 6.12.0-211.58.1.el10_2
  • 6.12.0-211.59.1.el10_2
  • 6.12.0-211.60.1.el10_2
  • 6.12.0-211.61.1.el10_2
  • 6.12.0-211.62.1.el10_2
  • 6.12.0-211.64.1.el10_2
  • 6.12.0-211.65.1.el10_2
  • 6.12.0-211.66.1.el10_2
  • 6.12.0-211.67.1.el10_2
  • 6.12.0-211.63.1.el10_2
Rocky Linux 10 Released
33 kernels
  • 6.12.0-211.18.1.el10_2
  • 6.12.0-211.22.1.el10_2
  • 6.12.0-211.26.1.el10_2
  • 6.12.0-211.28.1.el10_2
  • 6.12.0-211.32.1.el10_2
  • 6.12.0-211.16.1.el10_2.0.1
  • 6.12.0-211.33.1.el10_2
  • 6.12.0-211.34.1.el10_2
  • 6.12.0-211.37.1.el10_2
  • 6.12.0-211.39.1.el10_2
  • 6.12.0-211.40.1.el10_2
  • 6.12.0-211.42.1.el10_2
  • 6.12.0-211.43.1.el10_2
  • 6.12.0-211.44.1.el10_2
  • 6.12.0-211.46.1.el10_2
  • 6.12.0-211.47.1.el10_2
  • 6.12.0-211.49.1.el10_2
  • 6.12.0-211.50.1.el10_2
  • 6.12.0-211.51.1.el10_2
  • 6.12.0-211.52.1.el10_2
  • 6.12.0-211.53.1.el10_2
  • 6.12.0-211.54.1.el10_2
  • 6.12.0-211.55.1.el10_2
  • 6.12.0-211.56.1.el10_2
  • 6.12.0-211.58.1.el10_2
  • 6.12.0-211.60.1.el10_2
  • 6.12.0-211.56.1.el10_2.0.1
  • 6.12.0-211.61.1.el10_2
  • 6.12.0-211.62.1.el10_2
  • 6.12.0-211.64.1.el10_2
  • 6.12.0-211.65.1.el10_2
  • 6.12.0-211.66.1.el10_2
  • 6.12.0-211.67.1.el10_2
Ubuntu 26.04 Planned —