Files
twx-linux/drivers
Johan Hovold 2f525ed5ef USB: serial: mos7720: fix use-after-free on probe errors
commit 91a1ff4d53 upstream.

The interrupt URB was submitted on probe but never stopped on probe
errors. This can lead to use-after-free issues in the completion
handler when accessing the freed usb-serial struct:

Unable to handle kernel paging request at virtual address 6b6b6be7
...
[<bf052e70>] (mos7715_interrupt_callback [mos7720]) from [<c052a894>] (__usb_hcd_giveback_urb+0x80/0x140)
[<c052a894>] (__usb_hcd_giveback_urb) from [<c052a9a4>] (usb_hcd_giveback_urb+0x50/0x138)
[<c052a9a4>] (usb_hcd_giveback_urb) from [<c0550684>] (musb_giveback+0xc8/0x1cc)

Fixes: b69578df7e ("USB: usbserial: mos7720: add support for parallel port on moschip 7715")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-12 11:22:46 +01:00
..
…
…
…
…
…
…
…
…
2016-11-26 09:54:52 +01:00
…
…
…
2016-09-24 10:07:35 +02:00
…
…
…
…
…
2016-12-08 07:15:24 +01:00
…
2016-11-26 09:54:53 +01:00
…
…
…
…
…
…
2016-11-26 09:54:53 +01:00
…
…
2016-08-20 18:09:22 +02:00
…
…