]> git.karo-electronics.de Git - karo-tx-linux.git/commit
can: Fix raw_getname() leak
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 6 Aug 2009 20:27:04 +0000 (20:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:34:07 +0000 (20:34 -0700)
commit3020cf2a8341ebe53d689826fb569f309286e654
tree3fd66c6bbbe5e1820fe1db123f99e037f446aba5
parent27a473ee7017dabac9073d0c57db72bd680409a8
can: Fix raw_getname() leak

commit e84b90ae5eb3c112d1f208964df1d8156a538289 upstream.

raw_getname() can leak 10 bytes of kernel memory to user

(two bytes hole between can_family and can_ifindex,
8 bytes at the end of sockaddr_can structure)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/can/raw.c