Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] USB: serial: fix port tear down use-after-free
@ 2026-08-20 14:54 Johan Hovold
  2026-08-20 14:54 ` [PATCH 1/2] " Johan Hovold
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Johan Hovold @ 2026-08-20 14:54 UTC (permalink / raw)
  To: Johan Hovold; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

When addressing a port probe ordering issue in digi_acceleport recently
I realised that we have a corresponding general problem during
disconnect, but I didn't have time to address it straight away.

Now syzbot has managed to trigger one of its symptoms and people have
already started submitting incomplete band-aids so here is a proper
fix.

When testing the fix I also noticed that we have an ordering issue when
deregistering drivers that can result in similar use-after-free.

Johan


Johan Hovold (2):
  USB: serial: fix port tear down use-after-free
  USB: serial: fix driver deregistration order

 drivers/usb/serial/usb-serial.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-20 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 14:54 [PATCH 0/2] USB: serial: fix port tear down use-after-free Johan Hovold
2026-08-20 14:54 ` [PATCH 1/2] " Johan Hovold
2026-08-20 14:54 ` [PATCH 2/2] USB: serial: fix driver deregistration order Johan Hovold
2026-08-20 15:47   ` Alan Stern
2026-08-20 15:08 ` [PATCH 0/2] USB: serial: fix port tear down use-after-free Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox