diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-11-07 13:25:45 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-11-07 13:25:45 +0000 |
commit | b3f189e0ccc9a6a7e5a6a61ac3e486a16e04ece9 (patch) | |
tree | d69a297d35ee577238c41703e1cca7c564f5bd61 /usr.bin/unvis | |
parent | c7ab36b1d9e426d7e5f3ffc3b4ddb0a9ec7a1ea2 (diff) |
Do propper kernel input validation for in_control() ioctl(2)
SIOCGIFADDR, SIOCGIFNETMASK, SIOCGIFDSTADDR, SIOCGIFBRDADDR,
SIOCSIFADDR, SIOCSIFNETMASK, SIOCSIFDSTADDR, and SIOCSIFBRDADDR.
Name in_ioctl_set_ifaddr() consistently. Use in_sa2sin() to validate
inet address. Combine if_addrlist loops and add comment. Although
netmask is not a inet address, length must be valid.
Reported-by: syzbot+5fc6da002fc4e8d994be@syzkaller.appspotmail.com
OK visa@
Diffstat (limited to 'usr.bin/unvis')
0 files changed, 0 insertions, 0 deletions