diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-06 03:31:07 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:17:42 -0700 |
commit | 7e8287379470a7c18153be389c9516e31ae141f3 (patch) | |
tree | 99011f2ba5d830e815c4412254aa2ca75b24f27e /net | |
parent | 42c6afea4b7a0512d2fd7c2b7fc6fa667366e315 (diff) |
netrom: Fix nr_getname() leak
commit f6b97b29513950bfbf621a83d85b6f86b39ec8db upstream.
nr_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/netrom/af_netrom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index db9e263fa62..ad72bde4f94 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -848,6 +848,7 @@ static int nr_getname(struct socket *sock, struct sockaddr *uaddr, sax->fsa_ax25.sax25_family = AF_NETROM; sax->fsa_ax25.sax25_ndigis = 1; sax->fsa_ax25.sax25_call = nr->user_addr; + memset(sax->fsa_digipeater, 0, sizeof(sax->fsa_digipeater)); sax->fsa_digipeater[0] = nr->dest_addr; *uaddr_len = sizeof(struct full_sockaddr_ax25); } else { |