Manish Mandlik
a2bcd2b632
Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_add_adv_monitor()
...
KSAN reports use-after-free in hci_add_adv_monitor().
While adding an adv monitor,
hci_add_adv_monitor() calls ->
msft_add_monitor_pattern() calls ->
msft_add_monitor_sync() calls ->
msft_le_monitor_advertisement_cb() calls in an error case ->
hci_free_adv_monitor() which frees the *moniter.
This is referenced by bt_dev_dbg() in hci_add_adv_monitor().
Fix the bt_dev_dbg() by using handle instead of monitor->handle.
Fixes: b747a83690 ("Bluetooth: hci_sync: Refactor add Adv Monitor")
Signed-off-by: Manish Mandlik <mmandlik@google.com >
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com >
2023-08-11 11:56:35 -07:00
..
2023-03-29 08:22:52 +01:00
2023-08-09 15:32:43 -07:00
2023-08-10 14:10:53 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-05-26 23:14:49 +02:00
2023-08-11 11:56:35 -07:00
2023-08-07 13:05:19 -07:00
2023-05-31 13:06:57 +02:00
2023-07-27 17:11:29 -07:00
2023-06-24 15:50:13 -07:00
2023-07-29 18:13:41 +01:00
2023-08-02 09:07:34 +02:00
2023-08-10 14:10:53 -07:00
2023-08-01 21:07:46 -07:00
2023-08-10 14:10:53 -07:00
2023-08-09 13:06:21 -07:00
2023-08-09 13:08:09 -07:00
2023-08-02 19:11:06 -07:00
2023-07-28 14:07:59 -07:00
2023-07-31 20:11:47 -07:00
2023-06-24 15:50:13 -07:00
2023-08-10 14:10:53 -07:00
2023-08-10 14:10:53 -07:00
2023-03-16 17:34:40 -07:00
2023-06-24 15:50:13 -07:00
2023-07-19 20:36:16 -07:00
2023-08-03 14:34:37 -07:00
2023-08-09 15:34:28 -07:00
2023-07-03 11:26:05 -07:00
2023-06-24 15:41:46 -07:00
2023-06-24 15:50:13 -07:00
2023-06-10 00:11:41 -07:00
2023-08-10 14:10:53 -07:00
2023-06-09 10:32:51 +01:00
2023-08-10 14:10:53 -07:00
2023-08-02 12:28:22 -07:00
2023-07-23 11:34:22 +01:00
2023-06-24 15:50:13 -07:00
2023-06-27 09:45:22 -07:00
2023-06-10 00:11:41 -07:00
2023-07-20 10:06:36 +02:00
2023-08-10 14:10:53 -07:00
2023-06-24 15:50:13 -07:00
2023-07-17 09:02:30 +01:00
2023-06-24 15:50:13 -07:00
2023-04-06 20:36:27 +02:00
2023-06-24 15:50:13 -07:00
2023-06-28 16:43:10 -07:00
2023-08-09 15:59:21 -07:00
2023-07-24 09:39:31 +01:00
2023-08-10 14:10:53 -07:00
2023-07-28 14:07:59 -07:00
2023-07-21 08:54:03 +01:00
2023-08-09 13:03:14 -07:00
2023-08-10 14:10:53 -07:00
2023-08-09 15:32:43 -07:00
2023-07-31 14:41:08 -07:00
2023-08-09 14:43:35 +02:00
2023-06-24 15:50:13 -07:00
2023-08-10 14:10:53 -07:00
2023-08-03 14:34:37 -07:00
2023-04-14 11:09:27 +01:00
2023-07-19 10:07:27 -07:00
2023-04-19 18:48:48 -07:00
2023-08-09 15:32:43 -07:00