]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 20 Nov 2023 15:04:39 +0000 (10:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:12:27 +0000 (15:12 +0100)
commit25a6fdd26d138c9de86e22407b9abe2fb4ed6e0e
tree7756a2ff1a73b5c4eae47fd8f997dd7d717fd47f
parent71e1c7654010ec24473fe5edba78a90b185c1645
Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent

commit 99e67d46e5ff3c7c901af6009edec72d3d363be8 upstream.

Before setting HCI_INQUIRY bit check if HCI_OP_INQUIRY was really sent
otherwise the controller maybe be generating invalid events or, more
likely, it is a result of fuzzing tools attempting to test the right
behavior of the stack when unexpected events are generated.

Cc: stable@vger.kernel.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218151
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/hci_event.c