Commit d32db3cb authored by Vamsi Krishna Brahmajosyula's avatar Vamsi Krishna Brahmajosyula Committed by Yongqiang Liu
Browse files

netfilter: nf_queue: fix socket leak

stable inclusion
from stable-v4.19.293
commit 058a52e061c535a58269c57c4229eacafbdf7de1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I85XNK
CVE: NA

--------------------------------

Removal of the sock_hold got lost when backporting commit c3873070
("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: default avatarVimal Agrawal <vimal.agrawal@sophos.com>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
[vbrahmajosyula: The fix to the backport was missed in 4.19]
Signed-off-by: default avatarVamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 0ee69eea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment