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

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-02)
- Published: 2025-12-08T00:46:45.382Z
- Modified: 2026-10-15T22:19:07.860Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f00f36db76eb8fd10d13e80e2590f23b5beaa54d before 0a94f7e017438935c09ef833a1aa908ad9875213; from 1499f79995c7ee58e3bfeeff75f6d1b37dcda881 before 932c0a4f77ac13e526fdd5b42914d29c9821d389; from 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 before ae76cf6c2c842944c6514c57df54d728f1916553; from 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 before 9cd536970192b72257afcdfba0bfc09993e6f19c; from 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 before 09b0cd1297b4dbfe736aeaa0ceeab2265f47f772; 357603f4d396d85fbf0045512efaf1d7f7394ed7; from 6.1.120 before 6.1.159; from 6.6.51 before 6.6.117; from 6.8.9 before 6.9; 6.9 (not affected: before 6.9; from 6.1.159 up to 6.1.*; from 6.6.117 up to 6.6.*; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/0a94f7e017438935c09ef833a1aa908ad9875213>
- <https://git.kernel.org/stable/c/932c0a4f77ac13e526fdd5b42914d29c9821d389>
- <https://git.kernel.org/stable/c/ae76cf6c2c842944c6514c57df54d728f1916553>
- <https://git.kernel.org/stable/c/9cd536970192b72257afcdfba0bfc09993e6f19c>
- <https://git.kernel.org/stable/c/09b0cd1297b4dbfe736aeaa0ceeab2265f47f772>

## Sources

- CVE List: [CVE-2025-40318](https://www.cve.org/CVERecord?id=CVE-2025-40318), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-40318](https://nvd.nist.gov/vuln/detail/CVE-2025-40318), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-40318 · Whole record: https://cve.day/CVE-2025-40318.json · Rebuilt by cve.day 2026-11-25T22:59:08.402Z
