CVE-2026-139085 (GCVE-0-2026-139085)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:31 – Updated: 2026-12-01 05:41
VLAI
Title
Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()
Summary
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown() l2cap_sock_shutdown() has the race condition [Task 1] [Task 2] l2cap_sock_shutdown l2cap_sock_connect l2cap_chan_lock l2cap_chan_connect conn = ... /* == NULL*/ l2cap_chan_unlock ------------> l2cap_chan_lock if (conn) /* false */ __l2cap_chan_add(conn, chan) l2cap_chan_lock <-------------- l2cap_chan_unlock l2cap_chan_close /* chan->conn->lock not held! */ conn->lock protects conn->chan_l and is not properly held here. Use the l2cap_chan_close_unlocked() helper that ensures conn->lock is held for l2cap_chan_close().
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: ab4eedb790cae44313759b50fe47da285e2519d5 , < 6dbe2ac00eb330be99898cd390be883221d6d156 (git)
Affected: ab4eedb790cae44313759b50fe47da285e2519d5 , < 79ff49a72c06abdf76872dccc687e2a83c4f407f (git)
Affected: efc30877bd4bc85fefe98d80af60fafc86e5775e (git)
Affected: f87271d21dd4ee83857ca11b94e7b4952749bbae (git)
Affected: 18ab6b6078fa8191ca30a3065d57bf35d5635761 (git)
Affected: 6.6.84 , < 6.7 (semver)
Affected: 6.12.20 , < 6.13 (semver)
Affected: 6.13.8 , < 6.14 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.14
Unaffected: 0 , < 6.14 (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/bluetooth/l2cap_sock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6dbe2ac00eb330be99898cd390be883221d6d156",
              "status": "affected",
              "version": "ab4eedb790cae44313759b50fe47da285e2519d5",
              "versionType": "git"
            },
            {
              "lessThan": "79ff49a72c06abdf76872dccc687e2a83c4f407f",
              "status": "affected",
              "version": "ab4eedb790cae44313759b50fe47da285e2519d5",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "efc30877bd4bc85fefe98d80af60fafc86e5775e",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "f87271d21dd4ee83857ca11b94e7b4952749bbae",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "18ab6b6078fa8191ca30a3065d57bf35d5635761",
              "versionType": "git"
            },
            {
              "lessThan": "6.7",
              "status": "affected",
              "version": "6.6.84",
              "versionType": "semver"
            },
            {
              "lessThan": "6.13",
              "status": "affected",
              "version": "6.12.20",
              "versionType": "semver"
            },
            {
              "lessThan": "6.14",
              "status": "affected",
              "version": "6.13.8",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/bluetooth/l2cap_sock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.14"
            },
            {
              "lessThan": "6.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "6.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.6.84",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.12.20",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.13.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()\n\nl2cap_sock_shutdown() has the race condition\n\n    [Task 1]                      [Task 2]\n    l2cap_sock_shutdown           l2cap_sock_connect\n      l2cap_chan_lock               l2cap_chan_connect\n      conn = ... /* == NULL*/\n      l2cap_chan_unlock ------------\u003e l2cap_chan_lock\n      if (conn) /* false */\n                                      __l2cap_chan_add(conn, chan)\n      l2cap_chan_lock \u003c-------------- l2cap_chan_unlock\n      l2cap_chan_close /* chan-\u003econn-\u003elock not held! */\n\nconn-\u003elock protects conn-\u003echan_l and is not properly held here.\n\nUse the l2cap_chan_close_unlocked() helper that ensures conn-\u003elock is\nheld for l2cap_chan_close()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The race is between two syscalls on the attacker\u0027s own AF_BLUETOOTH socket. shutdown() runs l2cap_sock_shutdown(), which sees chan-\u003econn==NULL and drops chan-\u003elock. connect() then runs l2cap_chan_connect()-\u003e__l2cap_chan_add() before l2cap_chan_close() runs without conn-\u003elock. No received L2CAP or HCI PDU supplies this state, and a radio peer cannot issue these syscalls.\nAC:L - The attacker owns both threads: l2cap_sock_connect() drops lock_sock before l2cap_chan_connect(), so it can take chan-\u003elock in shutdown\u0027s unlock/relock gap. The concurrent chan_l walker is the attacker\u0027s too: another socket\u0027s connect() to the same bdaddr, or l2cap_conn_ready/l2cap_conn_del when the link completes or fails. Lost races are harmless and can be retried; syzbot hit it 345 times.\nPR:L - l2cap_sock_create() requires CAP_NET_RAW only for SOCK_RAW. SOCK_SEQPACKET/STREAM have no capability gate, and connect() needs no privileged PSM. bt_sock_create() rejects anything outside init_net, so this is an ordinary local account, not a userns path. hci_get_route() needs an HCI_UP adapter, the normal state on hosts with Bluetooth enabled.\nUI:N - The attacker issues connect() and shutdown() on their own socket. hci_connect_acl()/hci_connect_le_scan() and l2cap_conn_add() create the hci_conn and l2cap_conn locally, before any remote completion. No other user has to pair, accept, or confirm anything.\nS:U - The unlocked list_del() corrupts conn-\u003echan_l and frees an l2cap_chan inside the host kernel\u0027s Bluetooth stack. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - Once the socket closes, l2cap_chan_del() drops the list reference and the unlinked l2cap_chan can be freed. l2cap_conn_ready()/l2cap_conn_del() can still reach it through a stale chan_l pointer; syzbot shows slab-use-after-free reads in l2cap_connect_cfm. If the attacker reclaims the freed slot, those walkers read chan-\u003econn and the state fields from attacker-controlled data.\nI:H - The walkers run l2cap_chan_lock() and __set_chan_timer() on the freed chan, and l2cap_chan_del() writes through it with list_del(). l2cap_conn_del() also makes indirect calls to chan-\u003eops-\u003eteardown/close through the chan\u0027s ops pointer. A sprayed replacement object gives both a write primitive and a control-flow hijack.\nA:H - A walker that is part-way through the list follows LIST_POISON1 out of the unlinked chan. syzbot\u0027s \"KASAN: wild-memory-access Read in l2cap_connect_cfm\" (l2cap_conn_ready -\u003e l2cap_chan_lock) is a general protection fault oops. An unprivileged user can repeat the race at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:41:07.746Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/6dbe2ac00eb330be99898cd390be883221d6d156"
        },
        {
          "url": "https://git.kernel.org/stable/c/79ff49a72c06abdf76872dccc687e2a83c4f407f"
        }
      ],
      "title": "Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139085",
    "datePublished": "2026-11-30T13:31:26.335Z",
    "dateReserved": "2026-11-30T13:22:15.913Z",
    "dateUpdated": "2026-12-01T05:41:07.746Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139085",
      "date": "2026-12-04",
      "epss": "0.00309",
      "percentile": "0.25532"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-02T01:12:02.000Z",
      "cve": "CVE-2026-139085",
      "id": "msrc_CVE-2026-139085",
      "initial_release_date": "2026-12-01T01:15:43.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-139085.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "net/bluetooth/l2cap_sock.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "6dbe2ac00eb330be99898cd390be883221d6d156",
                    "status": "affected",
                    "version": "ab4eedb790cae44313759b50fe47da285e2519d5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "79ff49a72c06abdf76872dccc687e2a83c4f407f",
                    "status": "affected",
                    "version": "ab4eedb790cae44313759b50fe47da285e2519d5",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "efc30877bd4bc85fefe98d80af60fafc86e5775e",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "f87271d21dd4ee83857ca11b94e7b4952749bbae",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "18ab6b6078fa8191ca30a3065d57bf35d5635761",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6.7",
                    "status": "affected",
                    "version": "6.6.84",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.13",
                    "status": "affected",
                    "version": "6.12.20",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.14",
                    "status": "affected",
                    "version": "6.13.8",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "net/bluetooth/l2cap_sock.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.14"
                  },
                  {
                    "lessThan": "6.14",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()\n\nl2cap_sock_shutdown() has the race condition\n\n    [Task 1]                      [Task 2]\n    l2cap_sock_shutdown           l2cap_sock_connect\n      l2cap_chan_lock               l2cap_chan_connect\n      conn = ... /* == NULL*/\n      l2cap_chan_unlock ------------\u003e l2cap_chan_lock\n      if (conn) /* false */\n                                      __l2cap_chan_add(conn, chan)\n      l2cap_chan_lock \u003c-------------- l2cap_chan_unlock\n      l2cap_chan_close /* chan-\u003econn-\u003elock not held! */\n\nconn-\u003elock protects conn-\u003echan_l and is not properly held here.\n\nUse the l2cap_chan_close_unlocked() helper that ensures conn-\u003elock is\nheld for l2cap_chan_close()."
          }
        ],
        "id": "CVE-2026-139085",
        "lastModified": "2026-12-01T06:17:34.493",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:18:16.300",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/6dbe2ac00eb330be99898cd390be883221d6d156"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/79ff49a72c06abdf76872dccc687e2a83c4f407f"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:09:44+00:00",
      "cve": "CVE-2026-139085",
      "id": "CVE-2026-139085",
      "initial_release_date": "2026-11-30T13:31:26.335000+00:00",
      "product_status:known_affected": "187",
      "product_status:known_not_affected": "93",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via race condition in Bluetooth L2CAP socket shutdown",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139085.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.