CVE-2026-139373: Bluetooth: hci_sync: Protect IRK identity reads with RCU
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcisync: Protect IRK identity reads with RCU
hcilesetprivacymodesync() needs the IRK returned by hcifindirkbyaddr() to remain allocated until its identity address and type have been copied into the command. The finder drops its RCU read lock before returning this borrowed pointer, leaving the later field reads unprotected.
When a privacy-capable controller has a pending peer with address resolution and device privacy enabled, accept-list programming can reach this helper while management reloads the IRKs. The request worker holds hdev->reqlock, whereas loadirks() takes hdev->lock, allowing the following ordering:
Request worker Management / RCU reclaim hcilesetprivacymodesync() hcifindirkbyaddr() rcureadlock() find matching IRK rcureadunlock() return borrowed IRK loadirks() hcidevlock(hdev) hcismpirksclear() listdelrcu() kfreercu() hcidevunlock(hdev) RCU grace period and IRK free read irk->addrtype copy irk->bdaddr
The request then accesses a freed IRK. KASAN reports a one-byte use-after-free read of addrtype on this path.
Keep an outer RCU read-side critical section across the lookup and both identity-field copies. The finder's nested unlock then leaves the IRK protected until the caller finishes copying it. Release RCU on a lookup miss and after copying the fields, before the synchronous HCI command can sleep.
KASAN report as below:
================================================================== BUG: KASAN: slab-use-after-free in hcileaddacceptlistsync+0x90f/0x940 Read of size 1 at addr ffff88810aa6072c by task kworker/u17:0/493
Workqueue: hci0 hcicmdsyncwork Call Trace: <TASK> dumpstacklvl+0x93/0xd0 printreport+0xce/0x630 ? hcileaddacceptlistsync+0x90f/0x940 ? srsoaliasreturnthunk+0x5/0xfbef5 ? virtaddrvalid+0x20d/0x410 ? hcileaddacceptlistsync+0x90f/0x940 kasanreport+0xe0/0x110 ? hcileaddacceptlistsync+0x90f/0x940 hcileaddacceptlistsync+0x90f/0x940 ? pfxhcileaddacceptlistsync+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? connparamscopy+0x3a0/0x650 hcipassivescansync+0x8c9/0x1e80 ? pfxhcipassivescansync+0x10/0x10 ? findheldlock+0x2b/0x80 ? hcilookupleconnect+0x181/0x3c0 ? srsoaliasreturnthunk+0x5/0xfbef5 ? findheldlock+0x2b/0x80 ? hciupdatepassivescansync+0x437/0x950 ? srsoaliasreturnthunk+0x5/0xfbef5 ? lockrelease+0xc8/0x280 hciupdatepassivescansync+0x461/0x950 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 507: kasansavestack+0x33/0x60 kasansavetrack+0x14/0x30 kasankmalloc+0xaa/0xb0 kmalloccachenoprof+0x251/0x610 hciaddirk+0xb6/0x220 loadirks+0x5ef/0x7e0 hcisocksendmsg+0x128b/0x22e0 syssendto+0x425/0x470 x64syssendto+0xe5/0x1c0 dos ---truncated---
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
Keep an outer RCU read-side critical section across the IRK lookup and both identity-field copies so the borrowed IRK remains allocated until copying is complete.
Event History
Frequently Asked Questions
Which systems are exposed to this race condition?
Systems are exposed when they use a privacy-capable Bluetooth controller and have a pending peer with address resolution and device privacy enabled. The affected path is reached during accept-list programming while IRKs are being reloaded through management.
What concurrent activity is required to trigger the issue?
The Bluetooth request worker must look up an IRK for privacy-mode configuration while management reloads IRKs and removes the matching IRK. After the RCU grace period, the request can read the freed IRK's address type and Bluetooth address.
How can this issue be identified in a running system?
KASAN can report a one-byte use-after-free read of the IRK addr_type field on this path. The relevant activity involves hci_le_set_privacy_mode_sync() and concurrent IRK reload handling.
What does the available fix change?
The fix keeps the IRK field reads within an outer RCU read-side critical section, so the borrowed IRK remains allocated until its identity address and type have been copied into the command.