Skip to content
Heist/ feed
High

Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup rfcomm_sock_cleanup_listen() closes unaccepted child sockets through rfcomm_sock_close(), which takes the child socket lock before rfcomm_dlc_close() acquires rfcomm_mutex. The RFCOMM worker takes these locks in reverse order while handling connections and DLC state changes, so lockdep reports a possible deadlock. Close dequeued children without taking their socket lock. The accept queue owns a reference to each child, and bt_accept_dequeue() locks the child while unlinking it and clearing its parent pointer. Dropping the child lock makes it important to prevent a concurrent rfcomm_connect_ind() from enqueueing a new child after cleanup observes an empty queue. Set a listening socket to BT_CLOSED while its lock is still held, before dropping the lock and draining the queue. The state check in rfcomm_connect_ind() then rejects new children once cleanup starts.

Announced Source revision 1
Original source ↗

CVE-2026-98290

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98290

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "eb4adaa46e4c9e6efa7be3ce06398f4d7c39b57c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "4aafb47301a799d3e01230d6568c4e93524e1523",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "c741977e413f5b49d306700820fb55ccb8269f5a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "c6792c441767256030606eb82dca5d5fc360dd9a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "bfce253f039eb5f58b810af267942a9f59207254",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "18174b166547ef41973cc19feb5ef9cab39a8def",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b7ce436a5d798bc59e71797952566608a4b4626b",
        "lessThan": "801fb950cae7048eb7d83b18857d1ca37b8cd5a4",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/bluetooth/rfcomm/sock.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.222",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.189",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.54",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.8",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/bluetooth/rfcomm/sock.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98290

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#38368 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement