diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-01-15 18:49:04 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2020-01-26 09:34:17 +0100 |
commit | 11eb85ec42dc8c7a7ec519b90ccf2eeae9409de8 (patch) | |
tree | a88ca07a4de1b08600afabe48fb8b92b15b5cc28 /drivers/pinctrl/intel/pinctrl-sunrisepoint.c | |
parent | Bluetooth: Move {min,max}_key_size debugfs into hci_debugfs_create_le (diff) | |
download | linux-11eb85ec42dc8c7a7ec519b90ccf2eeae9409de8.tar.xz linux-11eb85ec42dc8c7a7ec519b90ccf2eeae9409de8.zip |
Bluetooth: Fix race condition in hci_release_sock()
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>
Diffstat (limited to 'drivers/pinctrl/intel/pinctrl-sunrisepoint.c')
0 files changed, 0 insertions, 0 deletions