HomeFreeBSD

Reject packets larger than IP_MAXPACKET in linux_sendto() for sockets

Description

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

Details

Provenance
David Schultz <das@FreeBSD.org>Authored on Mar 23 2005, 8:28 AM
Parents
rGf2c7668eb158: Make ps_nargvstr and ps_nenvstr unsigned. This fixes an input
Branches
Unknown
Tags
Unknown

Event Timeline