Files
linux/net
Dan Carpenter cd36ef0d2d Bluetooth: Fix race condition in hci_release_sock()
commit 11eb85ec42 upstream.

Syzbot managed to trigger a use after free "KASAN: use-after-free Write
in hci_sock_bind".  I have reviewed the code manually and one possibly
cause I have found is that we are not holding lock_sock(sk) when we do
the hci_dev_put(hdev) in hci_sock_release().  My theory is that the bind
and the release are racing against each other which results in this use
after free.

Reported-by: syzbot+eba992608adf3d796bcc@syzkaller.appspotmail.com
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 16:54:33 +09:00
..
2023-05-15 12:38:05 +09:00
2023-05-15 16:07:59 +09:00
2023-05-15 16:47:32 +09:00
2023-05-15 14:29:05 +09:00
2023-05-15 13:49:35 +09:00
2023-05-15 12:05:35 +09:00
2023-05-15 15:17:38 +09:00
2023-05-15 16:48:22 +09:00
2023-05-15 14:29:05 +09:00
2023-05-15 10:49:15 +09:00
2023-05-15 16:34:23 +09:00