netfilter: nf_tables: initialize registers in nft_do_chain()
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 Mar 2022 11:04:42 +0000 (12:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2022 07:59:54 +0000 (09:59 +0200)
commit64f24c76dd0ce53d0fa3a0bfb9aeea507c769485
tree27d50e61982231bc35f12894631daf0ea8b72a80
parentdf53a515b745caec028fe6777d8c0a3c14201eaf
netfilter: nf_tables: initialize registers in nft_do_chain()

commit 4c905f6740a365464e91467aa50916555b28213d upstream.

Initialize registers to avoid stack leak into userspace.

Fixes: 96518518cc41 ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_core.c