mbox series

[net,0/5] net: Length checks for attributes within multipath routes

Message ID 20211231003635.91219-1-dsahern@kernel.org (mailing list archive)
Headers show
Series net: Length checks for attributes within multipath routes | expand

Message

David Ahern Dec. 31, 2021, 12:36 a.m. UTC
Add length checks for attributes within a multipath route (attributes
within RTA_MULTIPATH). Motivated by the syzbot report in patch 1 and
then expanded to other attributes as noted by Ido.

David Ahern (5):
  ipv4: Check attribute length for RTA_GATEWAY in multipath route
  ipv4: Check attribute length for RTA_FLOW in multipath route
  ipv6: Check attribute length for RTA_GATEWAY in multipath route
  ipv6: Check attribute length for RTA_GATEWAY when deleting multipath
    route
  lwtunnel: Validate RTA_ENCAP_TYPE attribute is at least 2 bytes

 net/core/lwtunnel.c      |  4 ++++
 net/ipv4/fib_semantics.c | 49 +++++++++++++++++++++++++++++++++++-----
 net/ipv6/route.c         | 31 +++++++++++++++++++++++--
 3 files changed, 76 insertions(+), 8 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 31, 2021, 2:40 p.m. UTC | #1
Hello:

This series was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 30 Dec 2021 17:36:30 -0700 you wrote:
> Add length checks for attributes within a multipath route (attributes
> within RTA_MULTIPATH). Motivated by the syzbot report in patch 1 and
> then expanded to other attributes as noted by Ido.
> 
> David Ahern (5):
>   ipv4: Check attribute length for RTA_GATEWAY in multipath route
>   ipv4: Check attribute length for RTA_FLOW in multipath route
>   ipv6: Check attribute length for RTA_GATEWAY in multipath route
>   ipv6: Check attribute length for RTA_GATEWAY when deleting multipath
>     route
>   lwtunnel: Validate RTA_ENCAP_TYPE attribute is at least 2 bytes
> 
> [...]

Here is the summary with links:
  - [net,1/5] ipv4: Check attribute length for RTA_GATEWAY in multipath route
    https://git.kernel.org/netdev/net/c/7a3429bace0e
  - [net,2/5] ipv4: Check attribute length for RTA_FLOW in multipath route
    https://git.kernel.org/netdev/net/c/664b9c4b7392
  - [net,3/5] ipv6: Check attribute length for RTA_GATEWAY in multipath route
    https://git.kernel.org/netdev/net/c/4619bcf91399
  - [net,4/5] ipv6: Check attribute length for RTA_GATEWAY when deleting multipath route
    https://git.kernel.org/netdev/net/c/1ff15a710a86
  - [net,5/5] lwtunnel: Validate RTA_ENCAP_TYPE attribute length
    https://git.kernel.org/netdev/net/c/8bda81a4d400

You are awesome, thank you!