Skip to main content
Vulnerability Database/CVE-2026-93817

CVE-2026-93817: Linux Kernel Use-After-Free Vulnerability

CVE-2026-93817 is a use-after-free vulnerability in the Linux kernel perf subsystem affecting addr_filter_ranges memory management. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-93817 Overview

CVE-2026-93817 is a use-after-free vulnerability in the Linux kernel's perf subsystem. The flaw resides in how event::addr_filter_ranges memory is freed. Lee Jia Jie reported that the structure is accessed under Read-Copy-Update (RCU), so it must be freed via an RCU grace period rather than immediately. Freeing the memory synchronously allows concurrent RCU readers to dereference a dangling pointer, leading to memory corruption. A local, low-privileged attacker can exploit the race to compromise kernel memory integrity and achieve code execution in kernel context.

Critical Impact

Local attackers can trigger a kernel use-after-free in the performance monitoring subsystem, enabling privilege escalation and full compromise of confidentiality, integrity, and availability.

Affected Products

  • Linux kernel versions containing the vulnerable event::addr_filter_ranges handling in the perf subsystem
  • Distributions shipping affected upstream kernels prior to the referenced stable fixes
  • Systems where unprivileged users can create perf_event_open events with address filters

Discovery Timeline

  • Vulnerability reported by Lee Jia Jie
  • 2026-09-24 - CVE-2026-93817 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-93817

Vulnerability Analysis

The Linux kernel's perf subsystem supports address filters that constrain where instruction tracing captures data. Each perf_event carries an addr_filter_ranges array describing the resolved address ranges for its filters. This array is consulted on fast paths that run inside RCU read-side critical sections.

Before the fix, the kernel freed addr_filter_ranges directly using kfree() when the event was destroyed or when filters were recomputed. Because concurrent readers may still hold references under RCU, direct freeing creates a classic use-after-free window. A reader that entered its critical section before the free can dereference memory that has already been returned to the slab allocator and potentially reallocated.

An attacker who can race the free against an active read path may read or write freed kernel memory. Kernel use-after-free conditions in slab-cached allocations are a well-known primitive for local privilege escalation.

Root Cause

The root cause is a lifetime mismatch between an RCU-protected reader and a non-RCU writer. The addr_filter_ranges buffer was published for RCU consumers but reclaimed synchronously. Correct handling requires kfree_rcu() or an equivalent grace-period-aware release so readers finish before the memory is returned.

Attack Vector

Exploitation requires local access and the ability to call perf_event_open(2) with address filters, which is governed by kernel.perf_event_paranoid. The attacker triggers filter resolution and teardown concurrently with event activity to win the race. Successful exploitation yields kernel-mode code execution.

The vulnerability is described in prose only; no verified public exploit is available. Technical remediation details are published in the upstream patches Kernel Git Commit 6f1853b, Kernel Git Commit cd8dab1, and Kernel Git Commit e62d419.

Detection Methods for CVE-2026-93817

Indicators of Compromise

  • Unexpected kernel oops or general protection fault entries in dmesg referencing perf_event or addr_filter_ranges
  • KASAN (Kernel Address Sanitizer) use-after-free reports in the perf call stack on instrumented builds
  • Unexplained kernel panics on systems with active instruction-tracing tools such as Intel PT consumers

Detection Strategies

  • Audit process execution for non-root callers of perf_event_open(2) using address filters
  • Monitor loading of unsigned kernel modules or sudden privilege transitions following perf activity
  • Correlate crash telemetry with periods of concurrent perf event creation and teardown

Monitoring Recommendations

  • Collect auditd records for perf_event_open syscalls and alert on unusual local user activity
  • Centralize kernel ring buffer logs and crash dumps for retention and analysis
  • Track installed kernel versions against vendor advisories to confirm patched builds are deployed

How to Mitigate CVE-2026-93817

Immediate Actions Required

  • Inventory Linux hosts and identify kernels that lack the upstream fix commits
  • Apply distribution kernel updates that incorporate the RCU-safe free for addr_filter_ranges
  • Reboot affected systems to activate the patched kernel image

Patch Information

The upstream fix changes addr_filter_ranges reclamation to occur after an RCU grace period, aligning the free with reader semantics. Review the stable tree commits 6f1853b, cd8dab1, and e62d419 for backport candidates and verify your distribution's kernel package includes them.

Workarounds

  • Restrict access to perf_event_open(2) by setting kernel.perf_event_paranoid=3 where supported
  • Limit shell access on multi-tenant systems to trusted users until patches are deployed
  • Disable or restrict instruction-tracing tooling that programs perf address filters for untrusted workloads
bash
# Harden perf access until patched kernels are deployed
sudo sysctl -w kernel.perf_event_paranoid=3
echo 'kernel.perf_event_paranoid=3' | sudo tee /etc/sysctl.d/99-perf-hardening.conf

# Verify running kernel version against vendor advisory
uname -r

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.