]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: amend the fix for SO_BSDCOMPAT gsopt infoleak
authorEugene Teo <eugeneteo@kernel.sg>
Mon, 23 Feb 2009 23:38:41 +0000 (15:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:52:41 +0000 (17:52 -0700)
commita6fa7047cf5cb20353178e9b31c3105f13461b54
tree54eb805c2301f10c41df3fc1e3fc8125d9f6783a
parentb82b59ae48f1a634456fbaff15bb33b52f581ac7
net: amend the fix for SO_BSDCOMPAT gsopt infoleak

[ Upstream commit 50fee1dec5d71b8a14c1b82f2f42e16adc227f8b ]

The fix for CVE-2009-0676 (upstream commit df0bca04) is incomplete. Note
that the same problem of leaking kernel memory will reappear if someone
on some architecture uses struct timeval with some internal padding (for
example tv_sec 64-bit and tv_usec 32-bit) --- then, you are going to
leak the padded bytes to userspace.

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/sock.c