HomeFreeBSD

Improve input validation for raw IPv4 socket using the IP_HDRINCL

Description

Improve input validation for raw IPv4 socket using the IP_HDRINCL
option.

This issue was found by running syzkaller on OpenBSD.
Greg Steuck made me aware that the problem might also exist on FreeBSD.

Reported by: Greg Steuck
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18834

Details

Provenance
tuexenAuthored on
Differential Revision
D18834: Check IPv4 options when using IP_HDRINCL socket option on SOCK_RAW sockets
Parents
rS344047: MFC r343772, r343867
Branches
Unknown
Tags
Unknown