]> git.hungrycats.org Git - linux/commit
vxlan: Fix potential null-ptr-deref in vxlan_gro_prepare_receive().
authorKuniyuki Iwashima <kuniyu@google.com>
Sat, 2 May 2026 03:12:59 +0000 (03:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 May 2026 00:47:04 +0000 (17:47 -0700)
commit30a45c0bffdd62350261e2f2689fdba426a33578
tree83393fb9eab908c58b78f78353cfd71710a0dfc7
parentaf3f903fbb70eced6394770cd704951767394015
vxlan: Fix potential null-ptr-deref in vxlan_gro_prepare_receive().

udp_tunnel_sock_release() could set sk->sk_user_data to NULL
while vxlan_gro_prepare_receive() is running.

Let's check if rcu_dereference_sk_user_data() is NULL after
skb_gro_remcsum_init().

Fixes: 5602c48cf875 ("vxlan: change vxlan to use UDP socket GRO")
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260502031401.3557229-7-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c