Skip to content

net: Length checks for attributes within multipath routes

David Ahern netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5ipv4: Check attribute length for RTA_GATEWAY in multipath routenet/ipv4/fib_semantics.c+26 -30 repliesApplied
2/5ipv4: Check attribute length for RTA_FLOW in multipath routenet/ipv4/fib_semantics.c+14 -30 repliesApplied
3/5ipv6: Check attribute length for RTA_GATEWAY in multipath routenet/ipv6/route.c+20 -12 repliesApplied
4/5ipv6: Check attribute length for RTA_GATEWAY when deleting multipath routenet/ipv6/route.c+5 -11 replyApplied
5/5lwtunnel: Validate RTA_ENCAP_TYPE attribute lengthnet/core/lwtunnel.c net/ipv4/fib_semantics.c net/ipv6/route.c+11 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/5] net: Length checks for attributes within multipath routes

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(-)
Signature · 1 line
2.24.3 (Apple Git-128)