Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer __l2cap_ecred_conn_rsp_defer() > __l2cap_chan_list_id() accesses conn->chan_l which is guarded by conn->lock. The lock fails to be held when calling from l2cap_sock.c. Fix by using l2cap_chan_conn_lock(), and taking the locks in required order l2cap_conn::lock > l2cap_chan::lock > sk. Leave fast path with sk->sk_state precheck. Move the L2CAP defer handling to l2cap_sock_defer(). The code should also take l2cap_chan_lock() for sibling channels, but that needs separate fix due to lock nesting.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
ab4eedb790cae44313759b50fe47da285e2519d5 to < 878dd63b28288fb36acc187e27b7d4f86ffdaac7affectedab4eedb790cae44313759b50fe47da285e2519d5 to < 32d86e048d8efedb7aa6cbbd3c36c3c435401c92affectedefc30877bd4bc85fefe98d80af60fafc86e5775eaffectedf87271d21dd4ee83857ca11b94e7b4952749bbaeaffected18ab6b6078fa8191ca30a3065d57bf35d5635761affected6.6.84 to < 6.7affected6.12.20 to < 6.13affected6.13.8 to < 6.14affected
Linux Linux
Default version status: affected
6.14affected0 to < 6.14unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected