In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Keep recvmsg from resuming a closed channel Reading buffered ERTM data after ACL link loss can clear local busy and send a supervisory frame after l2cap_conn_del() has destroyed the HCI channel, which oopses on a NULL pointer in hci_send_acl(). The socket still owns its L2CAP channel, so its lifetime does not protect the underlying HCI channel. Require BT_CONNECTED before clearing local busy in recvmsg. The socket lock already held here serializes this check and send with teardown, which closes the socket before the HCI channel is destroyed. Continue to allow buffered data to be read after disconnection. AI assistance was used.
https://git.kernel.org/stable/c/a9711cd9090b88b0309b825a7e1a8a414b1f841d
https://git.kernel.org/stable/c/87cc3e632eb9665d5257e9c9fbf2327639d8908d
https://git.kernel.org/stable/c/1f2ac56137c51be0601e18a163d817e02a15913f
https://git.kernel.org/stable/c/08f9605b6b896be80bba555d32df54786c80d44d