HomeFreeBSD

ip6_output(): Check the return value of in6_getlinkifnet().

Description

ip6_output(): Check the return value of in6_getlinkifnet().

If the destination address has an embedded scope ID, make sure that it
corresponds to a valid ifnet before proceeding. Otherwise a sendto()
with a bogus link-local address can trigger a NULL pointer dereference.

Reported by: syzkaller
Reviewed by: ae
Fixes: r358572
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25887

Details

Provenance
markjAuthored on
Reviewer
ae
Differential Revision
D25887: ip6_output(): Check the return value of in6_getlinkifnet().
Parents
rS363709: MFC r363438:
Branches
Unknown
Tags
Unknown