Pauli Virtanen
5c7209a341
Bluetooth: fix locking in hci_conn_request_evt() with HCI_PROTO_DEFER
...
When protocol sets HCI_PROTO_DEFER, hci_conn_request_evt() calls
hci_connect_cfm(conn) without hdev->lock. Generally hci_connect_cfm()
assumes it is held, and if conn is deleted concurrently -> UAF.
Only SCO and ISO set HCI_PROTO_DEFER and only for defer setup listen,
and HCI_EV_CONN_REQUEST is not generated for ISO. In the non-deferred
listening socket code paths, hci_connect_cfm(conn) is called with
hdev->lock held.
Fix by holding the lock.
Fixes: 70c4642563 ("Bluetooth: Refactor connection request handling")
Signed-off-by: Pauli Virtanen <pav@iki.fi >
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com >
2026-04-13 09:18:16 -04:00
..
2025-07-10 15:27:32 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-19 14:16:00 -07:00
2026-02-21 17:09:51 -08:00
2026-04-08 18:50:27 -07:00
2026-04-13 09:18:16 -04:00
2026-02-21 17:09:51 -08:00
2026-04-09 13:20:59 -07:00
2026-02-21 17:09:51 -08:00
2026-03-19 17:16:02 +01:00
2026-03-11 10:18:56 +01:00
2026-04-09 19:27:43 -07:00
2026-02-21 17:09:51 -08:00
2026-04-09 13:20:59 -07:00
2026-03-09 18:32:45 -07:00
2026-04-06 18:30:33 -07:00
2026-03-16 19:29:45 -07:00
2026-04-09 18:21:46 -07:00
2026-02-21 01:02:28 -08:00
2026-04-07 17:06:16 +02:00
2026-03-02 18:17:17 -08:00
2026-04-09 13:20:59 -07:00
2026-04-09 20:37:40 -07:00
2026-03-31 20:14:56 -07:00
2026-02-23 17:26:55 -08:00
2026-04-07 11:08:24 +02:00
2026-04-09 13:20:59 -07:00
2025-04-15 17:54:56 -07:00
2026-02-21 01:02:28 -08:00
2026-02-21 01:02:28 -08:00
2026-04-09 19:27:43 -07:00
2026-03-16 19:29:45 -07:00
2026-04-06 18:06:47 -07:00
2026-04-02 11:03:13 -07:00
2026-04-09 19:27:43 -07:00
2026-03-06 17:34:48 -08:00
2026-04-09 13:20:59 -07:00
2026-02-21 17:09:51 -08:00
2026-03-12 19:29:01 -07:00
2026-02-21 17:09:51 -08:00
2026-03-19 16:56:18 -07:00
2026-04-09 19:27:43 -07:00
2026-03-23 17:07:19 -07:00
2026-03-19 14:16:00 -07:00
2026-02-21 01:02:28 -08:00
2026-03-29 11:21:22 -07:00
2026-04-02 11:03:13 -07:00
2026-04-02 11:03:13 -07:00
2026-04-07 12:35:04 +02:00
2026-03-12 19:23:59 -07:00
2026-04-09 13:20:59 -07:00
2026-04-09 13:20:59 -07:00
2026-04-09 19:27:43 -07:00
2026-03-19 13:47:15 +01:00
2026-03-20 18:59:30 -07:00
2025-11-13 12:35:38 -08:00
2026-03-18 14:27:11 -07:00
2026-03-19 13:14:00 +01:00
2026-04-09 19:27:43 -07:00
2026-04-09 13:20:59 -07:00
2026-04-09 13:20:59 -07:00
2026-04-06 18:29:01 -07:00
2026-03-26 18:17:14 -07:00
2026-04-02 13:36:08 +02:00
2026-04-09 18:26:28 -07:00
2026-04-09 13:20:59 -07:00
2025-11-26 13:45:23 -07:00
2025-10-17 16:29:26 -07:00
2025-09-18 12:32:06 +02:00
2026-03-11 20:38:00 -07:00