Re: [PATCH 1/2] nfc: llcp: Fix use-after-free in llcp_sock_release()

From: Jakub Kicinski

Date: Fri May 01 2026 - 19:28:54 EST


On Wed, 29 Apr 2026 13:40:41 +0000 Lee Jones wrote:
> llcp_sock_release() unconditionally unlinks the socket from the local
> sockets list. However, if the socket is still in connecting state, it
> is on the connecting list.
>
> Fix this by checking the socket state and unlinking from the correct list.
>
> Fixes: b4011239a08e ("NFC: llcp: Fix non blocking sockets connections")
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>

Adding David H and dropping from netdev's patchwork..