AZL-118547: CVE-2026-143310 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
Bluetooth LE privacy must be programming a peer with address resolution enabled, while a concurrent MGMT_OP_LOAD_IRKS operation clears and frees the peer IRK. The race occurs between the IRK lookup and copying its value into the LE Add Device To Resolving List command.
Is this exposed by a remote Bluetooth device alone?
The described race requires management-side IRK loading to occur concurrently with resolving-list programming. The provided information does not establish that an unauthenticated remote device alone can trigger MGMT_OP_LOAD_IRKS or exploit the issue.
How can administrators assess whether their system is affected?
Check whether the system uses the listed Azure Linux kernel package version 6.6.161.1-1 and uses Bluetooth LE privacy with address resolution and IRK management. The vulnerable path involves hci_le_add_resolve_list_sync() and concurrent MGMT_OP_LOAD_IRKS activity.