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

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

CVE-2026-97932 is a use-after-free flaw in the Linux kernel tracing subsystem that occurs when enable_event triggers defer operations. This article covers 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-97932 Overview

CVE-2026-97932 is a use-after-free vulnerability in the Linux kernel's tracing subsystem. The flaw occurs in the enable_event trigger path, which defers trace_event_put_ref() to a trigger free kthread. The trace_event_file structure can be freed when a tracing instance is removed, before the deferred free runs. The kernel maintainers resolved the issue by storing trace_event_call directly in enable_trigger_data, avoiding dereference of the freed trace_event_file.

Critical Impact

A local actor with access to the tracing subsystem could trigger a use-after-free in kernel memory, potentially leading to memory corruption, information disclosure, or kernel instability.

Affected Products

  • Linux kernel versions prior to the fixing commits
  • Distributions shipping unpatched upstream kernel tracing code
  • Systems exposing tracefs or debugfs tracing interfaces to privileged users

Discovery Timeline

  • 2026-09-25 - CVE-2026-97932 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97932

Vulnerability Analysis

The Linux kernel tracing subsystem supports an enable_event trigger that enables or disables tracing events based on another event firing. When the trigger is torn down, the kernel defers the final trace_event_put_ref() call to a dedicated trigger free kthread. The deferred cleanup previously relied on the trace_event_file pointer stored in enable_trigger_data.

When a tracing instance is removed, the kernel frees associated trace_event_file structures. The deferred free kthread can run after that teardown. The kthread then dereferences a pointer to memory the kernel has already freed, producing a use-after-free condition in the kernel address space [CWE-416].

The fix changes enable_trigger_data to hold the trace_event_call directly, so the deferred free no longer touches the freed trace_event_file.

Root Cause

The root cause is an object lifetime mismatch between trace_event_file and the deferred trigger free work. The trigger free kthread outlived the trace_event_file structure it depended on, with no reference count or synchronization guarding the access.

Attack Vector

Exploitation requires local access to the tracing control interfaces, typically tracefs mounted at /sys/kernel/tracing. These interfaces are normally restricted to root or users with CAP_SYS_ADMIN. An actor with the required privileges can configure an enable_event trigger and then remove the tracing instance to race the deferred free. See the upstream commits 67fb91a and bcfe2816 for the patch details.

Detection Methods for CVE-2026-97932

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing enable_trigger_data, trace_event_put_ref, or the trigger free kthread
  • KASAN reports flagging use-after-free in the tracing subsystem on systems with KASAN enabled
  • Unprivileged or unexpected processes writing to files under /sys/kernel/tracing/instances/*/events/*/trigger

Detection Strategies

  • Inventory running kernel versions and compare against the patched commits 67fb91a and bcfe2816
  • Monitor kernel ring buffer logs via dmesg or journalctl -k for tracing-related faults and KASAN splats
  • Audit which accounts and workloads have access to tracefs and debugfs mount points

Monitoring Recommendations

  • Enable kernel audit rules on writes to /sys/kernel/tracing/ and /sys/kernel/debug/tracing/ paths
  • Collect kernel crash dumps and forward them to a centralized analysis pipeline
  • Track instance creation and removal events in tracing to detect abnormal churn patterns

How to Mitigate CVE-2026-97932

Immediate Actions Required

  • Apply the upstream fix from kernel commits 67fb91a and bcfe2816 or the backported patch from your distribution vendor
  • Restrict access to tracefs and debugfs to trusted administrators only
  • Reboot into the patched kernel after installation to ensure the vulnerable code paths are replaced

Patch Information

The fix is available in the mainline Linux kernel through commits 67fb91a7f7bb1d958cf9cc249c912bca9b2fc821 and bcfe2816e6ec46c3f4c58aa4264476665ddb3f69. The patch keeps the trace_event_call reference directly inside enable_trigger_data, removing the dependency on the potentially freed trace_event_file.

Workarounds

  • Unmount or restrict tracefs where tracing is not operationally required
  • Remove CAP_SYS_ADMIN from service accounts that do not need kernel tracing access
  • Disable the enable_event trigger usage in automation and monitoring agents until the patched kernel is deployed
bash
# Configuration example
# Restrict tracefs access to root only
chmod 700 /sys/kernel/tracing

# Verify running kernel includes the fix
uname -r
grep -E 'enable_trigger_data|trace_event_put_ref' /proc/kallsyms

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.