KernelScan.io

HIGH Introduced in 5.18

tracing UserEvent UAF

CVE-2026-97924

CVSS 7.4 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.6.0

Risk summary

A local user with access to the tracing interface can trigger a use-after-free by deleting a user event that is still enabled. The event's field data is freed prematurely while the event remains visible in tracefs, leaving the kernel operating on freed memory during any subsequent interaction with the event.

Affectedkernel/trace/trace_events_user.c (tracing/user_events)

Vulnerability analysis

When a user-created trace event is deleted, the kernel frees the event's field list before attempting to remove the event from the tracing subsystem. If that removal fails—for example, because the event is still enabled and the kernel refuses to remove it—the event stays registered and fully visible in tracefs but its fields have already been freed. Any subsequent operation on the event then touches freed memory. The fix postpones field destruction until after the event has been successfully removed and restores the field list if removal fails, keeping the event in a consistent state. This is reachable by any local user who can open the tracing interface in tracefs, which on most systems requires only local group membership or standard user permissions.

03

BranchIntroducedFixed inPatch commit
6.15.186.1.191c8efcb80f0b4
6.125.186.12.1119c62b7e92b60
6.185.186.18.530892da2272ec
6.65.186.6.158a3d9b8b7c8f3
7.25.187.2.762d6544e8650
mainline5.187.32deb753127d7
cip/6.125.186.12.111-cip329c62b7e92b60

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)