# CVE-2026-139085: Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:31:26.335Z
- Modified: 2026-12-01T06:17:34.493Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()

l2cap_sock_shutdown() has the race condition

    [Task 1]                      [Task 2]
    l2cap_sock_shutdown           l2cap_sock_connect
      l2cap_chan_lock               l2cap_chan_connect
      conn = ... /* == NULL*/
      l2cap_chan_unlock ------------> l2cap_chan_lock
      if (conn) /* false */
                                      __l2cap_chan_add(conn, chan)
      l2cap_chan_lock <-------------- l2cap_chan_unlock
      l2cap_chan_close /* chan->conn->lock not held! */

conn->lock protects conn->chan_l and is not properly held here.

Use the l2cap_chan_close_unlocked() helper that ensures conn->lock is
held for l2cap_chan_close().

(As written by CVE List.)

## Affected

- Linux Linux: from ab4eedb790cae44313759b50fe47da285e2519d5 before 6dbe2ac00eb330be99898cd390be883221d6d156; from ab4eedb790cae44313759b50fe47da285e2519d5 before 79ff49a72c06abdf76872dccc687e2a83c4f407f; efc30877bd4bc85fefe98d80af60fafc86e5775e; f87271d21dd4ee83857ca11b94e7b4952749bbae; 18ab6b6078fa8191ca30a3065d57bf35d5635761; from 6.6.84 before 6.7; from 6.12.20 before 6.13; from 6.13.8 before 6.14; 6.14 (not affected: before 6.14; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/6dbe2ac00eb330be99898cd390be883221d6d156>
- <https://git.kernel.org/stable/c/79ff49a72c06abdf76872dccc687e2a83c4f407f>

## Sources

- CVE List: [CVE-2026-139085](https://www.cve.org/CVERecord?id=CVE-2026-139085), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139085](https://nvd.nist.gov/vuln/detail/CVE-2026-139085), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139085 · Whole record: https://cve.day/CVE-2026-139085.json · Rebuilt by cve.day 2026-12-01T06:32:21.116Z
