CVE-2026-143309: Bluetooth: hci_core: Initialize advertising RPA work only once
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hcicore: Initialize advertising RPA work only once
hciaddadvinstance() also updates existing instances and calls INITDELAYEDWORK() on their rpaexpiredcb every time, even when the work is pending or running. canceldelayedworksync() then no longer finds the work, so hciremoveadvinstance() can free the instance under it:
hdev->workqueue MGMTOPADDEXTADVPARAMS advinstancerpaexpired() hcidevlock(hdev) hciaddadvinstance() INITDELAYEDWORK() mgmtpendingnew() fails hciremoveadvinstance() canceldelayedworksync() returns without waiting kfree(adv) hcidevunlock(hdev) adv->rpaexpired = true
The work has been initialized on every update since it was added. Initialize it only when the instance is allocated.
KASAN report as below:
BUG: KASAN: slab-use-after-free in advinstancerpaexpired+0x139/0x160 Write of size 1 at addr ffff888108d84b2e by task kworker/u17:0/504
Workqueue: hci0 advinstancerpaexpired Call Trace: advinstancerpaexpired+0x139/0x160
Allocated by task 560: hciaddadvinstance+0x68d/0x9d0 addextadvparams+0x4d4/0xb60 hcisocksendmsg+0x128b/0x22e0
Freed by task 594: kfree+0x307/0x580 hciremoveadvinstance+0x230/0x540 addextadvparams+0xa43/0xb60 hcisocksendmsg+0x128b/0x22e0
Last potentially related work creation: insertwork+0x37/0x210 queuework+0xaba/0x1270 calltimerfn+0x171/0x500
The buggy address belongs to the object at ffff888108d84800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 814 bytes inside of freed 1024-byte region [ffff888108d84800, ffff888108d84c00)
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.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
Initialize advertising RPA work only when the instance is allocated, not on every update.
Event History
Frequently Asked Questions
What conditions are needed to trigger the use-after-free?
The issue involves updating an existing Bluetooth advertising instance through the extended advertising parameters path while its RPA expiration delayed work is pending or running. If creation of the associated management pending operation then fails, the instance can be removed and freed without waiting for that work to finish.
How can I tell whether this issue has occurred?
A KASAN-enabled kernel may report a slab-use-after-free in adv_instance_rpa_expired, occurring in an hci0 workqueue worker. The reported fault is a write to the freed advertising-instance memory.