]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nf_queue: fix socket leak
authorVamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com>
Sat, 26 Aug 2023 06:50:56 +0000 (06:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:31:56 +0000 (16:31 +0200)
commit058a52e061c535a58269c57c4229eacafbdf7de1
tree21783bbf9e60b0cfd869279a5560aee2428a1c4b
parent84d90fb72a053c034b018fcc3cfaa6f606faf1c6
netfilter: nf_queue: fix socket leak

Removal of the sock_hold got lost when backporting commit c3873070247d
("netfilter: nf_queue: fix possible use-after-free") to 4.19

Fixes: 34dc4a6a7f26 ("netfilter: nf_queue: fix possible use-after-free") in 4.19
Fixed in 4.14 with
https://lore.kernel.org/all/20221024112958.115275475@linuxfoundation.org/

Signed-off-by: Vimal Agrawal <vimal.agrawal@sophos.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
[vbrahmajosyula: The fix to the backport was missed in 4.19]
Signed-off-by: Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_queue.c