{"id":"CVE-2026-139085","state":"PUBLISHED","title":"Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()\n\nl2cap_sock_shutdown() has the race condition\n\n    [Task 1]                      [Task 2]\n    l2cap_sock_shutdown           l2cap_sock_connect\n      l2cap_chan_lock               l2cap_chan_connect\n      conn = ... /* == NULL*/\n      l2cap_chan_unlock ------------> l2cap_chan_lock\n      if (conn) /* false */\n                                      __l2cap_chan_add(conn, chan)\n      l2cap_chan_lock <-------------- l2cap_chan_unlock\n      l2cap_chan_close /* chan->conn->lock not held! */\n\nconn->lock protects conn->chan_l and is not properly held here.\n\nUse the l2cap_chan_close_unlocked() helper that ensures conn->lock is\nheld for l2cap_chan_close().","publishedAt":"2026-11-30T13:31:26.335Z","updatedAt":"2026-11-30T13:31:26.335Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"6dbe2ac00eb330be99898cd390be883221d6d156","versionType":"git"},{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"79ff49a72c06abdf76872dccc687e2a83c4f407f","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/6dbe2ac00eb330be99898cd390be883221d6d156","https://git.kernel.org/stable/c/79ff49a72c06abdf76872dccc687e2a83c4f407f"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139085.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139085","state":"PUBLISHED","datePublished":"2026-11-30T13:31:26.335Z","dateUpdated":"2026-11-30T13:31:26.335Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.913Z"},"containers":{"cna":{"title":"Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()\n\nl2cap_sock_shutdown() has the race condition\n\n    [Task 1]                      [Task 2]\n    l2cap_sock_shutdown           l2cap_sock_connect\n      l2cap_chan_lock               l2cap_chan_connect\n      conn = ... /* == NULL*/\n      l2cap_chan_unlock ------------> l2cap_chan_lock\n      if (conn) /* false */\n                                      __l2cap_chan_add(conn, chan)\n      l2cap_chan_lock <-------------- l2cap_chan_unlock\n      l2cap_chan_close /* chan->conn->lock not held! */\n\nconn->lock protects conn->chan_l and is not properly held here.\n\nUse the l2cap_chan_close_unlocked() helper that ensures conn->lock is\nheld for l2cap_chan_close()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"6dbe2ac00eb330be99898cd390be883221d6d156","versionType":"git"},{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","status":"affected","lessThan":"79ff49a72c06abdf76872dccc687e2a83c4f407f","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/6dbe2ac00eb330be99898cd390be883221d6d156"},{"url":"https://git.kernel.org/stable/c/79ff49a72c06abdf76872dccc687e2a83c4f407f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:26.335Z"},"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"}}}}}