From: Joe Damato <joe@dama.to>
To: Eric Dumazet <edumazet@google.com>
Cc: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, eric.dumazet@gmail.com,
Jay Vosburgh <jv@jvosburgh.net>
Subject: Re: [PATCH net] bonding: alb: fix uninitialized transport header access in alb_determine_nd()
Date: Mon, 31 Aug 2026 13:14:15 -0700 [thread overview]
Message-ID: <apXgl2EwsQUWsucr@devvm20253.cco0.facebook.com> (raw)
In-Reply-To: <20260831194626.119371-1-edumazet@google.com>
On Mon, Aug 31, 2026 at 07:46:26PM +0000, Eric Dumazet wrote:
> alb_determine_nd() uses icmp6_hdr(skb) to inspect ICMPv6 headers.
> However, in xmit paths (e.g. packets sent via AF_PACKET / raw sockets
> or forwarded packets), skb->transport_header is not guaranteed to be
> initialized. While pskb_network_may_pull() ensures the packet data is
> linear starting from the network header, it does not set or adjust the
> transport header offset.
>
> Dereferencing icmp6_hdr(skb) can therefore access out-of-bounds memory.
>
> Fetch the icmp6hdr directly after ipv6hdr following pskb_network_may_pull(),
> and reload ipv6hdr in case pskb_may_pull() reallocated skb->head.
> Also remove the unused bond argument from alb_determine_nd().
>
> Fixes: 0da8aa00bfcf ("net: bonding: Add support for IPV6 ns/na to balance-alb/balance-tlb mode")
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
> Cc: Jay Vosburgh <jv@jvosburgh.net>
> ---
> drivers/net/bonding/bond_alb.c | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
Reviewed-by: Joe Damato <joe@dama.to>
next prev parent reply other threads:[~2026-08-31 20:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 19:46 [PATCH net] bonding: alb: fix uninitialized transport header access in alb_determine_nd() Eric Dumazet
2026-08-31 20:14 ` Joe Damato [this message]
2026-09-02 0:36 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=apXgl2EwsQUWsucr@devvm20253.cco0.facebook.com \
--to=joe@dama.to \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=horms@kernel.org \
--cc=jv@jvosburgh.net \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.