Message ID | alpine.LNX.2.01.1011032355020.31351@obet.zrqbmnf.qr |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Jan Engelhardt <jengelh@medozas.de> Date: Wed, 3 Nov 2010 23:55:58 +0100 (CET) > netfilter: ip6_tables: fix information leak to userspace > > Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Good catch, applied, thanks Jan. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index c683e9e..d13f893 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));