CVE-2026-99239
published high CVSS 3.1 · 7.8Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8f90405a4a6f1f1880dc07996b47bf57c712bd8a to < 85cc289eb08afa975375f838187369e68b429ee0 · 32d783cafb46ff3ca58e6f9fd62c9c5f35eaf26b to < 820579652b24ce277e0097cd65b42bd9b7b8bf07 · 8922c7940bae9ce4b1736dddb6362370793835c2 to < e618d928ec7f88cbeadfa3542adcac40f474e629 · 91047a4396a8b1857a6f712a90cf33ec0012b189 to < fabaff1c59ff2cc89cb7e5bd0186a5e15f0c73b2 · 0b0e2bf39cf99e458d991b9df253727e036a7d7d to < 52fe88e4ef87311eee32b45c65603e7c69e75e7d · d3b739db5dc6f688a60d56da872fabaf65246032 to < 10c705dd706aa93164ba41f2566f15206d6c178e · b66774b48dd98f07254951f74ea6f513efe7ff8b to < 73820561d8cbfd3364a29b8fa77f1707f26029da · b66774b48dd98f07254951f74ea6f513efe7ff8b to < d3afd7803f9bc2a8c4270199497b60158b2fc647 · b66774b48dd98f07254951f74ea6f513efe7ff8b to < 86b55991d3cd690e73c5ef8d20b75ae4905b357a · 50c38d9f42a529691e4e67ea9cedf4f0bfc8d277 · 5.10.265 to < 5.10.273 · 5.15.216 to < 5.15.224 · 6.1.183 to < 6.1.191 · 6.6.145 to < 6.6.161 · 6.12.97 to < 6.12.115 · 6.18.39 to < 6.18.60 · 7.1.4 to < 7.2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 5.10.273 through 5.10.* (unaffected · semver) · 5.15.224 through 5.15.* (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.161 through 6.6.* (unaffected · semver) · 6.12.115 through 6.12.* (unaffected · semver) · 6.18.60 through 6.18.* (unaffected · semver) · 7.2.14 through 7.2.* (unaffected · semver) · 7.3.1 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.115-2~deb12u1 | DLA-4904-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.3-1.1 | OPENSUSE-SU-2026:12497-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The double add is a local TOCTOU: l2cap_sock_connect()→l2cap_chan_connect()→__l2cap_chan_add() races l2cap_sock_bind(), which overwrites chan->state to BT_BOUND so a later connect() links the same l2cap_chan again. No received L2CAP/HCI PDU carries that state; a radio peer cannot issue those syscalls. AC:L - The attacker owns both threads. bind() holds lock_sock while l2cap_state_change() blocks in l2cap_sock_state_change_cb(); bind() then sets chan->state=BT_BOUND. l2cap_sock_connect() never checks sk->sk_state, so a later connect() observes BT_BOUND and calls __l2cap_chan_add() again. The race is attacker-driven and retryable. PR:L - l2cap_sock_create() requires capable(CAP_NET_RAW) only for SOCK_RAW; SOCK_SEQPACKET/STREAM used here have no capability gate. l2cap_add_psm() auto-picks a dynamic PSM (BR/EDR >=0x1001) without CAP_NET_BIND_SERVICE. bt_sock_create() is init_net-only, so this is an ordinary unprivileged local user. UI:N - The attacker opens their own AF_BLUETOOTH/BTPROTO_L2CAP socket and issues bind()/connect(). hci_connect_acl() creates the hci_conn, l2cap_conn_add() publishes l2cap_data, and __l2cap_chan_add() runs before any remote Connection Complete or pairing prompt. S:U - __l2cap_chan_add() corrupts the host kernel l2cap_chan.list linked into l2cap_conn.chan_l, which l2cap_chan_del() and l2cap_conn_del() then walk; the impact stays in the kernel L2CAP/HCI authority and does not cross a VM, IOMMU, or sandbox boundary. C:H - A second __l2cap_chan_add() to another l2cap_conn list_add_tail()s the same chan->list without unlinking it from the first conn->chan_l. l2cap_conn_del()'s list_for_each_entry_safe then follows those stale pointers and treats the other conn's list head as an l2cap_chan, an adjacent-slab type confusion that can be sprayed for a kernel read. I:H - l2cap_chan_del() list_del()s the twice-inserted chan->list, writing next/prev of the other connection's nodes, and l2cap_conn_del() calls chan->ops->teardown/close on the type-confused object. That unlink write plus ops-pointer invocation is a write/control-flow primitive. A:H - Inserting chan->list into the same conn->chan_l twice makes a self-loop, so __l2cap_get_chan_by_scid(), l2cap_conn_start(), and l2cap_conn_del() hang in list_for_each_entry; after list_del() the leftover head still points at the poisoned node and oopses.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8f90405a4a6f1f1880dc07996b47bf57c712bd8a to < 85cc289eb08afa975375f838187369e68b429ee0 (affected · git)32d783cafb46ff3ca58e6f9fd62c9c5f35eaf26b to < 820579652b24ce277e0097cd65b42bd9b7b8bf07 (affected · git)8922c7940bae9ce4b1736dddb6362370793835c2 to < e618d928ec7f88cbeadfa3542adcac40f474e629 (affected · git)91047a4396a8b1857a6f712a90cf33ec0012b189 to < fabaff1c59ff2cc89cb7e5bd0186a5e15f0c73b2 (affected · git)0b0e2bf39cf99e458d991b9df253727e036a7d7d to < 52fe88e4ef87311eee32b45c65603e7c69e75e7d (affected · git)d3b739db5dc6f688a60d56da872fabaf65246032 to < 10c705dd706aa93164ba41f2566f15206d6c178e (affected · git)b66774b48dd98f07254951f74ea6f513efe7ff8b to < 73820561d8cbfd3364a29b8fa77f1707f26029da (affected · git)b66774b48dd98f07254951f74ea6f513efe7ff8b to < d3afd7803f9bc2a8c4270199497b60158b2fc647 (affected · git)b66774b48dd98f07254951f74ea6f513efe7ff8b to < 86b55991d3cd690e73c5ef8d20b75ae4905b357a (affected · git)50c38d9f42a529691e4e67ea9cedf4f0bfc8d277 (affected · git)5.10.265 to < 5.10.273 (affected · semver)5.15.216 to < 5.15.224 (affected · semver)6.1.183 to < 6.1.191 (affected · semver)6.6.145 to < 6.6.161 (affected · semver)6.12.97 to < 6.12.115 (affected · semver)6.18.39 to < 6.18.60 (affected · semver)7.1.4 to < 7.2 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 7.2 (affected)0 to < 7.2 (unaffected · semver)5.10.273 through 5.10.* (unaffected · semver)5.15.224 through 5.15.* (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.161 through 6.6.* (unaffected · semver)6.12.115 through 6.12.* (unaffected · semver)6.18.60 through 6.18.* (unaffected · semver)7.2.14 through 7.2.* (unaffected · semver)7.3.1 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
9- https://git.kernel.org/stable/c/10c705dd706aa93164ba41f2566f15206d6c178e
- https://git.kernel.org/stable/c/52fe88e4ef87311eee32b45c65603e7c69e75e7d
- https://git.kernel.org/stable/c/73820561d8cbfd3364a29b8fa77f1707f26029da
- https://git.kernel.org/stable/c/820579652b24ce277e0097cd65b42bd9b7b8bf07
- https://git.kernel.org/stable/c/85cc289eb08afa975375f838187369e68b429ee0
- https://git.kernel.org/stable/c/86b55991d3cd690e73c5ef8d20b75ae4905b357a
- https://git.kernel.org/stable/c/d3afd7803f9bc2a8c4270199497b60158b2fc647
- https://git.kernel.org/stable/c/e618d928ec7f88cbeadfa3542adcac40f474e629
- https://git.kernel.org/stable/c/fabaff1c59ff2cc89cb7e5bd0186a5e15f0c73b2
Provider assertions
1Linux · cna
Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5d54ea35002a0776c58485b46bba43f53a67b76f692951fc2762e3adea788f15
- Ingested
- 03 Nov 2026, 19:22:39 UTC
- Source record
- Official CVE record