Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()

Summary

CVECVE-2026-64405
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-25 10:17:24 UTC
Updated2026-07-25 10:17:24 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.001730000 probability, percentile 0.069700000 (date 2026-07-28)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 6083089ab00631617f9eac678df3ab050a9d837a 903227b6168bb99fd57d4e3c9c1b5014986198e0 git Not specified
CNA Linux Linux affected a13f316e90fdb1fb6df6582e845aa9b3270f3581 83b22d7f7c384564fa42c3cf19bec715c693d7a2 git Not specified
CNA Linux Linux affected a13f316e90fdb1fb6df6582e845aa9b3270f3581 70c397b62ee015e19b3924d9da741c8dda017819 git Not specified
CNA Linux Linux affected a13f316e90fdb1fb6df6582e845aa9b3270f3581 61701912c58a05f6a043f097cc177a964abef348 git Not specified
CNA Linux Linux affected a13f316e90fdb1fb6df6582e845aa9b3270f3581 b42cb640a0493d16b61ddd267420274be15efdc1 git Not specified
CNA Linux Linux affected a13f316e90fdb1fb6df6582e845aa9b3270f3581 12917f591cea1af36087dba5b9ec888652f0b42a git Not specified
CNA Linux Linux affected e4511a67fcdba9729d1c7cfc6d2e645c765ce801 git Not specified
CNA Linux Linux affected 4ab81f16c68a602b2b69e333ae08d8748a9398de git Not specified
CNA Linux Linux affected 6.1.83 6.1.118 semver Not specified
CNA Linux Linux affected 6.4.16 6.5 semver Not specified
CNA Linux Linux affected 6.5.3 6.6 semver Not specified
CNA Linux Linux affected 6.6 Not specified
CNA Linux Linux unaffected 6.6 semver Not specified
CNA Linux Linux unaffected 6.1.118 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.39 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.4 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/903227b6168bb99fd57d4e3c9c1b5014986198e0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/12917f591cea1af36087dba5b9ec888652f0b42a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/61701912c58a05f6a043f097cc177a964abef348 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/83b22d7f7c384564fa42c3cf19bec715c693d7a2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b42cb640a0493d16b61ddd267420274be15efdc1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/70c397b62ee015e19b3924d9da741c8dda017819 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report