ieee802154: atusb: fix use-after-free at disconnect
authorJohan Hovold <johan@kernel.org>
Thu, 19 Sep 2019 12:12:34 +0000 (14:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2019 16:21:07 +0000 (18:21 +0200)
commit3f41e88f4bd44284c575ad3fb579581a16b39069
tree06c969024adb66cdcc9f83b188dee1fc2229f6af
parent975859bb69b2e20ebbe4b059f319663ca6c783dc
ieee802154: atusb: fix use-after-free at disconnect

commit 7fd25e6fc035f4b04b75bca6d7e8daa069603a76 upstream.

The disconnect callback was accessing the hardware-descriptor private
data after having having freed it.

Fixes: 7490b008d123 ("ieee802154: add support for atusb transceiver")
Cc: stable <stable@vger.kernel.org> # 4.2
Cc: Alexander Aring <alex.aring@gmail.com>
Reported-by: syzbot+f4509a9138a1472e7e80@syzkaller.appspotmail.com
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ieee802154/atusb.c