Skip to content

Commit

Permalink
appletalk: fix atalk_getname() leak
Browse files Browse the repository at this point in the history
atalk_getname() can leak 8 bytes of kernel memory to user

Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Eric Dumazet authored and davem330 committed Aug 6, 2009
1 parent f6b97b2 commit 3d39247
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/appletalk/ddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ static int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
return -ENOBUFS;

*uaddr_len = sizeof(struct sockaddr_at);
memset(&sat.sat_zero, 0, sizeof(sat.sat_zero));

if (peer) {
if (sk->sk_state != TCP_ESTABLISHED)
Expand Down

0 comments on commit 3d39247

Please sign in to comment.