{"api_version":"1","generated_at":"2026-12-01T22:16:15+00:00","cve":"CVE-2026-139082","urls":{"html":"https://cve.report/CVE-2026-139082","api":"https://cve.report/api/cve/CVE-2026-139082.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139082","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139082"},"summary":{"title":"Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer\n\n__l2cap_ecred_conn_rsp_defer() > __l2cap_chan_list_id() accesses\nconn->chan_l which is guarded by conn->lock. The lock fails to be held\nwhen calling from l2cap_sock.c.\n\nFix by using l2cap_chan_conn_lock(), and taking the locks in required\norder l2cap_conn::lock > l2cap_chan::lock > sk.  Leave fast path with\nsk->sk_state precheck.  Move the L2CAP defer handling to\nl2cap_sock_defer().\n\nThe code should also take l2cap_chan_lock() for sibling channels, but\nthat needs separate fix due to lock nesting.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:15","updated_at":"2026-12-01 06:17:34"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"8","severity":"HIGH","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8,"baseSeverity":"HIGH","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8","severity":"HIGH","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/878dd63b28288fb36acc187e27b7d4f86ffdaac7","name":"https://git.kernel.org/stable/c/878dd63b28288fb36acc187e27b7d4f86ffdaac7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/32d86e048d8efedb7aa6cbbd3c36c3c435401c92","name":"https://git.kernel.org/stable/c/32d86e048d8efedb7aa6cbbd3c36c3c435401c92","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139082","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139082","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab4eedb790cae44313759b50fe47da285e2519d5 878dd63b28288fb36acc187e27b7d4f86ffdaac7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ab4eedb790cae44313759b50fe47da285e2519d5 32d86e048d8efedb7aa6cbbd3c36c3c435401c92 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected efc30877bd4bc85fefe98d80af60fafc86e5775e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f87271d21dd4ee83857ca11b94e7b4952749bbae git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 18ab6b6078fa8191ca30a3065d57bf35d5635761 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.84 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.20 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.13.8 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/bluetooth/l2cap_sock.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"878dd63b28288fb36acc187e27b7d4f86ffdaac7","status":"affected","version":"ab4eedb790cae44313759b50fe47da285e2519d5","versionType":"git"},{"lessThan":"32d86e048d8efedb7aa6cbbd3c36c3c435401c92","status":"affected","version":"ab4eedb790cae44313759b50fe47da285e2519d5","versionType":"git"},{"status":"affected","version":"efc30877bd4bc85fefe98d80af60fafc86e5775e","versionType":"git"},{"status":"affected","version":"f87271d21dd4ee83857ca11b94e7b4952749bbae","versionType":"git"},{"status":"affected","version":"18ab6b6078fa8191ca30a3065d57bf35d5635761","versionType":"git"},{"lessThan":"6.7","status":"affected","version":"6.6.84","versionType":"semver"},{"lessThan":"6.13","status":"affected","version":"6.12.20","versionType":"semver"},{"lessThan":"6.14","status":"affected","version":"6.13.8","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/bluetooth/l2cap_sock.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.84","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer\n\n__l2cap_ecred_conn_rsp_defer() > __l2cap_chan_list_id() accesses\nconn->chan_l which is guarded by conn->lock. The lock fails to be held\nwhen calling from l2cap_sock.c.\n\nFix by using l2cap_chan_conn_lock(), and taking the locks in required\norder l2cap_conn::lock > l2cap_chan::lock > sk.  Leave fast path with\nsk->sk_state precheck.  Move the L2CAP defer handling to\nl2cap_sock_defer().\n\nThe code should also take l2cap_chan_lock() for sibling channels, but\nthat needs separate fix due to lock nesting."}],"metrics":[{"cvssV3_1":{"baseScore":8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"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.\nAC: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).\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:41:06.086Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/878dd63b28288fb36acc187e27b7d4f86ffdaac7"},{"url":"https://git.kernel.org/stable/c/32d86e048d8efedb7aa6cbbd3c36c3c435401c92"}],"title":"Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139082","datePublished":"2026-11-30T13:31:24.654Z","dateReserved":"2026-11-30T13:22:15.913Z","dateUpdated":"2026-12-01T05:41:06.086Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:15","lastModifiedDate":"2026-12-01 06:17:34","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8,"baseSeverity":"HIGH","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139082","Ordinal":"1","Title":"Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_def","CVE":"CVE-2026-139082","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139082","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer\n\n__l2cap_ecred_conn_rsp_defer() > __l2cap_chan_list_id() accesses\nconn->chan_l which is guarded by conn->lock. The lock fails to be held\nwhen calling from l2cap_sock.c.\n\nFix by using l2cap_chan_conn_lock(), and taking the locks in required\norder l2cap_conn::lock > l2cap_chan::lock > sk.  Leave fast path with\nsk->sk_state precheck.  Move the L2CAP defer handling to\nl2cap_sock_defer().\n\nThe code should also take l2cap_chan_lock() for sibling channels, but\nthat needs separate fix due to lock nesting.","Type":"Description","Title":"Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_def"}]}}}