WSL2-Linux-Kernel/net/bluetooth
Griffin Kroah-Hartman 951d6cb5ea Bluetooth: MGMT: Add error handling to pair_device()
commit 538fd3921afac97158d4177139a0ad39f056dbb2 upstream.

hci_conn_params_add() never checks for a NULL value and could lead to a NULL
pointer dereference causing a crash.

Fixed by adding error handling in the function.

Cc: Stable <stable@kernel.org>
Fixes: 5157b8a503 ("Bluetooth: Fix initializing conn_params in scan phase")
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
Reported-by: Yiwei Zhang <zhan4630@purdue.edu>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-04 13:23:35 +02:00
..
bnep Bluetooth: bnep: Fix out-of-bound access 2024-09-04 13:23:27 +02:00
cmtp
hidp
rfcomm
6lowpan.c
Kconfig
Makefile
a2mp.c
a2mp.h
af_bluetooth.c
amp.c
amp.h
aosp.c
aosp.h
ecdh_helper.c
ecdh_helper.h
hci_conn.c
hci_core.c Bluetooth: hci_core: Fix LE quote calculation 2024-09-04 13:23:31 +02:00
hci_debugfs.c
hci_debugfs.h
hci_event.c
hci_request.c
hci_request.h
hci_sock.c
hci_sysfs.c
l2cap_core.c
l2cap_sock.c
leds.c
leds.h
lib.c
mgmt.c Bluetooth: MGMT: Add error handling to pair_device() 2024-09-04 13:23:35 +02:00
mgmt_config.c
mgmt_config.h
mgmt_util.c
mgmt_util.h
msft.c
msft.h
sco.c
selftest.c
selftest.h
smp.c Bluetooth: SMP: Fix assumption of Central always being Initiator 2024-09-04 13:23:32 +02:00
smp.h