Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Yuansheng Yang <0xbeac@gmail.com>
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH net] vxlan: fix out-of-bounds read in DF inherit path
Date: Fri, 04 Dec 2026 10:50:05 +0000	[thread overview]
Message-ID: <179638140540.1010180.149515736668739023.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261126034412.2799912-1-0xbeac@gmail.com>

Hello:

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

On Thu, 26 Nov 2026 11:44:12 +0800 you wrote:
> vxlan_xmit_one() calls skb_vlan_inet_prepare() to pull the inner network
> header into linear memory before assigning old_iph = ip_hdr(skb).  That
> helper checks skb->protocol (skipping VLAN tags) and only pulls an IPv4 or
> IPv6 header when the inner protocol is ETH_P_IP or ETH_P_IPV6.
> 
> However, the VXLAN_DF_INHERIT branch inspects eth_hdr(skb)->h_proto
> before reading old_iph->frag_off.  With AF_PACKET/SOCK_RAW, eth->h_proto
> and skb->protocol are independent: a 14-byte Ethernet frame with
> h_proto set to ETH_P_IP and sll_protocol set to ETH_P_ARP passes
> skb_vlan_inet_prepare() with only ETH_HLEN bytes pulled, leaving old_iph
> pointing at skb->tail.  Reading old_iph->frag_off then accesses 6 bytes
> past skb->tail in uninitialized tailroom and copies one bit into the
> outer IPv4 DF bit.
> 
> [...]

Here is the summary with links:
  - [net] vxlan: fix out-of-bounds read in DF inherit path
    https://git.kernel.org/netdev/net-next/c/c4118a041fd7

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



      reply	other threads:[~2026-12-04 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  3:44 [PATCH net] vxlan: fix out-of-bounds read in DF inherit path Yuansheng Yang
2026-12-04 10:50 ` patchwork-bot+netdevbpf [this message]

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=179638140540.1010180.149515736668739023.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=0xbeac@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox