7.8high
Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 1 more Not affected: before 6.14, from 7.3.6 up to 7.3.*, from 7.4-rc1 up to * | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139085 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-139085 changed 2026-12-01 | Public domain |