CVE-2025-40318 Details
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.
A race condition vulnerability has been identified in the Bluetooth command synchronization handling of the Linux kernel. This issue arises in the 'hci_cmd_sync_dequeue_once' function, which performs a lookup and then cancels a command entry under two separate lock sections. Concurrently, the 'hci_cmd_sync_work' function can delete the same entry, causing a double removal from the list and leading to a use-after-free condition. The vulnerability affects the Linux kernel's stable group, specifically in the Bluetooth subsystem's command synchronization management.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/09b0cd1297b4dbfe736aeaa0ceeab2265f47f772 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/0a94f7e017438935c09ef833a1aa908ad9875213 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/932c0a4f77ac13e526fdd5b42914d29c9821d389 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/9cd536970192b72257afcdfba0bfc09993e6f19c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ae76cf6c2c842944c6514c57df54d728f1916553 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion