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-97933 Overview
CVE-2026-97933 is a use-after-free vulnerability in the Linux kernel tracing subsystem. The flaw affects the handler that opens tracer option files. When a user opens a tracer option file, the kernel passes a descriptor pointing to an element in the trace_array's topts array. A race condition exists where this element can be freed by concurrent removal of the trace instance that the trace_array represents. The result is a use-after-free on the memory that was supposed to anchor the reference count increment protecting the trace_array.
Critical Impact
A local attacker who can trigger concurrent open and instance-removal operations on the tracing filesystem can cause a kernel use-after-free, risking memory corruption or local privilege escalation.
Affected Products
- Linux kernel versions containing the vulnerable tracing subsystem code prior to the fix commits
- Linux distributions shipping affected stable kernel branches
- Systems that expose the tracing filesystem (tracefs) to privileged local users
Discovery Timeline
- 2026-09-25 - CVE-2026-97933 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97933
Vulnerability Analysis
The Linux kernel exposes per-instance tracer options through files under the tracefs hierarchy. When userspace opens one of these files, the kernel reads inode->i_private, which points to an element inside the owning trace_array's topts array. The open handler then dereferences that element to locate the parent trace_array and increment its reference count. The reference count is intended to keep the trace_array alive while the file descriptor remains open.
The root problem is that the topts element itself has no independent lifetime guarantee. If the trace instance is removed while another thread is in the middle of opening the option file, the topts memory can be freed before the open handler reads from it. Any subsequent dereference operates on freed memory, which is the classic use-after-free pattern [CWE-416].
Root Cause
The lifetime of a topts array element was tied to the trace_array instance, but the open path acquired a reference to the trace_array by first dereferencing the topts element. This ordering inverted the required invariant: the code needed a live reference before touching the memory used to find that reference. Instance removal frees the topts array as part of tearing down the trace_array, creating the race window.
Attack Vector
Exploitation requires local access with sufficient privileges to interact with tracefs and to create or remove trace instances. An attacker runs two concurrent operations: opening a tracer option file for an instance, and removing that same instance. Hitting the race window frees the topts element while the open handler still holds a pointer into it, producing a use-after-free that can be shaped into memory corruption.
The upstream fix introduces a trace_array_tracer_options_get() helper. The helper takes the address passed via inode->i_private and walks all registered trace_arrays under a lock. It compares that address against each array's topts range. When a match is found, the matching trace_array's reference count is incremented before the pointer is dereferenced for any other purpose. See the upstream patches b2fb87d29ffb and ed0aff60f83a for implementation details.
Detection Methods for CVE-2026-97933
Indicators of Compromise
- Kernel oops or panic messages referencing the tracing subsystem, particularly functions handling tracer option files
- KASAN reports flagging use-after-free in tracefs option-file open paths
- Unexpected rmdir and open sequences against /sys/kernel/tracing/instances/<name>/options/
Detection Strategies
- Audit kernel logs for crashes or warnings originating in the tracing subsystem during or after tracefs activity
- Enable KASAN on test and canary systems to catch exploitation attempts before production rollout
- Correlate process execution telemetry with access to tracefs instance creation and removal endpoints
Monitoring Recommendations
- Monitor processes that invoke mkdir and rmdir under /sys/kernel/tracing/instances/ with concurrent file opens
- Alert on non-administrative users or containers acquiring CAP_SYS_ADMIN and interacting with tracefs
- Track kernel version inventory to confirm patched builds are deployed across the fleet
How to Mitigate CVE-2026-97933
Immediate Actions Required
- Apply the upstream kernel patches referenced in commits b2fb87d29ffb and ed0aff60f83a once included in a stable release from your distribution
- Restrict access to tracefs so that only trusted administrators can create or remove trace instances
- Audit container runtime configurations to ensure workloads do not receive CAP_SYS_ADMIN or write access to /sys/kernel/tracing
Patch Information
The fix adds the trace_array_tracer_options_get() helper, which locates the owning trace_array under a lock using the topts element address and increments the reference count before any further dereference. Apply the patches from commit b2fb87d29ffb and commit ed0aff60f83a, or install the vendor-provided kernel update containing these commits.
Workarounds
- Unmount or disable tracefs on systems that do not require kernel tracing: umount /sys/kernel/tracing
- Tighten filesystem permissions on /sys/kernel/tracing so only root can access it
- Remove CAP_SYS_ADMIN from unprivileged containers and sandboxes until the patched kernel is deployed
# Restrict tracefs access to root only and unmount if unused
chmod 700 /sys/kernel/tracing
umount /sys/kernel/tracing # only if tracing is not required
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

