Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139085

published high CVSS 3.1 · 7.8

Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()

Published
30 Nov 2026, 13:31:26 UTC
Updated
01 Dec 2026, 05:41:07 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxab4eedb790cae44313759b50fe47da285e2519d5 to < 6dbe2ac00eb330be99898cd390be883221d6d156 · ab4eedb790cae44313759b50fe47da285e2519d5 to < 79ff49a72c06abdf76872dccc687e2a83c4f407f · efc30877bd4bc85fefe98d80af60fafc86e5775e · f87271d21dd4ee83857ca11b94e7b4952749bbae · 18ab6b6078fa8191ca30a3065d57bf35d5635761 · 6.6.84 to < 6.7 · 6.12.20 to < 6.13 · 6.13.8 to < 6.14 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 7.3.6 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

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown() l2cap_sock_shutdown() has the race condition [Task 1] [Task 2] l2cap_sock_shutdown l2cap_sock_connect l2cap_chan_lock l2cap_chan_connect conn = ... /* == NULL*/ l2cap_chan_unlock ------------> l2cap_chan_lock if (conn) /* false */ __l2cap_chan_add(conn, chan) l2cap_chan_lock <-------------- l2cap_chan_unlock l2cap_chan_close /* chan->conn->lock not held! */ conn->lock protects conn->chan_l and is not properly held here. Use the l2cap_chan_close_unlocked() helper that ensures conn->lock is held for l2cap_chan_close().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for 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 race is between two syscalls on the attacker's own AF_BLUETOOTH socket. shutdown() runs l2cap_sock_shutdown(), which sees chan->conn==NULL and drops chan->lock. connect() then runs l2cap_chan_connect()->__l2cap_chan_add() before l2cap_chan_close() runs without conn->lock. No received L2CAP or HCI PDU supplies this state, and a radio peer cannot issue these syscalls. AC:L - The attacker owns both threads: l2cap_sock_connect() drops lock_sock before l2cap_chan_connect(), so it can take chan->lock in shutdown's unlock/relock gap. The concurrent chan_l walker is the attacker's too: another socket's connect() to the same bdaddr, or l2cap_conn_ready/l2cap_conn_del when the link completes or fails. Lost races are harmless and can be retried; syzbot hit it 345 times. PR:L - l2cap_sock_create() requires CAP_NET_RAW only for SOCK_RAW. SOCK_SEQPACKET/STREAM have no capability gate, and connect() needs no privileged PSM. bt_sock_create() rejects anything outside init_net, so this is an ordinary local account, not a userns path. hci_get_route() needs an HCI_UP adapter, the normal state on hosts with Bluetooth enabled. UI:N - The attacker issues connect() and shutdown() on their own socket. hci_connect_acl()/hci_connect_le_scan() and l2cap_conn_add() create the hci_conn and l2cap_conn locally, before any remote completion. No other user has to pair, accept, or confirm anything. S:U - The unlocked list_del() corrupts conn->chan_l and frees an l2cap_chan inside the host kernel's Bluetooth stack. No VM, IOMMU, or sandbox boundary is crossed. C:H - Once the socket closes, l2cap_chan_del() drops the list reference and the unlinked l2cap_chan can be freed. l2cap_conn_ready()/l2cap_conn_del() can still reach it through a stale chan_l pointer; syzbot shows slab-use-after-free reads in l2cap_connect_cfm. If the attacker reclaims the freed slot, those walkers read chan->conn and the state fields from attacker-controlled data. I:H - The walkers run l2cap_chan_lock() and __set_chan_timer() on the freed chan, and l2cap_chan_del() writes through it with list_del(). l2cap_conn_del() also makes indirect calls to chan->ops->teardown/close through the chan's ops pointer. A sprayed replacement object gives both a write primitive and a control-flow hijack. A:H - A walker that is part-way through the list follows LIST_POISON1 out of the unlinked chan. syzbot's "KASAN: wild-memory-access Read in l2cap_connect_cfm" (l2cap_conn_ready -> l2cap_chan_lock) is a general protection fault oops. An unprivileged user can repeat the race at will.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ab4eedb790cae44313759b50fe47da285e2519d5 to < 6dbe2ac00eb330be99898cd390be883221d6d156 (affected · git)ab4eedb790cae44313759b50fe47da285e2519d5 to < 79ff49a72c06abdf76872dccc687e2a83c4f407f (affected · git)efc30877bd4bc85fefe98d80af60fafc86e5775e (affected · git)f87271d21dd4ee83857ca11b94e7b4952749bbae (affected · git)18ab6b6078fa8191ca30a3065d57bf35d5635761 (affected · git)6.6.84 to < 6.7 (affected · semver)6.12.20 to < 6.13 (affected · semver)6.13.8 to < 6.14 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.14 (affected)0 to < 6.14 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()

Provenance

Schema
5.2
Searchable
yes
Content hash
9003191952795ddb4337a141a31db26f450b4ddd942cb76ab5ee5c12833cea98
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected