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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7f5a08c79df35e68f1a43033450c5050f12bc155 to < c8efcb80f0b4d253482f9117db29bb92b4197d52affected7f5a08c79df35e68f1a43033450c5050f12bc155 to < a3d9b8b7c8f3627976fe758c77ffd3da260824d7affected7f5a08c79df35e68f1a43033450c5050f12bc155 to < 9c62b7e92b6086a2a0aeb71f3553dd8cf7fdcd8baffected7f5a08c79df35e68f1a43033450c5050f12bc155 to < 0892da2272ec565858aa1ec5458552d699de9142affected7f5a08c79df35e68f1a43033450c5050f12bc155 to < 62d6544e86506bb0695c9594c713cba859666f2faffected7f5a08c79df35e68f1a43033450c5050f12bc155 to < 2deb753127d7b7035e893955c5e91875e767d1f8affected
Linux Linux
Default version status: affected
5.18affected0 to < 5.18unaffected6.1.191 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.111 to ≤ 6.12.*unaffected6.18.53 to ≤ 6.18.*unaffected7.2.7 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c8efcb80f0b4d253482f9117db29bb92b4197d52 ↗
- https://git.kernel.org/stable/c/a3d9b8b7c8f3627976fe758c77ffd3da260824d7 ↗
- 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 ↗