PT-2026-167176
CVE-2026-143318
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci core: Fix queuing rx work while workqueue is drained
hci recv frame() drops a frame unless HCI UP or HCI INIT is set, but the
check is not synchronized with hci dev close sync(). A driver can pass
the check, then close clears HCI UP, flushes rx work and starts
drain workqueue(), and the late queue work() of rx work hits the
draining workqueue:
workqueue: cannot queue hci rx work on wq hci0
WARNING: kernel/workqueue.c:2352 at queue work+0x2c0/0x780
Call Trace:
queue work on+0xb2/0xc0
hci recv frame+0x18f/0x330
vhci write+0x174/0x240
vfs write+0x271/0x680
ksys write+0x7c/0x110
Skipping the queue work() while HCI CMD DRAIN WORKQUEUE is set, as done
for tx work, does not work for rx work: 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
HCI QUIRK RESET ON CLOSE.
Run hci recv frame() under rcu read lock() and wait with
synchronize rcu() once HCI UP has been cleared, so that every caller
which still saw HCI UP has queued its work before the workqueue is
drained, and later callers drop the frame.
HCI INIT does not reopen that window. Apart from the
HCI QUIRK RESET ON CLOSE reset, which runs after drain workqueue() has
returned, it is only set by hci dev init sync() during open, and open
and close are serialized by hci req sync lock. So once the grace period
has ended, nothing can pass the check and queue rx work 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.
Found an issue in the description? Have something to add? Feel free to write us 👾