{"id":"CVE-2026-139082","state":"PUBLISHED","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.","publishedAt":"2026-11-30T13:31:24.654Z","updatedAt":"2026-11-30T13:31:24.654Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"878dd63b28288fb36acc187e27b7d4f86ffdaac7","versionType":"git"},{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"32d86e048d8efedb7aa6cbbd3c36c3c435401c92","versionType":"git"},{"version":"efc30877bd4bc85fefe98d80af60fafc86e5775e","status":"affected","versionType":"git"},{"version":"f87271d21dd4ee83857ca11b94e7b4952749bbae","status":"affected","versionType":"git"},{"version":"18ab6b6078fa8191ca30a3065d57bf35d5635761","status":"affected","versionType":"git"},{"version":"6.6.84","status":"affected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.20","status":"affected","lessThan":"6.13","versionType":"semver"},{"version":"6.13.8","status":"affected","lessThan":"6.14","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/l2cap_sock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/l2cap_sock.c"]}],"references":["https://git.kernel.org/stable/c/878dd63b28288fb36acc187e27b7d4f86ffdaac7","https://git.kernel.org/stable/c/32d86e048d8efedb7aa6cbbd3c36c3c435401c92"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139082.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139082","state":"PUBLISHED","datePublished":"2026-11-30T13:31:24.654Z","dateUpdated":"2026-11-30T13:31:24.654Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.913Z"},"containers":{"cna":{"title":"Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"878dd63b28288fb36acc187e27b7d4f86ffdaac7","versionType":"git"},{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"32d86e048d8efedb7aa6cbbd3c36c3c435401c92","versionType":"git"},{"version":"efc30877bd4bc85fefe98d80af60fafc86e5775e","status":"affected","versionType":"git"},{"version":"f87271d21dd4ee83857ca11b94e7b4952749bbae","status":"affected","versionType":"git"},{"version":"18ab6b6078fa8191ca30a3065d57bf35d5635761","status":"affected","versionType":"git"},{"version":"6.6.84","status":"affected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.20","status":"affected","lessThan":"6.13","versionType":"semver"},{"version":"6.13.8","status":"affected","lessThan":"6.14","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/l2cap_sock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/l2cap_sock.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/878dd63b28288fb36acc187e27b7d4f86ffdaac7"},{"url":"https://git.kernel.org/stable/c/32d86e048d8efedb7aa6cbbd3c36c3c435401c92"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:24.654Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"},{"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}