]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Check attribute length for RTA_FLOW in multipath route
authorDavid Ahern <dsahern@kernel.org>
Fri, 31 Dec 2021 00:36:32 +0000 (17:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2021 14:31:59 +0000 (14:31 +0000)
commitf96a7e984a7bc7f2cb9b2f245487e6abb23e62a4
tree953cfe73e51e495dea8c3de3ded4a4c3226322c7
parent775f227177853e36cc674ca22eee98310b321cde
ipv4: Check attribute length for RTA_FLOW in multipath route

Make sure RTA_FLOW is at least 4B before using.

Fixes: be8a7cf82fb5 ("[IPv4]: FIB configuration using struct fib_config")
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c