]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Check attribute length for RTA_GATEWAY when deleting multipath route
authorDavid Ahern <dsahern@kernel.org>
Fri, 31 Dec 2021 00:36:34 +0000 (17:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2021 14:31:59 +0000 (14:31 +0000)
commit7eaa95c8311cb5eaac0213ae4357c295048c03eb
tree0b83c828bf92fc91d7f3ed852823d6eb050c24b2
parent1ce197a3a5a4e1aea258a754604091fd6b30850d
ipv6: Check attribute length for RTA_GATEWAY when deleting multipath route

Make sure RTA_GATEWAY for IPv6 multipath route has enough bytes to hold
an IPv6 address.

Fixes: c1e403a97c02 ("ipv6: fix multipath route replace error recovery")
Signed-off-by: David Ahern <dsahern@kernel.org>
Cc: Roopa Prabhu <roopa@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c