From: Jan Engelhardt Date: Thu, 4 Nov 2010 01:55:39 +0000 (-0700) Subject: netfilter: ip6_tables: fix information leak to userspace X-Git-Tag: firefly_0821_release~7613^2~3442^2~49 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cccbe5ef85284621d19e5b2b1c61cc0506bc9dee;p=firefly-linux-kernel-4.4.55.git netfilter: ip6_tables: fix information leak to userspace Signed-off-by: Jan Engelhardt Signed-off-by: David S. Miller --- diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 51df035897e7..455582384ece 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -1137,6 +1137,7 @@ static int get_info(struct net *net, void __user *user, private = &tmp; } #endif + memset(&info, 0, sizeof(info)); info.valid_hooks = t->valid_hooks; memcpy(info.hook_entry, private->hook_entry, sizeof(info.hook_entry));