CVE-2026-53358

ANALYSIS PENDING

Bluetooth: L2CAP: use chan timer to close channels in cleanup_listen()

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: use chan timer to close channels in cleanup_listen() l2cap_chan_close() removes the channel from conn->chan_l, which must be done under conn->lock. cleanup_listen() runs under the parent sk_lock, so acquiring conn->lock would invert the established conn->lock -> chan->lock -> sk_lock order. Instead of calling l2cap_chan_close() directly, schedule l2cap_chan_timeout with delay 0 to close the channel asynchronously. The timeout handler already acquires conn->lock and chan->lock in the correct order. The timer is only armed when chan->conn is still set: if it is already NULL, l2cap_conn_del() has already processed this channel (l2cap_chan_del + l2cap_sock_teardown_cb + l2cap_sock_close_cb), so there is nothing left to do. If l2cap_conn_del() races in after the timer is armed, __clear_chan_timer() inside l2cap_chan_del() cancels it; if the timer has already fired, the handler returns harmlessly because chan->conn was cleared.

Scores

EPSS 0.0016
EPSS Percentile 6.0%

Details

Status published
Products (25)
linux/Kernel 3.4.0 - 5.10.259linux
linux/Kernel 5.11.0 - 5.15.210linux
linux/Kernel 5.16.0 - 6.1.176linux
linux/Kernel 6.13.0 - 6.18.35linux
linux/Kernel 6.19.0 - 7.0.12linux
linux/Kernel 6.2.0 - 6.6.143linux
linux/Kernel 6.7.0 - 6.12.93linux
Linux/Linux < 3.4
Linux/Linux 3.4
Linux/Linux 3df91ea20e744344100b10ae69a17211fcf5b207 - 3634cbdc2eb414b69ffa752ddbe5e0458518e321
... and 15 more
Published Jul 02, 2026
Tracked Since Jul 02, 2026