]> 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)
commit6d487cfe7885c511b8cc436cf9e791f86688fff5
tree953cfe73e51e495dea8c3de3ded4a4c3226322c7
parenta8e3f9bb41c0a99eb433f81437f5adbd5aa979b8
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