KernelScan.io

HIGH Introduced in 6.15

tracing Instance UAF

CVE-2026-99238

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: tracing: Hold trace_types_lock when updating modules in persistent instances trace_module_record() walks ftrace_trace_arrays from the module notifier without trace_types_lock. A concurrent rmdir of an instance removes it from the list and frees it under that lock, so a module load or unload can walk into a freed trace_array.

02

Engine v0.10.0

Risk summary

A local attacker who can trigger module loads and manipulate tracing instances can exploit a race condition to achieve use-after-free in the kernel tracing subsystem, leading to privilege escalation or denial of service. The vulnerability is reachable from unprivileged user namespaces when enabled, making containerized and multi-tenant environments particularly exposed.

Affectedkernel/trace/trace.c (tracing)

Vulnerability analysis

A race condition in the kernel's tracing subsystem allows a local attacker to trigger a use-after-free by racing module load/unload operations against the removal of tracing instances. When a module is loaded or unloaded, the kernel notifier walks the list of tracing instances to update persistent ones, but did so without holding the lock that protects this list. Concurrently, a process removing a tracing instance (via rmdir on tracefs) acquires that lock, unlinks the instance, and frees its memory. If the module notifier walks into a freed instance, it accesses stale memory, enabling privilege escalation or kernel crash. The fix ensures the trace_types_lock is held for the entire list traversal. An attacker needs local access and the ability to both trigger module loading (directly or via device access) and create/destroy tracing instances, which typically requires CAP_SYS_MODULE and CAP_SYS_ADMIN — capabilities obtainable in an unprivileged user namespace if enabled.

03

BranchIntroducedFixed inPatch commit
6.186.156.18.6057408eac99b0
7.26.157.2.14dab2bd4d67ad
7.36.157.3.1244c442f5460
mainline6.157.4-rc166877a312ae3