Files
linux/drivers
Johan Hovold 2ad5692db7 net: hso: fix NULL-deref on disconnect regression
Commit 8a12f88361 ("net: hso: fix null-ptr-deref during tty device
unregistration") fixed the racy minor allocation reported by syzbot, but
introduced an unconditional NULL-pointer dereference on every disconnect
instead.

Specifically, the serial device table must no longer be accessed after
the minor has been released by hso_serial_tty_unregister().

Fixes: 8a12f88361 ("net: hso: fix null-ptr-deref during tty device unregistration")
Cc: stable@vger.kernel.org
Cc: Anirudh Rayabharam <mail@anirudhrb.com>
Reported-by: Leonardo Antoniazzi <leoanto@aruba.it>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Anirudh Rayabharam <mail@anirudhrb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-26 12:54:44 -07:00
..
2021-02-02 14:26:02 +01:00
2021-01-31 08:05:46 -07:00
2021-04-18 09:36:56 +03:00
2021-03-22 09:20:06 -07:00
2021-04-06 22:32:33 +02:00
2021-03-30 13:34:42 -07:00
2021-04-13 14:50:57 -07:00
2021-01-28 01:31:42 +01:00
2021-01-21 14:06:00 -07:00
2021-03-26 15:14:56 -07:00
2021-02-09 12:15:07 +01:00