HIGH Introduced in 6.15
tracing Instance UAF
CVE-2026-99238
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 6.15 | 6.18.60 | 57408eac99b0 |
| 7.2 | 6.15 | 7.2.14 | dab2bd4d67ad |
| 7.3 | 6.15 | 7.3.1 | 244c442f5460 |
| mainline | 6.15 | 7.4-rc1 | 66877a312ae3 |