CVE-2026-64405 (GCVE-0-2026-64405)

Vulnerability from cvelistv5 – Published: 2026-07-25 08:50 – Updated: 2026-07-25 08:50
VLAI
Title
Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()
Summary
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.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 6083089ab00631617f9eac678df3ab050a9d837a , < 903227b6168bb99fd57d4e3c9c1b5014986198e0 (git)
Affected: a13f316e90fdb1fb6df6582e845aa9b3270f3581 , < 83b22d7f7c384564fa42c3cf19bec715c693d7a2 (git)
Affected: a13f316e90fdb1fb6df6582e845aa9b3270f3581 , < 70c397b62ee015e19b3924d9da741c8dda017819 (git)
Affected: a13f316e90fdb1fb6df6582e845aa9b3270f3581 , < 61701912c58a05f6a043f097cc177a964abef348 (git)
Affected: a13f316e90fdb1fb6df6582e845aa9b3270f3581 , < b42cb640a0493d16b61ddd267420274be15efdc1 (git)
Affected: a13f316e90fdb1fb6df6582e845aa9b3270f3581 , < 12917f591cea1af36087dba5b9ec888652f0b42a (git)
Affected: e4511a67fcdba9729d1c7cfc6d2e645c765ce801 (git)
Affected: 4ab81f16c68a602b2b69e333ae08d8748a9398de (git)
Affected: 6.1.83 , < 6.1.118 (semver)
Affected: 6.4.16 , < 6.5 (semver)
Affected: 6.5.3 , < 6.6 (semver)
Create a notification for this product.
Linux Linux Affected: 6.6
Unaffected: 0 , < 6.6 (semver)
Unaffected: 6.1.118 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.39 , ≤ 6.18.* (semver)
Unaffected: 7.1.4 , ≤ 7.1.* (semver)
Unaffected: 7.2-rc3 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/net/bluetooth/hci_core.h",
            "net/bluetooth/hci_conn.c",
            "net/bluetooth/hci_sync.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "903227b6168bb99fd57d4e3c9c1b5014986198e0",
              "status": "affected",
              "version": "6083089ab00631617f9eac678df3ab050a9d837a",
              "versionType": "git"
            },
            {
              "lessThan": "83b22d7f7c384564fa42c3cf19bec715c693d7a2",
              "status": "affected",
              "version": "a13f316e90fdb1fb6df6582e845aa9b3270f3581",
              "versionType": "git"
            },
            {
              "lessThan": "70c397b62ee015e19b3924d9da741c8dda017819",
              "status": "affected",
              "version": "a13f316e90fdb1fb6df6582e845aa9b3270f3581",
              "versionType": "git"
            },
            {
              "lessThan": "61701912c58a05f6a043f097cc177a964abef348",
              "status": "affected",
              "version": "a13f316e90fdb1fb6df6582e845aa9b3270f3581",
              "versionType": "git"
            },
            {
              "lessThan": "b42cb640a0493d16b61ddd267420274be15efdc1",
              "status": "affected",
              "version": "a13f316e90fdb1fb6df6582e845aa9b3270f3581",
              "versionType": "git"
            },
            {
              "lessThan": "12917f591cea1af36087dba5b9ec888652f0b42a",
              "status": "affected",
              "version": "a13f316e90fdb1fb6df6582e845aa9b3270f3581",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e4511a67fcdba9729d1c7cfc6d2e645c765ce801",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "4ab81f16c68a602b2b69e333ae08d8748a9398de",
              "versionType": "git"
            },
            {
              "lessThan": "6.1.118",
              "status": "affected",
              "version": "6.1.83",
              "versionType": "semver"
            },
            {
              "lessThan": "6.5",
              "status": "affected",
              "version": "6.4.16",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6",
              "status": "affected",
              "version": "6.5.3",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/net/bluetooth/hci_core.h",
            "net/bluetooth/hci_conn.c",
            "net/bluetooth/hci_sync.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.118",
                  "versionStartIncluding": "6.1.83",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.39",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.4",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2-rc3",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.5.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()\n\nhci_abort_conn() read hci_skb_event(hdev-\u003esent_cmd) when a connection\nwas pending, but hdev-\u003esent_cmd can be NULL while req_status is still\nHCI_REQ_PEND, leading to a NULL pointer dereference and a general\nprotection fault from the hci_rx_work() receive path.\n\nInstead of inspecting hdev-\u003esent_cmd, track the in-flight create\nconnection command with a new per-connection HCI_CONN_CREATE flag and\nroute all cancellation through hci_cancel_connect_sync(), which\ndispatches to a dedicated per-type cancel function. The create command\nis in exactly one of two states: still queued, or in flight. The cancel\nfunction holds cmd_sync_work_lock across the whole decision: the worker\ntakes this lock to dequeue every entry, so while it is held a queued\ncommand cannot start running and an in-flight command cannot complete\nand let the next command become pending. This keeps the flag test and\nhci_cmd_sync_cancel() atomic with respect to the worker, so a queued\ncommand is simply dequeued, and an in-flight command owned by this\nconnection is cancelled without the risk of cancelling an unrelated\ncommand that became pending in the meantime. CIS uses the same flag\nmechanism via HCI_CONN_CREATE_CIS but cannot be dequeued per-connection.\n\nhci_acl_create_conn_sync() and hci_le_create_conn_sync() clear\nHCI_CONN_CREATE after the create command completes, but the command\nstatus handler can free conn via hci_conn_del() (for example when the\ncontroller rejects the connection) while the worker is still blocked on\nthe connection complete event. Hold a reference on conn across the\ncreate command so the flag can be cleared without a use-after-free."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-25T08:50:47.262Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/903227b6168bb99fd57d4e3c9c1b5014986198e0"
        },
        {
          "url": "https://git.kernel.org/stable/c/83b22d7f7c384564fa42c3cf19bec715c693d7a2"
        },
        {
          "url": "https://git.kernel.org/stable/c/70c397b62ee015e19b3924d9da741c8dda017819"
        },
        {
          "url": "https://git.kernel.org/stable/c/61701912c58a05f6a043f097cc177a964abef348"
        },
        {
          "url": "https://git.kernel.org/stable/c/b42cb640a0493d16b61ddd267420274be15efdc1"
        },
        {
          "url": "https://git.kernel.org/stable/c/12917f591cea1af36087dba5b9ec888652f0b42a"
        }
      ],
      "title": "Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64405",
    "datePublished": "2026-07-25T08:50:47.262Z",
    "dateReserved": "2026-07-19T15:36:31.786Z",
    "dateUpdated": "2026-07-25T08:50:47.262Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-64405",
      "date": "2026-07-26",
      "epss": "0.00173",
      "percentile": "0.06929"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64405\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-25T10:17:24.110\",\"lastModified\":\"2026-07-25T10:17:24.110\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nBluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()\\n\\nhci_abort_conn() read hci_skb_event(hdev-\u003esent_cmd) when a connection\\nwas pending, but hdev-\u003esent_cmd can be NULL while req_status is still\\nHCI_REQ_PEND, leading to a NULL pointer dereference and a general\\nprotection fault from the hci_rx_work() receive path.\\n\\nInstead of inspecting hdev-\u003esent_cmd, track the in-flight create\\nconnection command with a new per-connection HCI_CONN_CREATE flag and\\nroute all cancellation through hci_cancel_connect_sync(), which\\ndispatches to a dedicated per-type cancel function. The create command\\nis in exactly one of two states: still queued, or in flight. The cancel\\nfunction holds cmd_sync_work_lock across the whole decision: the worker\\ntakes this lock to dequeue every entry, so while it is held a queued\\ncommand cannot start running and an in-flight command cannot complete\\nand let the next command become pending. This keeps the flag test and\\nhci_cmd_sync_cancel() atomic with respect to the worker, so a queued\\ncommand is simply dequeued, and an in-flight command owned by this\\nconnection is cancelled without the risk of cancelling an unrelated\\ncommand that became pending in the meantime. CIS uses the same flag\\nmechanism via HCI_CONN_CREATE_CIS but cannot be dequeued per-connection.\\n\\nhci_acl_create_conn_sync() and hci_le_create_conn_sync() clear\\nHCI_CONN_CREATE after the create command completes, but the command\\nstatus handler can free conn via hci_conn_del() (for example when the\\ncontroller rejects the connection) while the worker is still blocked on\\nthe connection complete event. Hold a reference on conn across the\\ncreate command so the flag can be cleared without a use-after-free.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"include/net/bluetooth/hci_core.h\",\"net/bluetooth/hci_conn.c\",\"net/bluetooth/hci_sync.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"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\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"include/net/bluetooth/hci_core.h\",\"net/bluetooth/hci_conn.c\",\"net/bluetooth/hci_sync.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.6\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.6\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.118\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.145\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.97\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.39\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.4\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2-rc3\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/12917f591cea1af36087dba5b9ec888652f0b42a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/61701912c58a05f6a043f097cc177a964abef348\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/70c397b62ee015e19b3924d9da741c8dda017819\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/83b22d7f7c384564fa42c3cf19bec715c693d7a2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/903227b6168bb99fd57d4e3c9c1b5014986198e0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b42cb640a0493d16b61ddd267420274be15efdc1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "suse_vex": {
      "aggregate_severity": "not set",
      "current_release_date": "2026-07-25T15:59:58Z",
      "cve": "CVE-2026-64405",
      "id": "CVE-2026-64405",
      "initial_release_date": "2026-07-25T15:59:58Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-64405",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-64405.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…