CVE-2026-99238: tracing: Hold trace_types_lock when updating modules in persistent instances
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-99238 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.15 with commit 5f3719f697c3fdfae5cd6805f10ac7a04b0f4e43 and fixed in 6.18.60 with commit 57408eac99b0d8a005796346d317d31f0ca4e07a Issue introduced in 6.15 with commit 5f3719f697c3fdfae5cd6805f10ac7a04b0f4e43 and fixed in 7.2.14 with commit dab2bd4d67ad5eaa95019a9511f8d379401b5021 Issue introduced in 6.15 with commit 5f3719f697c3fdfae5cd6805f10ac7a04b0f4e43 and fixed in 7.3.1 with commit 244c442f54601a24c86ad90572bf36fc3df41c5e
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-99238
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/57408eac99b0d8a005796346d317d31f0ca4e07a https://git.kernel.org/stable/c/dab2bd4d67ad5eaa95019a9511f8d379401b5021 https://git.kernel.org/stable/c/244c442f54601a24c86ad90572bf36fc3df41c5e https://git.kernel.org/stable/c/66877a312ae3c2c3d849e82e882f642ffd4ec3e2