CVE-2026-90092 PUBLISHED

Bluetooth: L2CAP: reject accept queue add unless BT_LISTEN

Assigner: Linux
Reserved: 11.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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

Bluetooth: L2CAP: reject accept queue add unless BT_LISTEN

New sk should not be added to parent socket accept queue after last l2cap_sock_cleanup_listen() has run in l2cap_sock_teardown_cb() and state set to BT_CLOSED, as that can result to UAF on dereferencing the dangling parent reference.

l2cap_sock_new_connection_cb() may race with parent l2cap_chan teardown, due to chan->state accessed without consistent locking:

[Task 1] [Task 2] l2cap_sock_release(parent) l2cap_connect l2cap_sock_shutdown pchan = l2cap_global_chan_by_psm l2cap_chan_lock(pchan) l2cap_chan_close l2cap_sock_teardown_cb pchan->state = BT_CLOSED l2cap_chan_unlock(pchan) ------> l2cap_chan_lock(pchan) l2cap_new_connection l2cap_sock_new_connection_cb l2cap_chan_lock(pchan) <-------- l2cap_chan_unlock(pchan) l2cap_sock_kill(parent) / bt_sk(sk)->parent dangling /

Fix by adding check for sk_state == BT_LISTEN after acquiring sk lock in l2cap_sock_new_connection_cb(). Add lock_sock() around sk_state writes where missing, to avoid data races.

Although the data races on pchan->state should be fixed too, this defensive sk_state check probably makes sense in any case.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 0c17c8832562b2aac288e89cefd0f46074f54bcb to bf61a65c6093970e3b50031c4b79ebf3bd411eba (excl.)
  • affected from 5105f3e6b2df619c635b5f6a49fac131a36c7952 to 491e4c60017969b053888029998d2a61f298986a (excl.)
  • affected from c88c185ae0a1067823661b220aeea613df2c127b to 2a3a27aaf19bf069720e024ce6fde54e6bf80df9 (excl.)
  • affected from 1810e42ff6716f320c7269d5850eca48b07b7427 to 87276dc15b559d32757a43b4415c8445fbae06c4 (excl.)
  • affected from 2ff1a41a912de8517b4482e946dd951b7d80edbf to c47339e169bf4a0a4cfabb91351471f67744c2bc (excl.)
  • affected from 2ff1a41a912de8517b4482e946dd951b7d80edbf to d4bfa78fd67929b62b02013c107973e0c5b7aa9a (excl.)
  • Version 1b1c0da227bf63479bac9982fc8d12df9aaea0fb is affected
  • Version 85426e97dc72f2088ba6d27e74cd58c3fbd43e31 is affected
  • Version a2dcf1a61d056aef15b63c6eae9441344d624389 is affected
  • affected from 6.1.175 to 6.1.188 (excl.)
  • affected from 6.6.140 to 6.6.157 (excl.)
  • affected from 6.12.88 to 6.12.110 (excl.)
  • affected from 6.18.30 to 6.18.52 (excl.)
  • affected from 5.10.258 to 5.11 (excl.)
  • affected from 5.15.209 to 5.16 (excl.)
  • affected from 7.0.7 to 7.1 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 7.1 is affected
  • unaffected from 0 to 7.1 (excl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References