Gopal Tiwari
7d16e7c161
Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data
[ Upstream commit e8bd76ede155fd54d8c41d045dda43cd3174d506 ]
kernel panic trace looks like:
#5 [ffffb9e08698fc80] do_page_fault at ffffffffb666e0d7
#6 [ffffb9e08698fcb0] page_fault at ffffffffb70010fe
[exception RIP: amp_read_loc_assoc_final_data+63]
RIP: ffffffffc06ab54f RSP: ffffb9e08698fd68 RFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8c8845a5a000 RCX: 0000000000000004
RDX: 0000000000000000 RSI: ffff8c8b9153d000 RDI: ffff8c8845a5a000
RBP: ffffb9e08698fe40 R8: 00000000000330e0 R9: ffffffffc0675c94
R10: ffffb9e08698fe58 R11: 0000000000000001 R12: ffff8c8b9cbf6200
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8c8b2026da0b
ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018
#7 [ffffb9e08698fda8] hci_event_packet at ffffffffc0676904 [bluetooth]
#8 [ffffb9e08698fe50] hci_rx_work at ffffffffc06629ac [bluetooth]
#9 [ffffb9e08698fe98] process_one_work at ffffffffb66f95e7
hcon->amp_mgr seems NULL triggered kernel panic in following line inside
function amp_read_loc_assoc_final_data
set_bit(READ_LOC_AMP_ASSOC_FINAL, &mgr->state);
Fixed by checking NULL for mgr.
Signed-off-by: Gopal Tiwari <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
|
2021-03-07 12:20:45 +01:00 |
| .. |
|
bnep
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234
|
2019-06-19 17:09:07 +02:00 |
|
cmtp
|
|
|
|
hidp
|
Bluetooth: hidp: Fix assumptions on the return value of hidp_send_message
|
2019-09-06 15:55:40 +02:00 |
|
rfcomm
|
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl
|
2020-04-13 10:48:13 +02:00 |
|
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
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284
|
2019-06-05 17:36:37 +02:00 |
|
af_bluetooth.c
|
net: use skb_queue_empty_lockless() in poll() handlers
|
2019-10-28 13:33:41 -07:00 |
|
amp.c
|
Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data
|
2021-03-07 12:20:45 +01:00 |
|
amp.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284
|
2019-06-05 17:36:37 +02:00 |
|
ecdh_helper.c
|
|
|
|
ecdh_helper.h
|
|
|
|
hci_conn.c
|
Bluetooth: Disconnect if E0 is used for Level 4
|
2020-10-17 10:11:22 +02:00 |
|
hci_core.c
|
Bluetooth: Put HCI device if inquiry procedure interrupts
|
2021-03-04 10:26:14 +01:00 |
|
hci_debugfs.c
|
Bluetooth: Add debug setting for changing minimum encryption key size
|
2019-08-17 13:54:40 +03:00 |
|
hci_debugfs.h
|
|
|
|
hci_event.c
|
Bluetooth: Fix null pointer dereference in hci_event_packet()
|
2020-12-30 11:51:05 +01:00 |
|
hci_request.c
|
Bluetooth: Fix advertising duplicated flags
|
2019-12-31 16:44:33 +01:00 |
|
hci_request.h
|
Bluetooth: Use controller sets when available
|
2019-07-06 15:38:18 +02:00 |
|
hci_sock.c
|
Bluetooth: Fix race condition in hci_release_sock()
|
2020-02-05 21:22:42 +00:00 |
|
hci_sysfs.c
|
|
|
|
Kconfig
|
bluetooth: switch to AES library
|
2019-07-26 14:58:12 +10:00 |
|
l2cap_core.c
|
Bluetooth: L2CAP: Fix calling sk_filter on non-socket based channel
|
2020-10-17 10:11:22 +02:00 |
|
l2cap_sock.c
|
Bluetooth: Only mark socket zapped after unlocking
|
2020-10-29 09:58:06 +01:00 |
|
leds.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
leds.h
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
|
2019-06-19 17:09:55 +02:00 |
|
lib.c
|
|
|
|
Makefile
|
|
|
|
mgmt.c
|
Bluetooth: MGMT: Fix not checking if BT_HS is enabled
|
2020-10-17 10:11:22 +02:00 |
|
mgmt_util.c
|
|
|
|
mgmt_util.h
|
|
|
|
sco.c
|
|
|
|
selftest.c
|
|
|
|
selftest.h
|
|
|
|
smp.c
|
bluetooth: switch to AES library
|
2019-07-26 14:58:12 +10:00 |
|
smp.h
|
|
|