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, Oct 19, 9:21 AM
Unknown Object (File)
Tue, Oct 14, 1:33 AM
Unknown Object (File)
Sep 18 2025, 12:12 PM
Unknown Object (File)
Sep 15 2025, 1:57 PM
Unknown Object (File)
Sep 5 2025, 5:50 AM
Unknown Object (File)
Aug 22 2025, 7:24 AM
Unknown Object (File)
Aug 13 2025, 3:25 AM
Unknown Object (File)
Jul 21 2025, 12:22 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