CVE-2026-64405
Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn() hci_abort_conn() read hci_skb_event(hdev->sent_cmd) when a connection was pending, but hdev->sent_cmd can be NULL while req_status is still HCI_REQ_PEND, leading to a NULL pointer dereference and a general protection fault from the hci_rx_work() receive path. Instead of inspecting hdev->sent_cmd, track the in-flight create connection command with a new per-connection HCI_CONN_CREATE flag and route all cancellation through hci_cancel_connect_sync(), which dispatches to a dedicated per-type cancel function. The create command is in exactly one of two states: still queued, or in flight. The cancel function holds cmd_sync_work_lock across the whole decision: the worker takes this lock to dequeue every entry, so while it is held a queued command cannot start running and an in-flight command cannot complete and let the next command become pending. This keeps the flag test and hci_cmd_sync_cancel() atomic with respect to the worker, so a queued command is simply dequeued, and an in-flight command owned by this connection is cancelled without the risk of cancelling an unrelated command that became pending in the meantime. CIS uses the same flag mechanism via HCI_CONN_CREATE_CIS but cannot be dequeued per-connection. hci_acl_create_conn_sync() and hci_le_create_conn_sync() clear HCI_CONN_CREATE after the create command completes, but the command status handler can free conn via hci_conn_del() (for example when the controller rejects the connection) while the worker is still blocked on the connection complete event. Hold a reference on conn across the create command so the flag can be cleared without a use-after-free.
INFO
Published Date :
July 25, 2026, 10:17 a.m.
Last Modified :
July 25, 2026, 10:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2026-64405
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Update the Linux kernel to the latest version.
- Review connection handling logic for potential race conditions.
- Ensure proper reference counting for connection objects.
- Apply specific patches for hci_abort_conn() and related functions.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64405.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64405 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64405
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64405 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64405 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 25, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6083089ab00631617f9eac678df3ab050a9d837a', 'lessThan': '903227b6168bb99fd57d4e3c9c1b5014986198e0', 'versionType': 'git'}, {'status': 'affected', 'version': 'a13f316e90fdb1fb6df6582e845aa9b3270f3581', 'lessThan': '83b22d7f7c384564fa42c3cf19bec715c693d7a2', 'versionType': 'git'}, {'status': 'affected', 'version': 'a13f316e90fdb1fb6df6582e845aa9b3270f3581', 'lessThan': '70c397b62ee015e19b3924d9da741c8dda017819', 'versionType': 'git'}, {'status': 'affected', 'version': 'a13f316e90fdb1fb6df6582e845aa9b3270f3581', 'lessThan': '61701912c58a05f6a043f097cc177a964abef348', 'versionType': 'git'}, {'status': 'affected', 'version': 'a13f316e90fdb1fb6df6582e845aa9b3270f3581', 'lessThan': 'b42cb640a0493d16b61ddd267420274be15efdc1', 'versionType': 'git'}, {'status': 'affected', 'version': 'a13f316e90fdb1fb6df6582e845aa9b3270f3581', 'lessThan': '12917f591cea1af36087dba5b9ec888652f0b42a', 'versionType': 'git'}, {'status': 'affected', 'version': 'e4511a67fcdba9729d1c7cfc6d2e645c765ce801', 'versionType': 'git'}, {'status': 'affected', 'version': '4ab81f16c68a602b2b69e333ae08d8748a9398de', 'versionType': 'git'}, {'status': 'affected', 'version': '6.1.83', 'lessThan': '6.1.118', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.4.16', 'lessThan': '6.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.5.3', 'lessThan': '6.6', 'versionType': 'semver'}], 'programFiles': ['include/net/bluetooth/hci_core.h', 'net/bluetooth/hci_conn.c', 'net/bluetooth/hci_sync.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.6'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.6', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.118', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc3', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['include/net/bluetooth/hci_core.h', 'net/bluetooth/hci_conn.c', 'net/bluetooth/hci_sync.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn() hci_abort_conn() read hci_skb_event(hdev->sent_cmd) when a connection was pending, but hdev->sent_cmd can be NULL while req_status is still HCI_REQ_PEND, leading to a NULL pointer dereference and a general protection fault from the hci_rx_work() receive path. Instead of inspecting hdev->sent_cmd, track the in-flight create connection command with a new per-connection HCI_CONN_CREATE flag and route all cancellation through hci_cancel_connect_sync(), which dispatches to a dedicated per-type cancel function. The create command is in exactly one of two states: still queued, or in flight. The cancel function holds cmd_sync_work_lock across the whole decision: the worker takes this lock to dequeue every entry, so while it is held a queued command cannot start running and an in-flight command cannot complete and let the next command become pending. This keeps the flag test and hci_cmd_sync_cancel() atomic with respect to the worker, so a queued command is simply dequeued, and an in-flight command owned by this connection is cancelled without the risk of cancelling an unrelated command that became pending in the meantime. CIS uses the same flag mechanism via HCI_CONN_CREATE_CIS but cannot be dequeued per-connection. hci_acl_create_conn_sync() and hci_le_create_conn_sync() clear HCI_CONN_CREATE after the create command completes, but the command status handler can free conn via hci_conn_del() (for example when the controller rejects the connection) while the worker is still blocked on the connection complete event. Hold a reference on conn across the create command so the flag can be cleared without a use-after-free. Added Reference https://git.kernel.org/stable/c/12917f591cea1af36087dba5b9ec888652f0b42a Added Reference https://git.kernel.org/stable/c/61701912c58a05f6a043f097cc177a964abef348 Added Reference https://git.kernel.org/stable/c/70c397b62ee015e19b3924d9da741c8dda017819 Added Reference https://git.kernel.org/stable/c/83b22d7f7c384564fa42c3cf19bec715c693d7a2 Added Reference https://git.kernel.org/stable/c/903227b6168bb99fd57d4e3c9c1b5014986198e0 Added Reference https://git.kernel.org/stable/c/b42cb640a0493d16b61ddd267420274be15efdc1