]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcba_usb: fix use-after-free on disconnect
authorJohan Hovold <johan@kernel.org>
Tue, 1 Oct 2019 10:29:13 +0000 (12:29 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:20 +0000 (21:47 +0100)
commitae8823fbdc548499eddff736e6f46cfc29c62ff1
treeb2fcd4498df3314092a4a1ead3235acc44d4d1a3
parent073e7b3eab4c49ad514c8905a6fc38351c4d9eef
can: mcba_usb: fix use-after-free on disconnect

The driver was accessing its driver data after having freed it.

Fixes: 3405f1d6e64b ("can: mcba_usb: Add support for Microchip CAN BUS Analyzer")
Cc: stable <stable@vger.kernel.org> # 4.12
Cc: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
Reported-by: syzbot+e29b17e5042bbc56fae9@syzkaller.appspotmail.com
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/mcba_usb.c