]> 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>
Thu, 9 Dec 2010 21:27:12 +0000 (13:27 -0800)
commit72013721bd096ae0bb46cec1db71d4161db32eac
tree0e541c528d34d7b5bd675c3733e0d09d298a55a8
parent04c54f3ac587680e7c1bb721843af4c23548faa0
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