CVE-2026-99237: tracing: Hold trace_types_lock when resetting last boot data from readers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-99237 to this issue.
Severity
========
CVSS v3.1: 7.8 HIGH
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 32dc0042528d385d83bf458e4cf3a49c5110afea and fixed in 6.18.60 with commit 92b69f6db640dadc0851762ee2e12db99f083cad Issue introduced in 6.16 with commit 32dc0042528d385d83bf458e4cf3a49c5110afea and fixed in 7.2.14 with commit d6d991afe775ab7fcf89523a2502b7ca3be56ffd Issue introduced in 6.16 with commit 32dc0042528d385d83bf458e4cf3a49c5110afea and fixed in 7.3.1 with commit 1f06cfe0b60a878619d1d8efe1cd0f515b7dc2aa
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99237
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/trace/trace.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/92b69f6db640dadc0851762ee2e12db99f083cad https://git.kernel.org/stable/c/d6d991afe775ab7fcf89523a2502b7ca3be56ffd https://git.kernel.org/stable/c/1f06cfe0b60a878619d1d8efe1cd0f515b7dc2aa https://git.kernel.org/stable/c/5a6bd62f09147b49b31fd19d4eba122cb5f941a1