CVE-2026-143318: Bluetooth: hci_core: Fix queuing rx_work while workqueue is drained

Published Dec 3, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Bluetooth HCI receive path, run hci_recv_frame() under rcu_read_lock() and call synchronize_rcu() after clearing HCI_UP, before draining the workqueue, so callers that observed HCI_UP finish queuing rx_work first.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the issue?

A Bluetooth driver must call hci_recv_frame() while hci_dev_close_sync() is closing the HCI device. The race occurs when the receive path observes HCI_UP before close clears it, but queues rx_work only after the HCI workqueue has begun draining.

2

How can I tell whether this has occurred on a system?

The kernel can emit a workqueue warning stating that it cannot queue hci_rx_work on the hci0 workqueue. The reported call trace includes queue_work_on, hci_recv_frame, and may include vhci_write, vfs_write, and ksys_write.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203