CVE-2026-90093 PUBLISHED

Bluetooth: L2CAP: access chan->conn safely in get/setsockopt

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: access chan->conn safely in get/setsockopt

Since commit b66774b48dd9 ("Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref") l2cap_chan::conn has held reference and remains non-NULL also after the corresponding hci_conn is deleted. In this state accessing various fields eg. hci_conn::hdev is invalid, which leads to KASAN crash in l2cap_sock_setsockopt() access of conn->hcon->hdev.

Check l2cap_chan::conn.hcon corresponds to an alive hci_conn before trying to use it in l2cap_sock.c. Hold l2cap_chan_lock() in getsockopt/setsockopt to ensure it stays alive, and to avoid data races in l2cap_chan fields.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from b66774b48dd98f07254951f74ea6f513efe7ff8b to f49321c85785178214fd67f2e9b4b73d6363783b (excl.)
  • affected from b66774b48dd98f07254951f74ea6f513efe7ff8b to ca2c4c26498643f421d35ffe258fafbd3ed461c3 (excl.)
  • Version 8f90405a4a6f1f1880dc07996b47bf57c712bd8a is affected
  • Version 32d783cafb46ff3ca58e6f9fd62c9c5f35eaf26b is affected
  • Version 8922c7940bae9ce4b1736dddb6362370793835c2 is affected
  • Version 91047a4396a8b1857a6f712a90cf33ec0012b189 is affected
  • Version 0b0e2bf39cf99e458d991b9df253727e036a7d7d is affected
  • Version d3b739db5dc6f688a60d56da872fabaf65246032 is affected
  • Version 50c38d9f42a529691e4e67ea9cedf4f0bfc8d277 is affected
  • affected from 5.10.265 to 5.11 (excl.)
  • affected from 5.15.216 to 5.16 (excl.)
  • affected from 6.1.183 to 6.2 (excl.)
  • affected from 6.6.145 to 6.7 (excl.)
  • affected from 6.12.97 to 6.13 (excl.)
  • affected from 6.18.39 to 6.19 (excl.)
  • affected from 7.1.4 to 7.2 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 7.2 is affected
  • unaffected from 0 to 7.2 (excl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References