PT-2026-163412

CVE-2026-139371

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: MSFT: Serialize handle map cleanup with event processing
MSFT monitor handle mappings must remain valid while vendor events look up and use them under hdev->lock. msft do close() removes and frees the mappings without that lock.
hci dev close sync() clears HCI UP and drains the RX workqueue before MSFT cleanup. However, a transport callback that already passed hci recv frame()'s state check can queue a vendor event after the drain returns, if no earlier shutdown callback has quiesced reception. The driver close callback runs after MSFT cleanup, so event processing can overlap the unlocked removal. msft monitor device evt() can then traverse freed list entries or read handle data->mgmt handle after it is freed.
Take hdev->lock while resetting monitor states and removing handle mappings in msft do close(), as normal monitor cancellation already does. An active event reader then finishes before its mapping is freed, and later lookups see an empty handle map.
An instrumented kernel produced this KASAN report (timestamps removed and unrelated frames omitted):
BUG: KASAN: slab-use-after-free in msft vendor evt+0x1906/0x1990 Read of size 2 at addr ffff888104df3602 by task kworker/u17:2/502
Workqueue: hci0 hci rx work Call Trace: [...] msft vendor evt+0x1906/0x1990 hci vendor evt+0x6f/0x90 hci event packet+0x894/0xc70 [...] hci rx work+0x3f8/0xfa0 [...]
Allocated by task 499: [...] msft add monitor sync+0x6a8/0x10a0 msft add monitor pattern+0x7f/0xb0 hci add adv monitor+0x1fa/0x2e0 [...]
Freed by task 499: [...] kfree+0x307/0x580 msft do close+0x238/0x750 hci dev close sync+0x546/0x1380 [...]
The buggy address belongs to the object at ffff888104df3600 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 2 bytes inside of freed 32-byte region [ffff888104df3600, ffff888104df3620) [...]
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾