CVE-2026-143315: Bluetooth: hci_sync: Copy the LE accept list under hdev->lock
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcisync: Copy the LE accept list under hdev->lock
The LE accept-list mirror consists of bdaddrlist entries that are added, removed and freed under hdev->lock. The ordinary branch of hciupdateacceptlistsync() traverses this list without that lock. The request worker's reqlock does not serialize raw HCI completions, and the RCU sections protect connection and pending-action lookups, not the accept-list nodes.
Changing connectability can reach this iterator through setconnectablesync(), hciupdateconnectablesync(), hciupdatepassivescansync() and hcipassivescansync(). With a populated mirror, a privileged raw HCI sender can issue HCIOPLECLEARACCEPTLIST while request work is reconciling it:
Request work HCI event work select b and successor t hciccleclearacceptlist() hcidevlock(hdev) hcibdaddrlistclear() unlink nodes and kfree(b) hcidevunlock(hdev) read b->bdaddrtype
The clear completion can therefore free the selected node before its field read, or the saved successor before the iterator advances. KASAN reported a one-byte read of bdaddrtype from the freed node.
Copy each entry's address and type under hdev->lock and reconcile the private array instead. Release the mutex before issuing synchronous commands, since their completion handlers also acquire it. Free the copy after iteration and use the existing error path to disable accept-list filtering if allocation fails.
This change has not been runtime-tested.
KASAN report as below:
================================================================== BUG: KASAN: slab-use-after-free in hcipassivescansync+0x1cc4/0x1f80 Read of size 1 at addr ffff888105ee6c56 by task kworker/u17:1/499
Workqueue: hci0 hcicmdsyncwork Call Trace: <TASK> dumpstacklvl+0x93/0xd0 printreport+0xce/0x630 ? hcipassivescansync+0x1cc4/0x1f80 ? srsoaliasreturnthunk+0x5/0xfbef5 ? virtaddrvalid+0x20d/0x410 ? hcipassivescansync+0x1cc4/0x1f80 kasanreport+0xe0/0x110 ? hcipassivescansync+0x1cc4/0x1f80 hcipassivescansync+0x1cc4/0x1f80 ? pmbdgatesitearmed+0x31/0x1c0 ? pfxhcipassivescansync+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pmbdprobehitcookie+0x10/0x1c0 ? pfxpmbdprobehitcookie+0x10/0x10 ? hciupdatepassivescansync+0x43f/0x9e0 ? srsoaliasreturnthunk+0x5/0xfbef5 ? lockrelease+0xc8/0x280 hciupdatepassivescansync+0x473/0x9e0 hciupdateconnectablesync+0x13c/0x250 setconnectablesync+0x39/0xb0 hcicmdsyncwork+0x1b3/0x450 ? srsoaliasreturnthunk+0x5/0xfbef5 processonework+0x908/0x19c0 ? pfxprocessonework+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? lockisheldtype+0x8f/0x100 ? srsoaliasreturnthunk+0x5/0xfbef5 workerthread+0x65c/0xe40 ? pfxworkerthread+0x10/0x10 kthread+0x34f/0x460 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pfxkthread+0x10/0x10 retfromfork+0x659/0x940 ? pfxretfromfork+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? switchto+0x74f/0xf80 ? pfxkthread+0x10/0x10 retfromforkasm+0x1a/0x30 </TASK>
Allocated by task 511: kasansavestack+0x33/0x60 kasansavetrack+0x14/0x30 kasankmalloc+0xaa/0xb0 kmalloccachenoprof+0x251/0x610 hcibdaddrlistadd+0x179/0x390 hciccleaddtoacceptlist+0x189/0x2d0 hcicmdcompleteevt+0x373/0xab0 hcieventpacket+0x4e8/0xc70 hcirxwork+0x367/0xf00 processonework+0x908/0x19c0 workerthread+0x65c/0xe40 kthread+0x34f/0x460 retfromfork+ ---truncated---
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In hci_update_accept_list_sync(), copy each accept-list entry’s address and type into a private array while holding hdev->lock, then release the lock before issuing synchronous commands; if allocation fails, disable accept-list filtering.
Event History
Frequently Asked Questions
Who can trigger the vulnerable race?
A privileged local actor capable of sending raw HCI commands can trigger it by issuing HCI_OP_LE_CLEAR_ACCEPT_LIST while Bluetooth request work is reconciling the LE accept-list mirror.
What system state is required for exploitation?
The LE accept-list mirror must be populated, and request work must be traversing it during connectability or passive-scan reconciliation. The affected paths include set_connectable_sync(), hci_update_connectable_sync(), hci_update_passive_scan_sync(), and hci_passive_scan_sync().
What happens if the race occurs?
A clear-accept-list completion can unlink and free an accept-list entry while request work still reads that entry or its saved successor. This causes a use-after-free read; KASAN observed a one-byte read of bdaddr_type from freed memory.