From: Eric Dumazet Date: Thu, 6 Aug 2009 03:48:36 +0000 (+0000) Subject: econet: Fix econet_getname() leak X-Git-Tag: v2.6.27.32~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8f25b9d9c723acfc9666afe5caf1128f18da8613;p=karo-tx-linux.git econet: Fix econet_getname() leak commit 80922bbb12a105f858a8f0abb879cb4302d0ecaa upstream. econet_getname() can leak kernel memory to user. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index 8789d2bb1b06..9aae86ff25a4 100644 --- a/net/econet/af_econet.c +++ b/net/econet/af_econet.c @@ -520,6 +520,7 @@ static int econet_getname(struct socket *sock, struct sockaddr *uaddr, if (peer) return -EOPNOTSUPP; + memset(sec, 0, sizeof(*sec)); mutex_lock(&econet_mutex); sk = sock->sk;