]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: fix null ptr deref on hci_sync_conn_complete_evt
authorSoenke Huster <soenke.huster@eknoes.de>
Fri, 14 Jan 2022 16:44:02 +0000 (17:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:51 +0000 (07:52 +0100)
commitee74307e267e6901ec0b1c14699a57e290b4e3cc
treef49ae38d396aa6a2077d24fb3fe09598d29b6836
parentd6011986b849c839def9c3fa9b1fdbf79af2fa49
Bluetooth: fix null ptr deref on hci_sync_conn_complete_evt

commit 445a77a3fb647ff5c58e4869727efbce641f916d upstream.

This event is just specified for SCO and eSCO link types.
On the reception of a HCI_Synchronous_Connection_Complete for a BDADDR
of an existing LE connection, LE link type and a status that triggers the
second case of the packet processing a NULL pointer dereference happens,
as conn->link is NULL.

Signed-off-by: Soenke Huster <soenke.huster@eknoes.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Ovidiu Panait <ovidiu.panait@eng.windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/hci_event.c