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-97919 Overview
CVE-2026-97919 is a use-after-free vulnerability in the Linux kernel's tracing subsystem, specifically in the named histogram trigger logic. The flaw resides in event_hist_trigger_named_init(), which publishes a trigger to the global named_triggers list before acquiring a reference on the shared histogram data. When event_hist_trigger_init() subsequently fails because alloc_hist_pad() cannot allocate memory, the trigger is freed by event_hist_trigger_parse() while still reachable through the list. A later lookup by name reads freed memory, producing a KASAN slab-use-after-free report in find_named_trigger().
Critical Impact
Local users with permission to configure kernel tracing can trigger a use-after-free in the ftrace histogram subsystem, enabling kernel memory corruption and potential privilege escalation.
Affected Products
- Linux kernel (upstream) with named histogram trigger support in the ftrace subsystem
- Stable kernel branches referenced by the fix commits 0fe23b8e, 2ffaade3, and 91c15cdd
- Distributions shipping kernels built with CONFIG_HIST_TRIGGERS enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-97919 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97919
Vulnerability Analysis
The tracing subsystem supports named histogram triggers that can share a backing histogram across multiple events. During initialization, event_hist_trigger_named_init() increments the reference counter, calls save_named_trigger() to insert the trigger into the global named_triggers list, and only then invokes event_hist_trigger_init() on the shared data. If the initialization step fails due to a failed allocation in alloc_hist_pad(), the trigger is never removed from the list before the caller frees it in event_hist_trigger_parse().
The result is a dangling pointer on a globally reachable list. Subsequent trigger configuration causes find_named_trigger() to dereference the freed object, as confirmed by the KASAN report in the commit message. The report identifies kfree() from trigger_kthread_fn() as the freeing path and hist_register_trigger() as the use path.
The fix inverts the ordering: the reference is taken and initialization completed before the trigger is published to the global list, so no failure path leaves a freed object findable by name.
Root Cause
The root cause is an ordering violation in resource lifecycle management. Publication to a globally reachable data structure precedes the completion of initialization steps that can fail. When those steps fail, the cleanup path frees an object that remains linked into the lookup structure, violating the invariant that only fully initialized objects are externally visible.
Attack Vector
Exploitation requires local access and the ability to write to tracefs or debugfs trigger files, typically restricted to privileged users but sometimes available to unprivileged users in containerized or misconfigured environments. An attacker races repeated trigger creations under memory pressure to force alloc_hist_pad() failure, then issues a subsequent named trigger operation to dereference the freed object. Successful exploitation can corrupt kernel memory and lead to privilege escalation.
No public proof-of-concept exploit is referenced in the advisory. Technical details are available in the upstream fix commits 0fe23b8e, 2ffaade3, and 91c15cdd.
Detection Methods for CVE-2026-97919
Indicators of Compromise
- KASAN slab-use-after-free reports naming find_named_trigger, hist_register_trigger, or event_hist_trigger_parse in the backtrace
- Unexpected kernel oopses or panics correlated with writes to /sys/kernel/tracing/events/*/trigger or /sys/kernel/debug/tracing/events/*/trigger
- Memory allocation failure messages from alloc_hist_pad immediately preceding tracing-related kernel errors
Detection Strategies
- Audit process execution and file writes targeting tracefs and debugfs trigger interfaces, especially from non-root or containerized workloads
- Correlate kernel log entries containing KASAN, BUG:, or histogram trigger errors with user-session telemetry
- Monitor for repeated failed trigger registrations as a signal of fault-injection or exploitation attempts
Monitoring Recommendations
- Forward kernel ring buffer and journald logs to a centralized analytics platform for anomaly detection
- Alert on any process writing to tracing trigger files outside of approved observability tooling
- Track kernel version inventory across the fleet to confirm patched builds are deployed
How to Mitigate CVE-2026-97919
Immediate Actions Required
- Upgrade to a kernel release that includes commits 0fe23b8e, 2ffaade3, or 91c15cdd from your distribution vendor
- Restrict access to tracefs and debugfs so only trusted administrators can write to trigger files
- Review container runtimes to ensure the host tracing filesystems are not mounted inside untrusted containers
Patch Information
The upstream fix reorders the operations in event_hist_trigger_named_init() so the reference is taken and event_hist_trigger_init() succeeds before save_named_trigger() publishes the trigger. Apply the patches referenced in Kernel Git Commit 0fe23b8, Kernel Git Commit 2ffaade3, and Kernel Git Commit 91c15cdd, or install the corresponding stable kernel update from your distribution.
Workarounds
- Unmount or remount tracefs and debugfs with restrictive permissions where tracing is not required for operations
- Disable CONFIG_HIST_TRIGGERS in custom kernel builds if named histogram triggers are not needed
- Enforce mandatory access control policies (SELinux, AppArmor) that deny write access to tracing trigger paths for non-administrative users
# Restrict access to tracing interfaces until patched kernel is deployed
mount -o remount,mode=0700 /sys/kernel/tracing
mount -o remount,mode=0700 /sys/kernel/debug
chmod 700 /sys/kernel/tracing /sys/kernel/debug
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

