AZL-118544: CVE-2026-143309 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What conditions are involved in triggering the use-after-free?
The issue occurs when an existing Bluetooth advertising instance is updated, causing its delayed RPA work to be reinitialized while pending or running. If creation of the management pending operation then fails and the instance is removed, the instance can be freed while adv_instance_rpa_expired() still runs.
How can I identify evidence that the issue has occurred?
A KASAN-enabled kernel can report a slab use-after-free in adv_instance_rpa_expired, with the write performed by a kworker on the Bluetooth device workqueue. The reported path includes hci_add_adv_instance(), hci_remove_adv_instance(), and adv_instance_rpa_expired().