CVE-2026-53358

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

State
Published
Severity
8.8 High
Published
Jul 2, 2026
Updated
Oct 19, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

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

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 3634cbdc2eb414b69ffa752ddbe5e0458518e321Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before e1c100e2d61bd8c718b7d91fe3e050780a9bf72dAffected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before deb8493a8fa599f6c95e2465b12bfdfb7f94a1d9Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 89dec92041717b027216e110599e4f6d6c921b79Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 50dfec218808b148ab4247b1858031b7a32015c5Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 859d3ace791ed878ae9ba5522c7844d960da8f88Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 7555fd885a0603f50e49a655850a1f2bd8a25398Affected
  • 3df91ea20e744344100b10ae69a17211fcf5b207 to before 8c8e620467a7b51562dbcefbd1f09f288d7d710dAffected
LinuxLinux
  • 3.4Affected
  • before 3.4Not affected
  • 5.10.259 through 5.10.*Not affected
  • 5.15.210 through 5.15.*Not affected
  • 6.1.176 through 6.1.*Not affected
  • 6.6.143 through 6.6.*Not affected
  • 6.12.93 through 6.12.*Not affected
  • 6.18.35 through 6.18.*Not affected
  • 7.0.12 through 7.0.*Not affected
  • 7.1 and laterNot affected

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.