CVE-2025-40318

Bluetooth: hci_sync: fix race in hci_cmd_sync_dequeue_once

State
Published
Severity
8.8 High
Published
Dec 8, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f00f36db76eb8fd10d13e80e2590f23b5beaa54d to before 0a94f7e017438935c09ef833a1aa908ad9875213Affected
  • 1499f79995c7ee58e3bfeeff75f6d1b37dcda881 to before 932c0a4f77ac13e526fdd5b42914d29c9821d389Affected
  • 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 to before ae76cf6c2c842944c6514c57df54d728f1916553Affected
  • 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 to before 9cd536970192b72257afcdfba0bfc09993e6f19cAffected
  • 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 to before 09b0cd1297b4dbfe736aeaa0ceeab2265f47f772Affected
  • 357603f4d396d85fbf0045512efaf1d7f7394ed7Affected
  • 6.1.120 to before 6.1.159Affected
  • 6.6.51 to before 6.6.117Affected
  • 6.8.9 to before 6.9Affected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.1.159 through 6.1.*Not affected
  • 6.6.117 through 6.6.*Not affected
  • 6.12.58 through 6.12.*Not affected
  • 6.17.8 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.