net: avoid truncated transport header offsets
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | ipv6: gro: limit the number of extension headersnet/ | +8 | 3 replies | Applied |
| 2/5 | ipv6: mcast: use skb_set_transport_header_careful() in ipv6_mc_check_exthdrs()net/ | +2 | 1 reply | Applied |
| 3/5 | net: openvswitch: use skb_set_transport_header_careful() in parse_ipv6hdr()net/ | +2 | 2 replies | Applied |
| 4/5 | sctp: use skb_set_transport_header_careful() in sctp_v6_err()net/ | +4 | 2 replies | Applied |
| 5/5 | udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap()net/ | +4 | 1 reply | Applied |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Hyunwoo Kim | Justin Iurman | Stefano Brivio | Ido Schimmel | Ilya Maximets | Aaron Conole |
|---|---|---|---|---|---|---|
| Series | R-b | |||||
| 1/5 | T-b | R-b | R-b | |||
| 2/5 | R-b | |||||
| 3/5 | R-b | R-b | ||||
| 4/5 | ||||||
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH net 0/5] net: avoid truncated transport header offsets
skb->transport_header is a 16-bit offset from skb->head, and U16_MAX is reserved as the "not set" value. skb_set_transport_header() silently truncates an offset that does not fit.
The first patch addresses the report from Hyunwoo Kim, by applying the IP6_MAX_EXT_HDRS_CNT limit to ipv6_gro_pull_exthdrs().
The four following patches convert places storing an offset derived from an IPv6 extension header walk to skb_set_transport_header_careful(). A single chain being bounded to 24576 bytes, these need a large skb->data - skb->head to overflow, for instance after nested decapsulations. They are hardening, no reproducer was written.
The same change for nf_ct_frag6_gather() is sent separately to the netfilter tree.
Eric Dumazet (5):
ipv6: gro: limit the number of extension headers
ipv6: mcast: use skb_set_transport_header_careful() in
ipv6_mc_check_exthdrs()
net: openvswitch: use skb_set_transport_header_careful() in
parse_ipv6hdr() sctp: use skb_set_transport_header_careful() in sctp_v6_err()
udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap()
net/ipv6/ip6_offload.c | 8 ++++++++ net/ipv6/mcast_snoop.c | 3 ++- net/ipv6/udp.c | 7 ++++--- net/openvswitch/flow.c | 3 ++- net/sctp/ipv6.c | 5 ++++- 5 files changed, 20 insertions(+), 6 deletions(-)
Signature · 1 line
2.53.0