Bluetooth: hci_core: Fix queuing tx_work after workqueue is drained
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 9943b4c70ad972f368705da8605054f865b08dad, Kernel 6.18.54, Kernel 7.1 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: Fix queuing tx_work after workqueue is drained hci_send_acl(), hci_send_sco() and hci_send_iso() queue hdev->tx_work unconditionally. They can run from the L2CAP/SCO/ISO socket send path while hci_dev_close_sync() is draining hdev->workqueue (HCIDEVDOWN racing with a socket write). Since that queue_work() is not chained work from the tx_work worker itself, __queue_work() sees the queue marked __WQ_DRAINING, warns "cannot queue %ps on wq %s", and drops the work: WARNING: CPU: 1 PID: 5985 at kernel/workqueue.c:2352 __queue_work Call Trace: queue_work_on l2cap_chan_send l2cap_sock_sendmsg ... hci_dev_close_sync() already sets HCI_CMD_DRAIN_WORKQUEUE before draining, but only hci_cmd_work() and handle_cmd_cnt_and_timer() check it before queuing. Route the tx_work producers through the same guard via a shared hci_sched_tx() helper.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=ccf07dfb9d7d1e2c7a1eeb782f90d9b614ebba9c <9943b4c70ad972f368705da8605054f865b08dad, >=6.18.35 <6.18.54, >=7.0.12 <7.1, >=7b81c1378b79c3143ca3fdb3d18ac0f01cbabb21 <8010212197d4a3ee714f78ed77048d0b712ff925, >=9cebe4680bb9a72f80c6541eb24af06db7a1fbc9 <ab0678a0701ac4de499428dc1b321659bb74d272, =60bceb9a4c693e68cc90ba4b2dfb9e000e8638ff, =7.1, >=47330cc875b36a1cf7b3543cb2cf90a7c603ce0e <e220c1242a643d97102a79f09b7ef3aa31276961, >=525daaea459fc215f432de1b8debbd9144bf97b0 <6610c6fe4b8936c232048e6049bf77c70a6f759c, >=525daaea459fc215f432de1b8debbd9144bf97b0 <cbb325bc150e8c0dbce004ac0e5516bcffc0de31, >=6.12.93 <6.12.112 | 9943b4c70ad972f368705da8605054f865b08dad, 6.18.54, 7.1, 8010212197d4a3ee714f78ed77048d0b712ff925, ab0678a0701ac4de499428dc1b321659bb74d272, e220c1242a643d97102a79f09b7ef3aa31276961, 6610c6fe4b8936c232048e6049bf77c70a6f759c, cbb325bc150e8c0dbce004ac0e5516bcffc0de31, 6.12.112 |
| linux-kernel: Kernel | >=6.18.35 <6.18.54, >=7.0.12 <7.1, >=7.1.0 <7.2.8, >=6.12.93 <6.12.112 | 6.18.54, 7.1, 7.2.8, 6.12.112 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket