CVE-2025-40318
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-08

Last updated on: 2025-12-08

Assigner: kernel.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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-08
Last Modified
2025-12-08
Generated
2026-06-16
AI Q&A
2025-12-08
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a race condition in the Linux kernel's Bluetooth subsystem. Specifically, the function hci_cmd_sync_dequeue_once() performs a lookup and cancellation of an entry under two separate lock sections. Meanwhile, another function, hci_cmd_sync_work(), can delete the same entry concurrently. This can lead to a double deletion of the list entry, causing a use-after-free (UAF) error. The fix involves holding a lock (cmd_sync_work_lock) across both lookup and cancel operations to prevent concurrent removal of the entry.

Impact Analysis

This vulnerability can lead to a use-after-free condition in the Bluetooth subsystem of the Linux kernel, which may cause system instability, crashes, or potentially allow an attacker to execute arbitrary code or escalate privileges if exploited.

Mitigation Strategies

Apply the patch that fixes the race condition in the Linux kernel Bluetooth component by ensuring the cmd_sync_work_lock is held across both lookup and cancel operations in hci_cmd_sync_dequeue_once. This prevents double deletion and use-after-free errors. Until patched, consider disabling Bluetooth functionality if possible to mitigate risk.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40318. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart