AZL-118571: CVE-2026-143318 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcicore: Fix queuing rxwork while workqueue is drained
hcirecvframe() drops a frame unless HCIUP or HCIINIT is set, but the check is not synchronized with hcidevclosesync(). A driver can pass the check, then close clears HCIUP, flushes rxwork and starts drainworkqueue(), and the late queuework() of rxwork hits the draining workqueue:
workqueue: cannot queue hcirxwork on wq hci0 WARNING: kernel/workqueue.c:2352 at queuework+0x2c0/0x780 Call Trace: queueworkon+0xb2/0xc0 hcirecvframe+0x18f/0x330 vhciwrite+0x174/0x240 vfswrite+0x271/0x680 ksyswrite+0x7c/0x110
Skipping the queuework() while HCICMDDRAINWORKQUEUE is set, as done for txwork, does not work for rxwork: the flag covers the whole close, and events still have to be received in that window, for the commands sent by hdev->shutdown() and for the reset done with HCIQUIRKRESETONCLOSE.
Run hcirecvframe() under rcureadlock() and wait with synchronizercu() once HCIUP has been cleared, so that every caller which still saw HCIUP has queued its work before the workqueue is drained, and later callers drop the frame.
HCIINIT does not reopen that window. Apart from the HCIQUIRKRESETONCLOSE reset, which runs after drainworkqueue() has returned, it is only set by hcidevinitsync() during open, and open and close are serialized by hcireqsynclock. So once the grace period has ended, nothing can pass the check and queue rxwork until the drain is over.
Tested in qemu with the syzbot C reproducer, one run per boot: the warning showed up on 12 of 30 boots before and on none of 42 boots after. Bringing a vhci controller up and down 50 times behaves the same with and without this change.
Affected Software
Event History
Frequently Asked Questions
What condition is required to trigger the warning?
A Bluetooth receive-frame path must pass the HCI_UP or HCI_INIT state check while the HCI device is being closed. If the close operation then clears HCI_UP and starts draining the workqueue before rx_work is queued, the late queue_work() can target a draining workqueue.
Which systems are most likely to encounter this issue?
Systems using the Linux kernel Bluetooth HCI subsystem are relevant, particularly where an HCI device can receive frames concurrently with device shutdown or close. The provided trace shows the virtual HCI write path (vhci_write) as one way the receive path can be reached.
How can an administrator recognize that the issue has occurred?
Kernel logs may contain a workqueue warning stating that hci_rx_work cannot be queued on a draining workqueue, followed by a warning in kernel/workqueue.c and a stack trace involving hci_recv_frame(), queue_work_on(), and potentially vhci_write().