Skip to content

USB: misc: fix disconnect bugs

Johan Hovold linux-usb stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5USB: adutux: fix use-after-free on releasedrivers/usb/misc/adutux.c+2 -10 replies
2/5USB: chaoskey: fix use-after-free on releasedrivers/usb/misc/chaoskey.c+3 -20 replies
3/5USB: ldusb: fix NULL-derefs on driver unbinddrivers/usb/misc/ldusb.c+12 -120 replies
4/5USB: legousbtower: fix use-after-free on releasedrivers/usb/misc/legousbtower.c+2 -10 replies
5/5USB: yurex: fix NULL-derefs on disconnectdrivers/usb/misc/yurex.c+7 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] USB: misc: fix disconnect bugs

This series fixes a number of issues introduced primarily with the conversion to dev_err() and dev_dbg(), which failed to notice that the drivers where using their USB interface and device pointers as disconnected flags (leading to NULL derefs) and that they did not hold references to the structures (leading to use-after-free on release()).

I've already fixed up a few of these USB character device drivers separately, and the uss720 driver has similar bugs that remain to be fixed.

Johan

Johan Hovold (5):
USB: adutux: fix use-after-free on release
USB: chaoskey: fix use-after-free on release
USB: ldusb: fix NULL-derefs on driver unbind
USB: legousbtower: fix use-after-free on release
USB: yurex: fix NULL-derefs on disconnect

 drivers/usb/misc/adutux.c       |  3 ++-
 drivers/usb/misc/chaoskey.c     |  5 +++--
 drivers/usb/misc/ldusb.c        | 24 ++++++++++++------------
 drivers/usb/misc/legousbtower.c |  3 ++-
 drivers/usb/misc/yurex.c        | 11 +++++++----
 5 files changed, 26 insertions(+), 20 deletions(-)
Signature · 1 line
2.23.0