🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26889

Re: [PATCH net] geneve: fix out-of-bounds read in the DF inherit path

#26889
From: patchwork-bot+netdevbpf
Date: Fri, 04 Dec 2026 10:50
29 lines
9089 bytes
Hello:

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

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
Technical Details
Message-ID: <179638140415.1010180.4536316909640870809.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377269-linux-kernel-netdev=dewy.ru
References: <20261125235524.4139551-1-xmei5@asu.edu>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377269-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] geneve: fix out-of-bounds read in the DF inherit path
Date: Fri, 04 Dec 2026 10:50:04 +0000
Organization: Usenet Network
Message-ID: <179638140415.1010180.4536316909640870809.git-patchwork-notify@kernel.org>
References: <20261125235524.4139551-1-xmei5@asu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2744433"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:L/Cj9qL61FfSe6QewkscjeG7RLw= sha256:kAng/NNNp9vP/m/+nr33cb8ET2jJFWZHDSlv9FRuHQA=
	sha1:9hHxtPKZV6poprGIlGbMa/yY6sQ= sha256:URwKP231E/fq6Q4MBw5ZKZrzOWtHhw3OMczy3TiLYzo=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9F96A117BB4; Fri,  4 Dec 2026 13:50:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.642
X-Spam-Status: No, score=-3.642 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id HILiDP_dkuaE;
	Fri,  4 Dec 2026 13:50:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-377269-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 852FB117B98; Fri,  4 Dec 2026 13:50:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 5520B28A89; Fri,  4 Dec 2026 10:50:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796381411;
	b=GVSGhrlQDGNEfV+t0PhtWZbF1vlD1xCD5aQ8jMnY3gLVXm8nWMhY/CXSXaJXQj/ZLXF7
	 Ej/TYbMZZTk4h6qxayKMw+Ups9GH2oMESgMIdC+UcG6TA+u4e3vpH/k+5NfxYRxbxJovi
	 3Szs51lHsffE/GbHxdttuJhgQC8JyFpnr8PXDS5rGnbQXGOnOlOGs9C43Ve0SI8BUDckH
	 DFVkDtBeZ3gKGkAkiSr0QMixbtCEcEh+gTfm8pC93f7rtN1VXsX0MC/Sko5dO9OlSkgLm
	 nxt9azsOwN62AN8J8WIevR+hviI5yhXHXdxTyv94vq+fKHPlfCJcaOqRbKR3vjmgvOA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796381411;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=/yYz3PWAH7C463TnTebb8vRlrHi0yEn8oyozm/y5lw4=;
	b=0+vYGHOsuDx1vtcdhqfdJXsLxP04WMG66GcIQl3ZuRMDdZpZIQujU/2KRm7CsLIw1TFS
	 GB2AMWZm5CvV69fQYpD+hPPZNT9iN7DsOzLOM+dGkHzFf7hziRgnhFZUEgE7aDllqEml9
	 gK4/RqN+RBKxbybUqx9KPCiVSHtw5ArJjjokWSpOEQpI1llm1gY8orbFwNzHgp7dhbaMR
	 z9x35uGIs89aslHamjj5W/v/LUrHGtBpRBA/6e+FAjNZ0XThtgC1grXOXST6KwPdEusrk
	 bV2xmUZD5DV80bNOk38b8xxKD3qZA1znjIBPFuzLEzRTluouhqBx/wzv5RB124Z1p0Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="SpydshQ/";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 754AC606A683;
	Fri,  4 Dec 2026 10:50:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SpydshQ/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796381405;
	b=xaGPD3TjyliP4U9UZgOfOYcpG853aXLGdgAZCab2F4NPR695vJbqzuiUuPKJBb5IqzHI
	 dPmThzZ7Wpy1t6OaYDrZ+YylKQA/meb2CzUEllmHwFal+z7Fu6ykg0wAWTbN6U134gR/L
	 S1y6nJPYqOyB/vNRFEQ/h1wqFjDFdoKa3GkFCl0vZw1pnp26RQr9xBCuYsW54iIEA0iBb
	 EemQq0eCDT0d+ZmeFkLHNaN1MJyEVECE48VUjtwfSN5/Y+GA6v4nlXVN0nNNgjwOmik+9
	 lkONQnvYV+E3Bir57QvvWJFbvjvJx8e19Lh2uD5HQjhosAxAu6tL8avEJFjv4neQJhQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796381405;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=/yYz3PWAH7C463TnTebb8vRlrHi0yEn8oyozm/y5lw4=;
	b=VD5NYN5EGZ6dN6lCQAC2nsdq94KhwsoyY6ZokX7vvBXg0uQjXLPzl+PbEHib9qLso8/j
	 Yw8l/ggBrl5+RV02/I3Nv7SqavKz2b63kdAm6RkFKkxdh1dt33l0XKnVJDBIuzPcYJiCb
	 W6eVuzRp+xNql4e6JdeOMqHoA3FficH+7zMjj0OYVqeqARNcFDQdikCd7t8idH/9Ej/fH
	 cDryoTP6fu9cBukLpVusSZWklFy0OIUYocjAmKk7RLYeYrbZjcMnZnUBtMXFpmvT2LruM
	 F2Ipo4Gz5eNp5/XsXE1npmcv/mHtvzR21gGhX3OIO+exu+rh7z4EmeUQo+/Wnd3Es5A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="SpydshQ/";
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93CCE606A333;
	Fri,  4 Dec 2026 10:50:05 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 637FB1F00935;
	Fri,  4 Dec 2026 10:50:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796381405;
	bh=/yYz3PWAH7C463TnTebb8vRlrHi0yEn8oyozm/y5lw4=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=SpydshQ/5wS8GzGW72PkS43WRMvsn+2EnOoVCDIqRKp59vlVNvZG4K8xWsTP/Rs+d
	 CQ11N4u2kLdhuK7DgqGYUdthRCsirNtoCA3Wj613afMUKQfu6tj15AWc+FZwyHCO6U
	 CK0UGxBYRX1oLL+3OOvOHNDfitsxn39ENCrHpaSDJpVQbYYzyGn82YUdSOOL+iKaka
	 wtsxE82w7AbMDbN7IUiOL9txY1BmVdopldE5OaMlXxp9VfWuNqFylteySBDc6vmVrq
	 WOj2fqA6Ppo/K1F4xpo2xPm+oOUHjiMktkmJTKVmOKpqz/AQdZ2VJ9wDJfZetdhQXK
	 RAaBleHi6UJEw==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 59BDF3808236;
	Fri,  4 Dec 2026 10:50:05 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261125235524.4139551-1-xmei5@asu.edu>
X-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,
 co+80332c538f1d1a9d@bugs.sh