KernelScan.io

HIGH Introduced in 6.16

tracing LastBoot UAF

CVE-2026-99237

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 resetting last boot data from readers update_last_data_if_empty() is called from tracing_open() with O_TRUNC, tracing_read_pipe() and tracing_buffers_read() without trace_types_lock. Two readers can both pass the LAST_BOOT test and free module_delta twice, and a module notifier can update module_delta while it is being freed. Take trace_types_lock in those paths and keep the callers that already hold it on an unlocked variant.

02

Engine v0.10.0

Risk summary

A race condition in the kernel tracing subsystem allows local users with access to tracefs to trigger a double-free and use-after-free in the last-boot buffer reset logic. This can lead to kernel memory corruption, privilege escalation, or denial of service. Systems with tracefs mounted and accessible to non-root users are at highest risk.

Affectedkernel/trace/trace.c (tracing subsystem)

Vulnerability analysis

The tracing subsystem's last-boot buffer reset function was called from multiple reader paths (open with O_TRUNC, pipe read, buffer read) without holding the required trace_types_lock. This allowed two concurrent readers to both pass the LAST_BOOT check and free the same module_delta pointer twice, while a module notifier could simultaneously update that pointer during the free operation. The fix introduces a locked variant of the reset function that requires trace_types_lock, and a wrapper that acquires the lock for callers that don't already hold it, ensuring the reset operation is atomic with respect to other readers and module notifiers. Local users who can read trace files — typically root but potentially unprivileged users depending on tracefs mount permissions — can trigger this race by performing concurrent trace read operations, leading to kernel heap corruption and potential privilege escalation.

03

BranchIntroducedFixed inPatch commit
6.186.166.18.6092b69f6db640
7.26.167.2.14d6d991afe775
7.36.167.3.11f06cfe0b60a
mainline6.167.4-rc15a6bd62f0914