Skip to contentSkip to conversation

CVE-2026-97924: tracing/user_events: Don't destroy fields when event removal fails

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tracing/user_events: Don't destroy fields when event removal fails

destroy_user_event() destroys the event's fields before attempting to remove the trace event call. If user_event_set_call_visible() fails, e.g. because the event is still enabled and trace_remove_event_call() returns -EBUSY, the event is left registered with an irreversibly destroyed field list. Any subsequent interaction with the event then operates on an empty field list while it is still fully visible in tracefs.

Move the field destruction after the call removal, and splice the field list back onto the event when the removal fails so the event remains in a consistent state.

The Linux kernel CVE team has assigned CVE-2026-97924 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.18 with commit 7f5a08c79df35e68f1a43033450c5050f12bc155 and fixed in 6.12.111 with commit 9c62b7e92b6086a2a0aeb71f3553dd8cf7fdcd8b
	Issue introduced in 5.18 with commit 7f5a08c79df35e68f1a43033450c5050f12bc155 and fixed in 6.18.53 with commit 0892da2272ec565858aa1ec5458552d699de9142
	Issue introduced in 5.18 with commit 7f5a08c79df35e68f1a43033450c5050f12bc155 and fixed in 7.2.7 with commit 62d6544e86506bb0695c9594c713cba859666f2f
	Issue introduced in 5.18 with commit 7f5a08c79df35e68f1a43033450c5050f12bc155 and fixed in 7.3-rc3 with commit 2deb753127d7b7035e893955c5e91875e767d1f8

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-97924

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_events_user.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/9c62b7e92b6086a2a0aeb71f3553dd8cf7fdcd8b
	https://git.kernel.org/stable/c/0892da2272ec565858aa1ec5458552d699de9142
	https://git.kernel.org/stable/c/62d6544e86506bb0695c9594c713cba859666f2f
	https://git.kernel.org/stable/c/2deb753127d7b7035e893955c5e91875e767d1f8