]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: ipv6: router advertisement message length should be within limits
authorEhsan Mohandesi <emohandesi@linux.microsoft.com>
Thu, 18 May 2023 18:24:38 +0000 (11:24 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 27 Jul 2023 17:39:07 +0000 (13:39 -0400)
commita29df56eab4ad7957649834c1120c69ce03115ee
treea7f4fb8491b7bb9842454d0ac772f6fff94dbbc5
parentc98c401dfb485b39c7453a4147b17cd4b8d10c67
net: ipv6: router advertisement message length should be within limits

The argument len passed to function process_ra is the length of the IPv6
router advertisement message and needs to be between 0 and MTU because
it is assigned to remaining_option_len and used as a loop variable.

Addresses-Coverity-ID: 450971 ("TAINTED_SCALAR")
Signed-off-by: Ehsan Mohandesi <emohandesi@linux.microsoft.com>
Reviewed-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
net/ndisc.c