Page MenuHomeFreeBSD

Allow only IPv4 addresses in sendto() for TCP on AF_INET sockets
ClosedPublic

Authored by tuexen on May 13 2020, 10:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 3, 8:36 PM
Unknown Object (File)
Sun, May 3, 3:40 AM
Unknown Object (File)
Wed, Apr 29, 9:54 AM
Unknown Object (File)
Tue, Apr 28, 9:47 AM
Unknown Object (File)
Apr 12 2026, 8:09 PM
Unknown Object (File)
Apr 10 2026, 5:25 PM
Unknown Object (File)
Apr 10 2026, 11:49 AM
Unknown Object (File)
Apr 10 2026, 12:16 AM
Subscribers

Details

Summary

Without this patch IPv4-mapped IPv6 addresses would be accepted in sendto() on a TCP socket created for AF_INET.

This problem was found by looking at syzkaller reproducers for some other problems.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable