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 31, 11:39 AM
Unknown Object (File)
Sat, May 30, 9:43 PM
Unknown Object (File)
May 3 2026, 8:36 PM
Unknown Object (File)
May 3 2026, 3:40 AM
Unknown Object (File)
Apr 29 2026, 9:54 AM
Unknown Object (File)
Apr 28 2026, 9:47 AM
Unknown Object (File)
Apr 12 2026, 8:09 PM
Unknown Object (File)
Apr 10 2026, 5:25 PM
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