Skip to content
Heist/ feed
Back to feed
UnratedFix available

Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept rfcomm_sock_recvmsg() completes a deferred setup by calling rfcomm_dlc_accept() without holding any RFCOMM lock: if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { rfcomm_dlc_accept(d); return 0; } and rfcomm_dlc_accept() dereferences the session on its first line: struct sock *sk = d->session->sock->sk; Every other path that touches d->session runs under rfcomm_mutex: rfcomm_dlc_open(), rfcomm_dlc_close(), rfcomm_dlc_exists(), rfcomm_dlc_send_rpn(), and the RFCOMM thread through rfcomm_process_sessions(). rfcomm_connect_ind() is even documented as "called under rfcomm_lock()". This call site is the only one that skips it. The RFCOMM_DEFER_SETUP bit looks like it serialises the accept against teardown, since __rfcomm_dlc_close() returns early when it wins the test_and_clear. But rfcomm_recv_disc() forces the state first: d->state = BT_CLOSED; __rfcomm_dlc_close(d, err); and the early return only covers BT_CONNECT, BT_CONFIG, BT_OPEN and BT_CONNECT2. With the state already BT_CLOSED that switch does not match, the bit is never consulted, and __rfcomm_dlc_close() falls through to rfcomm_dlc_unlink(), which sets d->session = NULL. So a remote DISC on a deferred dlc clears the session while leaving RFCOMM_DEFER_SETUP set. The next recvmsg() then passes the test_and_clear and dereferences a NULL session. No timing window is needed: once the D

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.267, 5.15.218, 6.1.185, 6.12.106, 6.18.47, 6.6.154, 7.1.11, 7.2.1
CVEs
CVE-2026-80819
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:20 UTC · Revision 1

Source evidence

Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept

core-osv · Original source

Published 4 Sept 2026, 15:13 UTC

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept rfcomm_sock_recvmsg() completes a deferred setup by calling rfcomm_dlc_accept() without holding any RFCOMM lock: if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { rfcomm_dlc_accept(d); return 0; } and rfcomm_dlc_accept() dereferences the session on its first line: struct sock *sk = d->session->sock->sk; Every other path that touches d->session runs under rfcomm_mutex: rfcomm_dlc_open(), rfcomm_dlc_close(), rfcomm_dlc_exists(), rfcomm_dlc_send_rpn(), and the RFCOMM thread through rfcomm_process_sessions(). rfcomm_connect_ind() is even documented as "called under rfcomm_lock()". This call site is the only one that skips it. The RFCOMM_DEFER_SETUP bit looks like it serialises the accept against teardown, since __rfcomm_dlc_close() returns early when it wins the test_and_clear. But rfcomm_recv_disc() forces the state first: d->state = BT_CLOSED; __rfcomm_dlc_close(d, err); and the early return only covers BT_CONNECT, BT_CONFIG, BT_OPEN and BT_CONNECT2. With the state already BT_CLOSED that switch does not match, the bit is never consulted, and __rfcomm_dlc_close() falls through to rfcomm_dlc_unlink(), which sets d->session = NULL. So a remote DISC on a deferred dlc clears the session while leaving RFCOMM_DEFER_SETUP set. The next recvmsg() then passes the test_and_clear and dereferences a NULL session. No timing window is needed: once the D

osv:CVE-2026-80819

Kernel

Fixed versions: 5.10.267, 5.15.218, 6.1.185, 6.6.154, 6.12.106, 6.18.47, 7.1.11, 7.2.1

Complete source record
{
  "id": "a714d078a6d63b04d8cbe99d08fa5fb5039c5a87b5462954b642f5acc309daa8",
  "url": "https://osv.dev/vulnerability/CVE-2026-80819",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept rfcomm_sock_recvmsg() completes a deferred setup by calling rfcomm_dlc_accept() without holding any RFCOMM lock: if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { rfcomm_dlc_accept(d); return 0; } and rfcomm_dlc_accept() dereferences the session on its first line: struct sock *sk = d->session->sock->sk; Every other path that touches d->session runs under rfcomm_mutex: rfcomm_dlc_open(), rfcomm_dlc_close(), rfcomm_dlc_exists(), rfcomm_dlc_send_rpn(), and the RFCOMM thread through rfcomm_process_sessions(). rfcomm_connect_ind() is even documented as \"called under rfcomm_lock()\". This call site is the only one that skips it. The RFCOMM_DEFER_SETUP bit looks like it serialises the accept against teardown, since __rfcomm_dlc_close() returns early when it wins the test_and_clear. But rfcomm_recv_disc() forces the state first: d->state = BT_CLOSED; __rfcomm_dlc_close(d, err); and the early return only covers BT_CONNECT, BT_CONFIG, BT_OPEN and BT_CONNECT2. With the state already BT_CLOSED that switch does not match, the bit is never consulted, and __rfcomm_dlc_close() falls through to rfcomm_dlc_unlink(), which sets d->session = NULL. So a remote DISC on a deferred dlc clears the session while leaving RFCOMM_DEFER_SETUP set. The next recvmsg() then passes the test_and_clear and dereferences a NULL session. No timing window is needed: once the D",
    "evidence": "osv:CVE-2026-80819",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.267",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.218",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.185",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.154",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.106",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.47",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-80819",
      "aliases": [
        "CVE-2026-80819"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bb23c0ab824653be4aa7dfca15b07b3059717004"
                },
                {
                  "fixed": "d8d686dd5662a7c4745e4515f1237a9f3b7df181"
                },
                {
                  "fixed": "eb71d5a1ea8ff2683e394b48ae3cd676037ab4c2"
                },
                {
                  "fixed": "56f0aa75c7640e46397ef73bea251fcbef9150c0"
                },
                {
                  "fixed": "362726c9c6e56eea4262109183e49868c39ccd3a"
                },
                {
                  "fixed": "825b95561d7b7c393df9e7bc295451aaeadc3d18"
                },
                {
                  "fixed": "d4b1a13b1eff2e80925c7368ffdeaaa50cba93df"
                },
                {
                  "fixed": "355bfd57ca4ca881c6eb03ca813b440a094b1f44"
                },
                {
                  "fixed": "b405c2f96ae2e37375105881890f7738833b1d62"
                },
                {
                  "fixed": "43a556b2fd43f2df6dded59c2e26560a27874c24"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80819.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.30"
                },
                {
                  "fixed": "5.10.267"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.218"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.185"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.154"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.106"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.47"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.2.0"
                },
                {
                  "fixed": "7.2.1"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80819.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.439848228Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/355bfd57ca4ca881c6eb03ca813b440a094b1f44",
        "https://git.kernel.org/stable/c/362726c9c6e56eea4262109183e49868c39ccd3a",
        "https://git.kernel.org/stable/c/43a556b2fd43f2df6dded59c2e26560a27874c24",
        "https://git.kernel.org/stable/c/56f0aa75c7640e46397ef73bea251fcbef9150c0",
        "https://git.kernel.org/stable/c/825b95561d7b7c393df9e7bc295451aaeadc3d18",
        "https://git.kernel.org/stable/c/b405c2f96ae2e37375105881890f7738833b1d62",
        "https://git.kernel.org/stable/c/d4b1a13b1eff2e80925c7368ffdeaaa50cba93df",
        "https://git.kernel.org/stable/c/d8d686dd5662a7c4745e4515f1237a9f3b7df181",
        "https://git.kernel.org/stable/c/eb71d5a1ea8ff2683e394b48ae3cd676037ab4c2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80819.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-80819",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80819.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-80819",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 507190,
  "published_at": "2026-09-04T15:13:40.309+00:00"
}