diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-06 03:55:04 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:17:38 -0700 |
commit | 54cbd776461dabc08ee378249c93185b1f4a33e1 (patch) | |
tree | 54cab7a1b8d7f92cf8be0dc14d5f557a8d12bae4 /net | |
parent | 8f25b9d9c723acfc9666afe5caf1128f18da8613 (diff) | |
download | lwn-54cbd776461dabc08ee378249c93185b1f4a33e1.tar.gz lwn-54cbd776461dabc08ee378249c93185b1f4a33e1.zip |
irda: Fix irda_getname() leak
commit 09384dfc76e526c3993c09c42e016372dc9dd22c upstream.
irda_getname() can leak kernel memory to user.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/irda/af_irda.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 3eb5bcc75f99..b28409cf3fa0 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c @@ -714,6 +714,7 @@ static int irda_getname(struct socket *sock, struct sockaddr *uaddr, struct sock *sk = sock->sk; struct irda_sock *self = irda_sk(sk); + memset(&saddr, 0, sizeof(saddr)); if (peer) { if (sk->sk_state != TCP_ESTABLISHED) return -ENOTCONN; |