]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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:33:31 +0000 (13:33 -0800)
commit3ca62aac185300f80dad0e412c1033d2ef8a1b44
treea39b83f14608191f848af26ecb0ae486ed558ff5
parent6e551814bc3b7a56bb764dfad3567599c1ca93cc
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