USB: serial: fix interface URB leaks and use-after-free
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | USB: serial: io_edgeport: fix memory leaks in attach error pathdrivers/ | +28 | 0 replies | |
| 2/8 | USB: serial: io_edgeport: fix memory leaks in probe error pathdrivers/ | +10 | 0 replies | |
| 3/8 | USB: serial: keyspan: fix use-after-free in probe error pathdrivers/ | +4 | 0 replies | |
| 4/8 | USB: serial: keyspan: fix URB unlinkdrivers/ | +10 | 0 replies | |
| 5/8 | USB: serial: keyspan: fix debug and error messagesdrivers/ | +25 | 0 replies | |
| 6/8 | USB: serial: mxuport: fix use-after-free in probe error pathdrivers/ | +10 | 0 replies | |
| 7/8 | USB: serial: quatech2: fix use-after-free in probe error pathdrivers/ | +1 | 0 replies | |
| 8/8 | USB: serial: fix minor-number allocationdrivers/ | +2 | 2 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Greg Kroah-Hartman |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] USB: serial: fix interface URB leaks and use-after-free
This series fixes a number of issues where resources were not properly released on probe errors. Typically, URBs allocated and submitted in an attach callback were never unlinked or released in a matching release callback. This could lead to memory leaks and use-after-free bugs as we could end up with unbound interfaces with active URBs.
Included is also a couple of minor fixes and clean ups of the keyspan driver, and a fix of how we deal with minor-number exhaustion in core.
Johan
Johan Hovold (8):
USB: serial: io_edgeport: fix memory leaks in attach error path
USB: serial: io_edgeport: fix memory leaks in probe error path
USB: serial: keyspan: fix use-after-free in probe error path
USB: serial: keyspan: fix URB unlink
USB: serial: keyspan: fix debug and error messages
USB: serial: mxuport: fix use-after-free in probe error path
USB: serial: quatech2: fix use-after-free in probe error path
USB: serial: fix minor-number allocation
drivers/usb/serial/io_edgeport.c | 56 +++++++++++++++++++++---------- drivers/usb/serial/keyspan.c | 72 ++++++++++++++++++++++------------------ drivers/usb/serial/mxuport.c | 10 ++++++ drivers/usb/serial/quatech2.c | 1 + drivers/usb/serial/usb-serial.c | 3 +- 5 files changed, 90 insertions(+), 52 deletions(-)
Signature · 1 line
2.7.3