Bluetooth: L2CAP: fix race condition in l2cap_sock_shutdown()

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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().

ProductVersions
Linux Linuxab4eedb790cae44313759b50fe47da285e2519d5 to before 6dbe2ac00eb330be99898cd390be883221d6d156 Affectedab4eedb790cae44313759b50fe47da285e2519d5 to before 79ff49a72c06abdf76872dccc687e2a83c4f407f Affectedefc30877bd4bc85fefe98d80af60fafc86e5775e Affectedf87271d21dd4ee83857ca11b94e7b4952749bbae Affected18ab6b6078fa8191ca30a3065d57bf35d5635761 Affected6.6.84 to before 6.7 Affected6.12.20 to before 6.13 Affected6.13.8 to before 6.14 Affected
Linux Linux6.14 Affectedbefore 6.14 Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.