projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d817d29
)
ipv4: netfilter: arp_tables: fix information leak to userland
author
Vasiliy Kulikov
<
[email protected]
>
Wed, 3 Nov 2010 07:44:12 +0000
(08:44 +0100)
committer
Patrick McHardy
<
[email protected]
>
Wed, 3 Nov 2010 07:44:12 +0000
(08:44 +0100)
Structure arpt_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 <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
net/ipv4/netfilter/arp_tables.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/arp_tables.c
b/net/ipv4/netfilter/arp_tables.c
index 3cad2591ace0c15fdad446ab528b0f40c2624d09..3fac340a28d5394bd95bd649d5bcee3dcb3d24df 100644
(file)
--- a/
net/ipv4/netfilter/arp_tables.c
+++ b/
net/ipv4/netfilter/arp_tables.c
@@
-927,6
+927,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));