opnsense-src/usr.sbin/rtsold
Mark Johnston e4bdf7ac2a rtsold: Fix validation of RDNSS options
The header specifies the size of the option in multiples of eight bytes.
The option consists of an eight-byte header followed by one or more IPv6
addresses, so the option is invalid if the size is not equal to 1+2n for
some n>0.  Check this.

The bug can cause random stack data to be formatted as an IPv6 address
and passed to resolvconf(8), but a host able to trigger the bug may also
specify arbitrary addresses this way.

Reported by:	Q C <cq674350529@gmail.com>
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 1af332a7d8)
2021-03-24 09:27:59 -04:00
..
cap_llflags.c rtsold: Fix bugs reported by Coverity 2020-12-02 16:46:45 +00:00
cap_script.c rtsold: Remove an incorrect __unused annotation 2020-10-23 14:56:17 +00:00
cap_sendmsg.c Capsicumize rtsol(8) and rtsold(8). 2019-01-05 16:05:39 +00:00
dump.c rtsold: Fix bugs reported by Coverity 2020-12-02 16:46:45 +00:00
if.c rtsold: Fix bugs reported by Coverity 2020-12-02 16:46:45 +00:00
Makefile Capsicumize rtsol(8) and rtsold(8). 2019-01-05 16:05:39 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
rtsock.c rtsold: Fix bugs reported by Coverity 2020-12-02 16:46:45 +00:00
rtsol.c rtsold: Fix validation of RDNSS options 2021-03-24 09:27:59 -04:00
rtsold.8 rtsol(d): add script for "M bit" 2020-08-25 16:09:23 +00:00
rtsold.c fix casper initialization for setting scripts. 2020-11-27 18:40:51 +00:00
rtsold.h rtsol(d): add script for "M bit" 2020-08-25 16:09:23 +00:00