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)
Feb 15 2024, 9:43 AM
Unknown Object (File)
Dec 20 2023, 3:45 AM
Unknown Object (File)
Dec 19 2023, 5:11 PM
Unknown Object (File)
Dec 12 2023, 8:03 PM
Unknown Object (File)
Nov 14 2023, 11:58 PM
Unknown Object (File)
Oct 18 2023, 1:05 PM
Unknown Object (File)
Aug 26 2023, 9:50 AM
Unknown Object (File)
Jul 18 2023, 4:03 AM

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