Thread (9 messages) 9 messages, 2 authors, 1d ago

Re: [PATCH v2 7/7] usb: fix UAF when probe runs concurrent to dyn ID removal

From: Danilo Krummrich <dakr@kernel.org>
Date: 2026-07-07 13:41:37
Also in: driver-core, linux-media, linux-usb, linux-wireless, lkml

On 7/7/26 2:26 PM, Gary Guo wrote:
Dynamic IDs are only guaranteed to be valid when usb_dynids_lock is held,
as remove_id_store can free the node. Thus, make a copy in
usb_probe_interface. Clarify the documentation that the id parameter is
only valid during the probe.

USB serial has the same pattern, but it does not need fixing as the IDs
cannot be removed via sysfs.

Fixes: 0c7a2b72746a ("USB: add remove_id sysfs attr for usb drivers")
Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help