CVE-2026-99239

Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn

Published Nov 2, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn

l2cap_chan may be linked to l2cap_conn at most once. This is assumed in
several places, eg l2cap_chan_del cleanup.

There is a TOCTOU race where the invariant is violated:

[Task 1] [Task 2]
l2cap_chan_connect l2cap_sock_bind
l2cap_chan_lock lock_sock
l2cap_state_change if (sk->sk_state != BT_OPEN)
chan->state = BT_CONNECT
l2cap_sock_state_change_cb chan->state = BT_BOUND
sk->sk_state = BT_BOUND
lock_sock <------------------ release_sock
sk->sk_state = BT_CONNECT

l2cap_sock_connect() does not check sk->sk_state, so since chan->state
is now BT_BOUND, subsequent connect() ends up with second
__l2cap_chan_add.

Explicitly document and check the invariant in __l2cap_chan_add with
WARN_ON_ONCE. The only callsite where it could be hit is
l2cap_chan_connect, so add pre-check there to avoid relying on
chan->state. chan->state read/write is not properly guarded currently so
there can be other TOCTOUC problems.

Add l2cap_lock_chan in l2cap_sock_bind() to guard chan->state write.

Analysis

AI-generated

Technical impact

The vulnerability is a race condition in the Linux kernel Bluetooth L2CAP stack. It occurs when a channel is being connected or bound, allowing a second __l2cap_chan_add call before the first operation completes. This violates the assumption that a channel may be linked to a connection at most once, potentially causing undefined behaviour or a kernel crash. The missing proper locking and state checks mean that local processes creating and binding Bluetooth sockets could trigger the flaw, producing a denial‑of‑service but not necessarily facilitating higher privileges or remote code execution.

Affected Systems

All Linux kernel releases that include the vulnerable Bluetooth L2CAP implementation are affected. No specific kernel versions are listed, so any system running a recent kernel with Bluetooth support should be considered potentially vulnerable until the fix is applied via the Linux kernel update channel.

Risk and Exploitability

The CVSS score of 7.8 indicates a medium‑high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is local, achievable by a malicious or compromised user‑space application that interacts with the Bluetooth stack. The race condition requires careful timing, so exploitation is non‑trivial but feasible on systems with high concurrency of Bluetooth socket operations. Until the patch is installed, the kernel may crash, leading to service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a Linux kernel release that contains the patch correcting the L2CAP race condition (consult vendor advisories or the Linux kernel git logs referenced above).
  • If an immediate kernel update is not feasible, disable or restrict the Bluetooth service on the host to prevent the vulnerable code path from being exercised.
  • Monitor kernel logs for WARN_ON_ONCE messages related to L2CAP; if such warnings appear, treat them as indicators that the vulnerability is active and raise the urgency to apply a fix.

Generated by OpenCVE AI on November 3, 2026 at 03:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn l2cap_chan may be linked to l2cap_conn at most once. This is assumed in several places, eg l2cap_chan_del cleanup. There is a TOCTOU race where the invariant is violated: [Task 1] [Task 2] l2cap_chan_connect l2cap_sock_bind l2cap_chan_lock lock_sock l2cap_state_change if (sk->sk_state != BT_OPEN) chan->state = BT_CONNECT l2cap_sock_state_change_cb chan->state = BT_BOUND sk->sk_state = BT_BOUND lock_sock <------------------ release_sock sk->sk_state = BT_CONNECT l2cap_sock_connect() does not check sk->sk_state, so since chan->state is now BT_BOUND, subsequent connect() ends up with second __l2cap_chan_add. Explicitly document and check the invariant in __l2cap_chan_add with WARN_ON_ONCE. The only callsite where it could be hit is l2cap_chan_connect, so add pre-check there to avoid relying on chan->state. chan->state read/write is not properly guarded currently so there can be other TOCTOUC problems. Add l2cap_lock_chan in l2cap_sock_bind() to guard chan->state write.
Title Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 3, 2026, 7:13 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 2, 2026, 4:17 PM
Modified
Nov 3, 2026, 8:18 PM
Severity
Important
Public date
Nov 2, 2026, 4:06 PM