🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Eric Dumazet Fri, 13 Nov 2026 12:46
[PATCH net 0/5] net: avoid truncated transport header offsets
#15931
Author: Eric Dumazet
Date: Fri, 13 Nov 2026 12:46
35 lines
9284 bytes
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(-)

-- 
2.53.0
Re: [PATCH net 0/5] net: avoid truncated transport header offsets
#16439
Author: Justin Iurman
Date: Sat, 14 Nov 2026 20:17
37 lines
13132 bytes
On 11/13/26 13:46, Eric Dumazet wrote:
> 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(-)

For the series:

Reviewed-by: Justin Iurman <justin.iurman@gmail.com>
Re: [PATCH net 0/5] net: avoid truncated transport header offsets
#19138
Author: patchwork-bot+netdevbpf
Date: Thu, 19 Nov 2026 12:20
32 lines
9440 bytes
Hello:

This series was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Fri, 13 Nov 2026 13:46:20 +0100 you wrote:
> 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().
> 
> [...]

Here is the summary with links:
  - [net,1/5] ipv6: gro: limit the number of extension headers
    https://git.kernel.org/netdev/net/c/050f2adb6043
  - [net,2/5] ipv6: mcast: use skb_set_transport_header_careful() in ipv6_mc_check_exthdrs()
    https://git.kernel.org/netdev/net/c/425b1fe50b71
  - [net,3/5] net: openvswitch: use skb_set_transport_header_careful() in parse_ipv6hdr()
    https://git.kernel.org/netdev/net/c/b9b77e243003
  - [net,4/5] sctp: use skb_set_transport_header_careful() in sctp_v6_err()
    https://git.kernel.org/netdev/net/c/13391f1a8c58
  - [net,5/5] udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap()
    https://git.kernel.org/netdev/net/c/02f578b736f1

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads