]> git.karo-electronics.de Git - karo-tx-linux.git/commit
econet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849
authorPhil Blundell <philb@gnu.org>
Wed, 24 Nov 2010 19:49:19 +0000 (11:49 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:18 +0000 (12:44 -0700)
commit8db8568ebd04b53744abdb0ecdbac41a4f866523
tree4bbdb0935d80f0dedd5f4b475d970e8dc825407f
parent3302c32ab0e6bdcc9f9b4acac8c4c3c0a2fc3f02
econet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849

commit fa0e846494792e722d817b9d3d625a4ef4896c96 upstream.

Later parts of econet_sendmsg() rely on saddr != NULL, so return early
with EINVAL if NULL was passed otherwise an oops may occur.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/econet/af_econet.c