Bluetooth: btintel: Fix null ptr deref in btintel_read_version
authorEdward Adam Davis <eadavis@qq.com>
Thu, 18 Jan 2024 04:40:34 +0000 (12:40 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 6 Mar 2024 22:22:39 +0000 (17:22 -0500)
commitb79e040910101b020931ba0c9a6b77e81ab7f645
tree548ef5791003c0c73077e513d439499efbd2bfcf
parent9c16d0c8d93e3d2a95c5ed927b061f244db75579
Bluetooth: btintel: Fix null ptr deref in btintel_read_version

If hci_cmd_sync_complete() is triggered and skb is NULL, then
hdev->req_skb is NULL, which will cause this issue.

Reported-and-tested-by: syzbot+830d9e3fa61968246abd@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel.c