]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reject packets larger than IP_MAXPACKET in linux_sendto() for sockets
authordas <das@FreeBSD.org>
Wed, 23 Mar 2005 08:28:00 +0000 (08:28 +0000)
committerdas <das@FreeBSD.org>
Wed, 23 Mar 2005 08:28:00 +0000 (08:28 +0000)
commitfbf7a9b2eeca945d9a6947410d6fa2b1c321d366
treeb3ed4d07a00684ce74c0a697ddaf060e2646caae
parenta556c42bd80040034647976d365ac3e4b064bacb
Reject packets larger than IP_MAXPACKET in linux_sendto() for sockets
with the IP_HDRINCL option set.  Without this change, a Linux process
with access to a raw socket could cause a kernel panic.  Raw sockets
must be created by root, and are generally not consigned to untrusted
applications; hence, the security implications of this bug are
minimal.  I believe this only affects 6-CURRENT on or after 2005-01-30.

Found by: Coverity Prevent analysis tool
Security: Local DOS
sys/compat/linux/linux_socket.c