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-98076 Overview
CVE-2026-98076 is a use-after-free vulnerability in the Linux kernel's tracing subsystem, specifically in the probe-based dynamic event handling code (traceprobe_define_arg_fields()). The flaw affects kprobe, uprobe, eprobe, and fprobe events that share a single event call across multiple probes. When the first probe defining an event's fields is removed while sibling probes remain registered, the event retains pointers to freed field name and type strings. Subsequent field lookups, such as applying an event filter, dereference the dangling memory. The issue was reported by the autokbug dynamic kernel fuzzer at Tencent Yunding Lab.
Critical Impact
Local users with access to the tracefs interface can trigger kernel memory corruption through crafted sequences of probe creation, chaining, and deletion.
Affected Products
- Linux kernel (upstream) tracing/probes subsystem
- Distributions shipping affected kernel versions prior to the backported fixes
- Any system exposing kprobe_events, uprobe_events, or eprobe_events to privileged tracing users
Discovery Timeline
- 2026-09-25 - CVE-2026-98076 published to the National Vulnerability Database
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98076
Vulnerability Analysis
The Linux kernel's probe-based dynamic events allow administrators to attach kprobes, uprobes, eprobes, and fprobes to kernel or user-space symbols. Each probe registers argument definitions through traceprobe_define_arg_fields(), which calls trace_define_field() with pointers to the probe's name and type strings. The receiving function stores these pointers directly without copying the underlying buffers.
Multiple probes can share a single event call. The first probe to register the event defines the field list; later probes reuse it. The field list lifetime is therefore tied to the first probe's allocations, not to the shared trace_probe_event structure that outlives individual probes.
When the originating probe is removed by symbol, trace_probe_cleanup() invokes traceprobe_free_probe_arg() and releases the kstrdup'd name buffer and the kmalloc'd array type format. trace_probe_unlink() preserves the trace_probe_event because sibling probes still reference it, so the registered event continues to expose fields pointing to freed memory.
Root Cause
The root cause is a lifetime mismatch between field metadata and the probe arguments that own it. field->name aliases parg->name, and for array arguments field->type aliases parg->fmt. Both are released with the first probe even though the event call remains live through other probes. The fix duplicates the name and type strings and anchors them on the trace_probe_event, which is released by trace_probe_event_free() once no probes remain.
Attack Vector
Exploitation requires local access to the tracing filesystem, typically restricted to privileged users or containers with CAP_SYS_ADMIN and tracefs mounted. An attacker creates two probes that share one event name but target different symbols, deletes the originating probe by symbol, then triggers a field lookup through the filter interface. The resulting read from freed slab memory is detected by KASAN as slab-use-after-free in strcmp reached through trace_find_event_field and parse_pred. Because both the lookup and the deletion run under event_mutex, the condition is a deterministic dangling reference rather than a race.
See the upstream patches kernel commit 178ff2e, kernel commit 411c908, kernel commit 68ae584, and kernel commit 86b7a23 for the exact changes to traceprobe_define_arg_fields() and trace_probe_event_free().
Detection Methods for CVE-2026-98076
Indicators of Compromise
- KASAN reports containing slab-use-after-free in strcmp with a call chain through trace_find_event_field, parse_pred, process_preds, create_filter, and event_filter_write.
- Unexpected kernel oops or panics triggered immediately after writes to events/<probe_group>/<event>/filter.
- Audit records showing non-root or container workloads writing to kprobe_events, uprobe_events, or eprobe_events.
Detection Strategies
- Enable KASAN on test kernels and replay the public reproducer that creates two kprobes sharing an event name, removes the first by symbol, then writes a filter expression.
- Alert on sequences of writes to /sys/kernel/tracing/kprobe_events that include both append (>>) operations and symbol-based delete (-:) operations against the same event.
- Collect kernel logs centrally and search for BUG: KASAN entries referencing trace_find_event_field or traceprobe symbols.
Monitoring Recommendations
- Monitor process execution for use of tools that interact with tracefs or debugfs, including perf, bpftrace, and direct shell redirection to kprobe_events.
- Track container escapes or privilege transitions that grant CAP_SYS_ADMIN and tracefs access to otherwise unprivileged workloads.
- Baseline normal kernel log volume for KASAN and oops messages, and alert on new occurrences following tracing activity.
How to Mitigate CVE-2026-98076
Immediate Actions Required
- Apply the stable kernel updates that include commits 178ff2e, 411c908, 68ae584, and 86b7a23 as soon as your distribution ships them.
- Restrict access to /sys/kernel/tracing and /sys/kernel/debug/tracing to trusted administrators only, and remove tracefs mounts from container images that do not require them.
- Audit existing kprobe, uprobe, and eprobe definitions for shared event names created by multiple probes and remove unneeded entries.
Patch Information
Upstream fixes are available in the Linux stable tree. The patches modify traceprobe_define_arg_fields() to kstrdup the probe argument name and type strings and attach them to the trace_probe_event structure, so they survive removal of any individual probe. trace_probe_event_free() releases the duplicated strings when the event itself is destroyed. Backports are published in the referenced stable commits.
Workarounds
- Disable dynamic event creation by preventing non-root users from writing to kprobe_events, uprobe_events, and eprobe_events, for example through SELinux or AppArmor policy.
- Avoid defining multiple probes under the same event name until patched kernels are deployed; use distinct event names per probe so that removing one probe also tears down its event.
- Unmount tracefs and debugfs on production systems that do not need live kernel tracing.
# Restrict tracefs to root only after mount
mount -o remount,mode=0700 /sys/kernel/tracing
chown root:root /sys/kernel/tracing/kprobe_events \
/sys/kernel/tracing/uprobe_events
chmod 0600 /sys/kernel/tracing/kprobe_events \
/sys/kernel/tracing/uprobe_events
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

