{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139085","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.913Z","datePublished":"2026-11-30T13:31:26.335Z","dateUpdated":"2026-12-01T05:41:07.746Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:07.746Z"},"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()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/l2cap_sock.c"],"versions":[{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","lessThan":"6dbe2ac00eb330be99898cd390be883221d6d156","status":"affected","versionType":"git"},{"version":"ab4eedb790cae44313759b50fe47da285e2519d5","lessThan":"79ff49a72c06abdf76872dccc687e2a83c4f407f","status":"affected","versionType":"git"},{"version":"efc30877bd4bc85fefe98d80af60fafc86e5775e","status":"affected","versionType":"git"},{"version":"f87271d21dd4ee83857ca11b94e7b4952749bbae","status":"affected","versionType":"git"},{"version":"18ab6b6078fa8191ca30a3065d57bf35d5635761","status":"affected","versionType":"git"},{"version":"6.6.84","lessThan":"6.7","status":"affected","versionType":"semver"},{"version":"6.12.20","lessThan":"6.13","status":"affected","versionType":"semver"},{"version":"6.13.8","lessThan":"6.14","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/l2cap_sock.c"],"versions":[{"version":"6.14","status":"affected"},{"version":"0","lessThan":"6.14","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6dbe2ac00eb330be99898cd390be883221d6d156"},{"url":"https://git.kernel.org/stable/c/79ff49a72c06abdf76872dccc687e2a83c4f407f"}],"title":"Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()","x_generator":{"engine":"bippy-1.2.0"}}}}