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 Jul 30 2020, 5:43 PM
Parents
rG848f8effdd69: vfs: inline vops if there are no pre/post associated calls
Branches
Unknown
Tags
Unknown

Event Timeline