What’s Vulnerable › Vulnerabilities

CVE-2025-40318: Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.159, 6.18, 6.6.117, 6.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40318 or the next vulnerability affects your stack