Files
linux/drivers
Johan Hovold f723d7ea08 USB: iowarrior: fix use-after-free on disconnect
commit edc4746f25 upstream.

A recent fix addressing a deadlock on disconnect introduced a new bug
by moving the present flag out of the critical section protected by the
driver-data mutex. This could lead to a racing release() freeing the
driver data before disconnect() is done with it.

Due to insufficient locking a related use-after-free could be triggered
also before the above mentioned commit. Specifically, the driver needs
to hold the driver-data mutex also while checking the opened flag at
disconnect().

Fixes: c468a8aa79 ("usb: iowarrior: fix deadlock on disconnect")
Fixes: 946b960d13 ("USB: add driver for iowarrior devices.")
Cc: stable <stable@vger.kernel.org>	# 2.6.21
Reported-by: syzbot+0761012cebf7bdb38137@syzkaller.appspotmail.com
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191009104846.5925-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-17 13:40:59 -07:00
..
2019-09-21 07:12:53 +02:00
2019-10-05 12:27:55 +02:00
2018-12-21 14:09:52 +01:00
2019-09-10 10:29:48 +01:00
2019-10-07 21:01:01 +02:00
2018-12-21 14:09:52 +01:00
2018-11-21 09:27:36 +01:00
2018-11-27 16:08:02 +01:00
2018-10-10 08:52:04 +02:00
2019-09-16 08:13:36 +02:00
2019-06-11 12:23:55 +02:00
2019-10-17 13:40:55 -07:00