CVE-2026-143310: Bluetooth: hci_sync: Copy the resolving-list IRK under RCU
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcisync: Copy the resolving-list IRK under RCU
hcileaddresolvelistsync() copies the peer IRK into the LE Add Device To Resolving List command after hcifindirkbyaddr() has returned. The finder ends its RCU read-side section before returning the borrowed entry, and neither the request worker nor interleavescanwork() holds hdev->lock here. The resolving-list membership check between the lookup and the copy takes hdev->lock and may sleep on it, which widens the window.
When LL privacy programs a peer with address resolution enabled, MGMTOPLOADIRKS can free its IRK before the copy:
Request worker Management / RCU reclamation hcileaddresolvelistsync() irk = hcifindirkbyaddr() loadirks() hcidevlock(hdev) hcismpirksclear(hdev) listdelrcu(), kfreercu() hcidevunlock(hdev) grace period ends, irk is freed resolving-list membership check memcpy(cp.peerirk, irk->val, 16)
Copy the IRK value in an RCU read-side section right after the lookup, as hcilesetprivacymodesync() does for the identity address. The section ends before hdev->lock is taken and before the synchronous HCI command is sent.
KASAN reported this on a test kernel with scheduling hooks, whose frames appear in the trace. The report predates the hdev->lock taken by the membership check.
KASAN report as below:
================================================================== BUG: KASAN: slab-use-after-free in hcileaddresolvelistsync+0x8d9/0x910 Read of size 16 at addr ffff88810d21452d by task kworker/u17:0/504
CPU: 2 UID: 0 PID: 504 Comm: kworker/u17:0 Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #2 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, archcaps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: hci0 interleavescanwork Call Trace: <TASK> dumpstacklvl+0x93/0xd0 printreport+0xce/0x630 ? hcileaddresolvelistsync+0x8d9/0x910 ? srsoaliasreturnthunk+0x5/0xfbef5 ? virtaddrvalid+0x20d/0x410 ? hcileaddresolvelistsync+0x8d9/0x910 kasanreport+0xe0/0x110 ? hcileaddresolvelistsync+0x8d9/0x910 hcileaddresolvelistsync+0x8d9/0x910 ? pfxhcileaddresolvelistsync+0x10/0x10 ? pmbdprobehitcookie+0xe7/0x1c0 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pmbdprobehitcookie+0xee/0x1c0 ? pfxpmbdprobehitcookie+0x10/0x10 hcileaddacceptlistsync+0x18e/0x820 ? connparamscopy+0x36e/0x650 ? pfxhcileaddacceptlistsync+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? connparamscopy+0x3a0/0x650 hcipassivescansync+0x95f/0x1f10 ? pfxhcipassivescansync+0x10/0x10 ? debugobjectdeactivate+0x2f8/0x3c0 ? pwqdecnrinflight+0x880/0xdf0 ? srsoaliasreturnthunk+0x5/0xfbef5 ? lockacquire+0x17b/0x2f0 ? processonework+0x895/0x19c0 interleavescanwork+0x11b/0x470 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 535: kasansavestack+0x33/0x60 kasansavetrack+0x14/0x30 kasankmalloc+0 ---truncated---
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Copy the peer IRK value in an RCU read-side section immediately after hci_find_irk_by_addr() returns, before the resolving-list membership check takes hdev->lock.
Event History
Frequently Asked Questions
Which deployments are affected by this race?
The affected path is used when Bluetooth LE privacy programs a peer with address resolution enabled in the Linux kernel. The race involves resolving-list handling and IRK management.
What activity must overlap for the use-after-free to occur?
A request worker can look up a peer IRK while MGMT_OP_LOAD_IRKS clears and frees IRKs. If reclamation completes before the worker copies the IRK into the LE Add Device To Resolving List command, the worker can copy freed memory.