Re: [syzbot] [PATCH] Test for aea6bf908d73

From: syzbot
Date: Thu Nov 09 2023 - 09:14:21 EST


For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx.

***

Subject: [PATCH] Test for aea6bf908d73
Author: eadavis@xxxxxx

please test uaf in nfc_alloc_send_skb

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git aea6bf908d73

diff --git a/net/nfc/llcp_core.c b/net/nfc/llcp_core.c
index 1dac28136e6a..4959163d8dc5 100644
--- a/net/nfc/llcp_core.c
+++ b/net/nfc/llcp_core.c
@@ -113,6 +113,7 @@ static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool device,
bh_unlock_sock(sk);

sk_del_node_init(sk);
+ llcp_sock->local = NULL;
}

write_unlock(&local->sockets.lock);
--
2.25.1