CVE-2026-99239

Description

A flaw was found in the Linux kernel's Bluetooth Logical Link Control and Adaptation Protocol (L2CAP) subsystem. A race condition between concurrent socket bind and connect operations allows a communication channel to be attached to a connection multiple times. A local attacker can exploit this flaw to achieve privilege escalation, memory corruption, or a denial of service (DoS) by issuing carefully timed requests across Bluetooth sockets.

Statement

A TOCTOU race between l2cap_chan_connect and l2cap_sock_bind can change chan state and allow a second __l2cap_chan_add for the same L2CAP channel. Readding the same intrusive channel object violates connection lifetime and list invariants and can leave l2cap_chan_del or later list traversal operating on corrupted linkage or stale references. This creates a plausible UAF or invalid list dereference path with kernel crash as the clearest impact and possible confidentiality or integrity impact from memory corruption. For the CVSS the PR:L value is selected because a local unprivileged process must operate a Bluetooth L2CAP socket and race bind against connect. AC:H reflects the required timing window. The issue is not directly remotely reachable although a usable Bluetooth stack and connection path are prerequisites.

Mitigation

--- CME Mitigation Guidance (2026-11-04) ---
Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to synchronize Bluetooth L2CAP socket bind and connect state updates with channel locking to prevent duplicate channel attachments: upgrade to the corresponding fixed Red Hat builds, which acquire l2cap_chan_lock in l2cap_sock_bind to guard chan->state updates, reject connection attempts in l2cap_chan_connect if chan->conn or FLAG_DEL is set, and refuse __l2cap_chan_add when chan already has an associated conn, closing all 2 injection vectors (concurrent l2cap_sock_bind and l2cap_chan_connect system calls, interleaved socket state modification via multi-threaded Bluetooth socket operations). Until patched, this is only a concern on Linux systems with the Bluetooth subsystem enabled and local unprivileged user access — Systems lacking physical Bluetooth hardware or with the Bluetooth kernel module disabled or omitted are unaffected — so disable or unload the Bluetooth kernel module on hosts where Bluetooth is not required, and restrict unprivileged local users from creating Bluetooth sockets. As a compensating measure, enforce SELinux to restrict confined process domains from creating or interacting with Bluetooth L2CAP sockets, map local users to confined SELinux roles to deny permissions to instantiate raw Bluetooth socket families, deploy EDR agents to detect anomalous privilege escalation behaviors and post-exploit payload execution, use Falco or eBPF runtime security to monitor kernel system call patterns and flag unexpected privilege transitions, enable KASAN or HWASan instrumentation to detect kernel memory corruption and invalid channel pointer reuse, and enable KASLR to randomize kernel code addresses and hinder control-flow redirection during memory corruption. These controls limit blast radius and contain exploitation, but they do not fix the underlying TOCTOU race condition defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-301 SELinux (Enforcing Mode) (medium)

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score4.7N/A7.8
Attack VectorLocalN/ALocal
Attack ComplexityHighN/ALow
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/AHigh
Integrity ImpactNoneN/AHigh
Availability ImpactHighN/AHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory

The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.

Confidentiality

Technical Impact: Read Memory

Read operations on freed memory can sometimes leak sensitive information instead of causing a crash

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap data. If one of these function pointers is overwritten with an address to valid shellcode, execution of arbitrary code can be achieved.

Frequently Asked Questions

Want to get errata notifications? Sign up here.