Re: [PATCH net] geneve: fix out-of-bounds read in the DF inherit path
From: patchwork-bot+netdevbpf
Date: Fri Dec 04 2026 - 05:50:20 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Wed, 25 Nov 2026 16:55:24 -0700 you wrote:
> The GENEVE_DF_INHERIT branch of geneve_xmit_skb() decides the inner
> packet is IPv4 from skb_eth_hdr(skb)->h_proto and then reads
> ip_hdr(skb)->frag_off, but skb_vlan_inet_prepare() only pulled an IPv4
> header if skb_protocol(skb, true) is ETH_P_IP. For AF_PACKET/SOCK_RAW the
> two are independent: a 14-byte frame with h_proto 0x0800 sent with
> sll_protocol ETH_P_ARP passes the pull with only ETH_HLEN and the DF test
> reads 6 bytes past skb->tail. The stale tailroom bit is copied into the
> outer IPv4 DF bit on the wire, leaking one bit of slab memory per packet
> to a user holding CAP_NET_ADMIN/CAP_NET_RAW in a user namespace. With
> inner_proto_inherit there is no inner Ethernet header at all, so the
> h_proto test is wrong there too.
>
> [...]
Here is the summary with links:
- [net] geneve: fix out-of-bounds read in the DF inherit path
https://git.kernel.org/netdev/net-next/c/e5ba10df689a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html