Dan Carpenter
c4895cf45f
Bluetooth: sco: prevent information leak in sco_conn_defer_accept()
...
[ Upstream commit 59da0b38bc2ea570ede23a3332ecb3e7574ce6b2 ]
Smatch complains that some of these struct members are not initialized
leading to a stack information disclosure:
net/bluetooth/sco.c:778 sco_conn_defer_accept() warn:
check that 'cp.retrans_effort' doesn't leak information
This seems like a valid warning. I've added a default case to fix
this issue.
Fixes: 2f69a82acf ("Bluetooth: Use voice setting in deferred SCO connection request")
Signed-off-by: Dan Carpenter <[email protected] >
Signed-off-by: Marcel Holtmann <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2021-09-15 09:47:31 +02:00
..
bnep
cmtp
Bluetooth: cmtp: fix file refcount when cmtp_attach_device fails
2021-06-03 08:59:06 +02:00
hidp
Bluetooth: hidp: use correct wait queue when removing ctrl_wait
2021-08-26 08:36:15 -04:00
rfcomm
6lowpan.c
Bluetooth: add a mutex lock to avoid UAF in do_enale_set
2020-08-19 08:15:59 +02:00
a2mp.c
Bluetooth: drop HCI device reference before return
2021-03-04 10:26:14 +01:00
a2mp.h
af_bluetooth.c
amp.c
Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data
2021-03-07 12:20:45 +01:00
amp.h
ecdh_helper.c
ecdh_helper.h
Fix misc new gcc warnings
2021-05-11 14:04:16 +02:00
hci_conn.c
Bluetooth: Disconnect if E0 is used for Level 4
2020-10-17 10:11:22 +02:00
hci_core.c
Bluetooth: defer cleanup of resources in hci_unregister_dev()
2021-08-12 13:20:58 +02:00
hci_debugfs.c
hci_debugfs.h
hci_event.c
Bluetooth: Fix handling of HCI_LE_Advertising_Set_Terminated event
2021-07-14 16:53:34 +02:00
hci_request.c
bluetooth: eliminate the potential race condition when removing the HCI controller
2021-05-14 09:44:10 +02:00
hci_request.h
hci_sock.c
Bluetooth: defer cleanup of resources in hci_unregister_dev()
2021-08-12 13:20:58 +02:00
hci_sysfs.c
Bluetooth: defer cleanup of resources in hci_unregister_dev()
2021-08-12 13:20:58 +02:00
Kconfig
l2cap_core.c
Bluetooth: initialize skb_queue_head at l2cap_chan_create()
2021-05-19 10:08:21 +02:00
l2cap_sock.c
Bluetooth: L2CAP: Fix handling LE modes by L2CAP_OPTIONS
2021-05-26 12:05:21 +02:00
leds.c
leds.h
lib.c
Makefile
mgmt.c
Bluetooth: Fix the HCI to MGMT status conversion table
2021-07-19 08:53:13 +02:00
mgmt_util.c
mgmt_util.h
sco.c
Bluetooth: sco: prevent information leak in sco_conn_defer_accept()
2021-09-15 09:47:31 +02:00
selftest.c
selftest.h
smp.c
Bluetooth: SMP: Fail if remote and local public keys are identical
2021-05-26 12:05:21 +02:00
smp.h