CVE-2026-139376: Bluetooth: msft: Lock failed probe cleanup against feature readers
Bluetooth: msft: Lock failed probe cleanup against feature readers
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 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the Linux kernel Bluetooth MSFT driver, hold hdev->lock while clearing hdev->msft_data and freeing it in the probe-failure path, following the existing req_lock-to-hdev->lock ordering.
Event History
Frequently Asked Questions
What sequence is required to trigger the use-after-free?
The controller must have completed a successful probe previously, then a later HCI open must fail while reading supported features. At the same time, a management feature request can read the saved MSFT data during HCI_INIT, leaving it with a pointer that the failed open path frees.
Are normal close and reopen operations relevant?
Yes. MSFT data remains allocated after a normal close following a successful probe. A subsequent open that fails its probe can clear and free that retained data while a feature reader is active.
Which readers can access the affected data concurrently?
Management feature requests handled through hci_mgmt_cmd() can run during HCI_INIT and read the features. Advertisement reporting through mgmt_device_found() also reads the features while holding hdev->lock.
What does the resolved change do to prevent the issue?
It takes hdev->lock while clearing and freeing msft_data in the failed-probe path. This lets an existing feature reader finish before the MSFT data is released.