Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
357603f4d396d85fbf0045512efaf1d7f7394ed7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once
hci_cmd_sync_dequeue_once() does lookup and then cancel the entry under two separate lock sections. Meanwhile, hci_cmd_sync_work() can also delete the same entry, leading to double list_del() and "UAF".
Fix this by holding cmd_sync_work_lock across both lookup and cancel, so that the entry cannot be removed concurrently.
From the CVE record · Linux
A race in the Linux kernel’s Bluetooth hci_sync code can cause a double list deletion and use-after-free when two operations remove the same entry concurrently. The input does not specify whether an attacker can trigger the race, or any required access or user interaction.
Engineers running Linux kernels with the affected Bluetooth hci_sync code should check their versions; affected versions are not specified.