ipv4: netfilter: ip_tables: fix information leak to userland
authorVasiliy Kulikov <segooon@gmail.com>
Wed, 3 Nov 2010 07:45:06 +0000 (08:45 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 3 Nov 2010 07:45:06 +0000 (08:45 +0100)
commitb5f15ac4f89f84853544c934fc7a744289e95e34
tree35f89a706003f9e9343bd63fc5d560cf33a579a7
parent1a8b7a67224eb0c9dbd883b9bfc4938278bad370
ipv4: netfilter: ip_tables: fix information leak to userland

Structure ipt_getinfo is copied to userland with the field "name"
that has the last elements unitialized.  It leads to leaking of
contents of kernel stack memory.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ip_tables.c