Bluetooth: L2CAP: Fix deadlock in l2cap_conn_del()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.13, Kernel 6.14, Kernel 6.18.21 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix deadlock in l2cap_conn_del() l2cap_conn_del() calls cancel_delayed_work_sync() for both info_timer and id_addr_timer while holding conn->lock. However, the work functions l2cap_info_timeout() and l2cap_conn_update_id_addr() both acquire conn->lock, creating a potential AB-BA deadlock if the work is already executing when l2cap_conn_del() takes the lock. Move the work cancellations before acquiring conn->lock and use disable_delayed_work_sync() to additionally prevent the works from being rearmed after cancellation, consistent with the pattern used in hci_conn_del().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.12.20 <6.13, >=6.13.8 <6.14, >=6.14.1 <6.18.21, >=6.19 <6.19.11, >=6.6.84 <6.7, =6.14, =7.0, >=ab4eedb790cae44313759b50fe47da285e2519d5 <00fdebbbc557a2fc21321ff2eaa22fd70c078608, >=ab4eedb790cae44313759b50fe47da285e2519d5 <3f26ecbd9cde621dd94be7ef252c7210b965a5c7, >=ab4eedb790cae44313759b50fe47da285e2519d5 <d008460de352e534f6721de829b093368564ec66, >=f87271d21dd4ee83857ca11b94e7b4952749bbae <f7f35a4f7fd574f5889bb2e4b397e14cbb83f6da, =18ab6b6078fa8191ca30a3065d57bf35d5635761, =efc30877bd4bc85fefe98d80af60fafc86e5775e, >=6.12.20 <6.12.88 | 6.13, 6.14, 6.18.21, 6.19.11, 6.7, 00fdebbbc557a2fc21321ff2eaa22fd70c078608, 3f26ecbd9cde621dd94be7ef252c7210b965a5c7, d008460de352e534f6721de829b093368564ec66, f7f35a4f7fd574f5889bb2e4b397e14cbb83f6da, 6.12.88 |
| linux-kernel: Kernel | >=6.12.20 <6.12.88, >=6.13.8 <6.14, >=6.14.0 <6.18.21, >=6.19.0 <6.19.11, >=6.6.84 <6.7 | 6.12.88, 6.14, 6.18.21, 6.19.11, 6.7 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket