OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Full-Disclosure] Re: Linux Kernel sctp_setsockopt() Integer Overflow

From: Stefan Esser (s.essere-matters.de)
Date: Sat May 15 2004 - 17:08:50 CDT


> How did you come from the above snippet of the code to the idea that
> kmalloc(0) returns NULL?

Doesn't matter: the first thing linux's sys_setsockopt() does is
checking if optlen is < 0. It will fail in this case. So the
needed optlen is never handled down to the protocol setsockopt function.
Otherwise you would find several protocol handlers vulnerable...
f.e. IPv6...

Stefan Esser

--

--------------------------------------------------------------------------
 Stefan Esser s.essere-matters.de
 e-matters Security http://security.e-matters.de/

 GPG-Key gpg --keyserver pgp.mit.edu --recv-key 0xCF6CAE69
 Key fingerprint B418 B290 ACC0 C8E5 8292 8B72 D6B0 7704 CF6C AE69
--------------------------------------------------------------------------
 Did I help you? Consider a gift: http://wishlist.suspekt.org/
--------------------------------------------------------------------------

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html