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-139082

published high CVSS 3.1 · 8.0

Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer

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

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxab4eedb790cae44313759b50fe47da285e2519d5 to < 878dd63b28288fb36acc187e27b7d4f86ffdaac7 · ab4eedb790cae44313759b50fe47da285e2519d5 to < 32d86e048d8efedb7aa6cbbd3c36c3c435401c92 · 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: hold conn->lock for __l2cap_ecred_conn_rsp_defer __l2cap_ecred_conn_rsp_defer() > __l2cap_chan_list_id() accesses conn->chan_l which is guarded by conn->lock. The lock fails to be held when calling from l2cap_sock.c. Fix by using l2cap_chan_conn_lock(), and taking the locks in required order l2cap_conn::lock > l2cap_chan::lock > sk. Leave fast path with sk->sk_state precheck. Move the L2CAP defer handling to l2cap_sock_defer(). The code should also take l2cap_chan_lock() for sibling channels, but that needs separate fix due to lock nesting.

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
8.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:A - The deferred EXT_FLOWCTL siblings sharing one ident come from a peer's L2CAP_ECRED_CONN_REQ (l2cap_ecred_conn_req). The concurrent chan_l removal comes from the same peer's L2CAP_DISCONN_REQ (l2cap_disconnect_req) or link drop (l2cap_conn_del). Both arrive over Bluetooth radio, so the vector is Adjacent, not Network. AC:L - The attacker controls both sides and can retry at will. They pick when to call recvmsg() on child A, which makes l2cap_sock_recvmsg run __l2cap_ecred_conn_rsp_defer without conn->lock. Their peer chooses when to disconnect a sibling, and they can also close() sibling B from a second thread. ECRED is on by default (CONFIG_BT_LE_L2CAP_ECRED=y). PR:L - l2cap_sock_create requires CAP_NET_RAW only for SOCK_RAW, l2cap_validate_le_psm allows LE PSMs from 0x80 without CAP_NET_BIND_SERVICE, and BT_DEFER_SETUP has no capability check, so a normal local account can listen in defer mode. AF_BLUETOOTH is init_net-only. Without the attacker's own listener, bluetoothd's EATT defer socket is reachable only with non-default Channels>1. UI:N - The attacker runs their own deferred ECRED listener and accepts and reads its children themselves, while their own BLE peer sends the connect and disconnect PDUs. No other user has to act. S:U - The corruption hits l2cap_conn->chan_l and l2cap_chan objects inside the host kernel's Bluetooth stack. It does not cross into another security authority such as a VM host or IOMMU domain. C:H - A sibling that was never accepted is freed by l2cap_sock_kill while the unlocked list_for_each_entry_safe in __l2cap_chan_list_id still holds it as its next entry, so its fields are read after free. A reclaimed l2cap_chan, or conn->chan_l corrupted by unlocked list_del, can be used to leak kernel memory. I:H - l2cap_ecred_rsp_defer writes to the freed sibling (test_and_clear_bit on chan->flags, chan->ident = 0) and can call l2cap_chan_del on it, which does list_del and an indirect call through chan->ops->teardown. On reclaimed memory that is a write primitive and a control-flow hijack. A:H - Walking siblings that another path has just list_del'd follows LIST_POISON pointers into a general-protection fault, and concurrent list_del on adjacent chan_l entries corrupts the list. Either way the result is a kernel oops or a use-after-free crash, and the attacker can repeat it with new ECRED connections.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ab4eedb790cae44313759b50fe47da285e2519d5 to < 878dd63b28288fb36acc187e27b7d4f86ffdaac7 (affected · git)ab4eedb790cae44313759b50fe47da285e2519d5 to < 32d86e048d8efedb7aa6cbbd3c36c3c435401c92 (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: hold conn->lock for __l2cap_ecred_conn_rsp_defer

Provenance

Schema
5.2
Searchable
yes
Content hash
86d04844c7e63f41c8282f3d67b18bab7379647f91584f8ba55dea607a5d7d3d
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