Page MenuHomeFreeBSD

rtsock: fix buffer overrun (sockaddr misuse)
ClosedPublic

Authored by takahiro.kurosawa_gmail.com on May 12 2022, 11:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 1:08 PM
Unknown Object (File)
Sun, Nov 10, 12:16 PM
Unknown Object (File)
Sun, Nov 10, 11:42 AM
Unknown Object (File)
Sun, Nov 10, 9:27 AM
Unknown Object (File)
Sun, Nov 10, 9:11 AM
Unknown Object (File)
Sun, Nov 10, 6:14 AM
Unknown Object (File)
Oct 16 2024, 6:50 AM
Unknown Object (File)
Oct 1 2024, 7:49 PM

Details

Summary

struct sockaddr is not sufficient for buffer that can hold any
sockaddr_* structure. struct sockaddr_storage should be used.

Test Plan

ifconfig epair create
ifconfig epair0a inet6 add 2001:db8::1 up
ndp -s 2001:db8::2 02:86:98:2e:96:0b proxy # this triggers kernel stack overflow

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45553
Build 42441: arc lint + arc unit