浏览代码

netfilter: ip6_tables: fix information leak to userspace

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Jan Engelhardt 15 年之前
父节点
当前提交
cccbe5ef85
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/ipv6/netfilter/ip6_tables.c

+ 1 - 0
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));