🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26888

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

#26888
From: patchwork-bot+netdevbpf
Date: Fri, 04 Dec 2026 10:50
31 lines
9126 bytes
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
Technical Details
Message-ID: <179638140540.1010180.149515736668739023.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-377270-linux-kernel-netdev=dewy.ru
References: <20261126034412.2799912-1-0xbeac@gmail.com>

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-377270-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] vxlan: fix out-of-bounds read in DF inherit path
Date: Fri, 04 Dec 2026 10:50:05 +0000
Organization: Usenet Network
Message-ID: <179638140540.1010180.149515736668739023.git-patchwork-notify@kernel.org>
References: <20261126034412.2799912-1-0xbeac@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2744385"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SN62LUcs+pnwaBP8+KPvauaoZwI= sha256:Sp6sgdBdqS1jFZIbEqJbiZ1tIqIe3BBK/1VQkFTYr30=
	sha1:KmczVyDdfJqFZVyeeayGrMyksOs= sha256:yTRSg/VfjalmxdytK/N8yHhf/hoKRGSfWzanRaG7Hjs=
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 26AA5117BB7; 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.542
X-Spam-Status: No, score=-3.542 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 CX2qg8Czdv2V;
	Fri,  4 Dec 2026 13:50:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-377270-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id CFE0E117BB4; Fri,  4 Dec 2026 13:50:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 9532A22886; Fri,  4 Dec 2026 10:50:08 +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=1796381408;
	b=uVGXLqkXMCB18wM+7ru2hz0TEsPKRL+37dTqryhnIwuShtQU39eL5bwFt13pgC4si8GV
	 vTR1MPctUXTSQAIED8zacoo8+svMXJrGpobcz13LhmWHHlqGycXTgEDyF/4wp4vhlWsWx
	 9Isodf9Lw+6T0rIoXSP/70IeqLAXzhWA2w2AkyKI5jxOBbbTv5KbBXUIuStF/ea/611C0
	 L94Tp1+X3w9NydW28XUS811Jtj4Vs+rlqcXoCSHpmvHSXYnNeSjzm4HO4uEifBqeKVcZS
	 3e10hgJ1BSC2SY9CESXXFVYJxprOngBgJmMKSYlBoinuJAHkC0qwNPNz5rUokuggoKQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796381408;
	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=5Fc0Lb9RFIoCd8anYuoDv3oJHq54Nu24CHBpAbMKlvs=;
	b=OG86PE56gJxm7mPw5xBLGstY0StlQGG0KRfpyTMLFlTcr8UDppTV7bEBMAMo6SSjr/wV
	 HgAZzmpBw02EB75R/AQApOBcrUVT6dChiNHuRnMoOdZp0d18wSQcOMhQESbO0nH+Ak0O4
	 LsAX/hi2srKPNzr83AXhO+EDN19AkfwOPvoMxXcZnqUplqvD7TTOFcr2PikJhK9wp1Zfp
	 cKwAdAHWwzml8Byknb24++ZvQ37NzZzFejBMBRA+Dd0ylc+AU65HxbZ41rIEO/sRJyvwO
	 PwJVWoraO6uCbnXR683B/7cZFXPnkXXQAgUrmH90Eoq2FaKjms75R0ENElHHs6yrVBA==
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=FJlPyyDo;
	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 21B99606A32C;
	Fri,  4 Dec 2026 10:50:08 +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=FJlPyyDo
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=1796381407;
	b=imAzJqT2xd2VEBII4kUVPL3Qmsm0DiscQ5Ke6pmr3wLBs+l44hdSjtZ9vvmC7zY4qQDS
	 6betk3LaGeVI+vyioTLDMGzh+zGEnMYvFg3vDFx8h0Gm5bvkBGvUHTsXBVPGVCZ8IYEXa
	 kqphJRj7xkEtGgSOxmpdgaP5GYsbSIntTvP58kfcMak/PdzFFm+ej9AvrgQBX/D47Uv2A
	 158SqhjqLBAXAP33h5ZD30nr3vhvzb1q1uymNuySXpTmYOMkwg4X1Tjs1Znamdea34tmZ
	 PVMDJcabovXZYxWYFEckKSODtM4uM6a9oRLhR6jrT831cn0rIFcXaBWPyeT50hmhOdw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796381407;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=5Fc0Lb9RFIoCd8anYuoDv3oJHq54Nu24CHBpAbMKlvs=;
	b=sIiODzn0sn24Hi9DB3B/pj2sJDE8zfAtRkRsS02XGLAmTRaDGtj+b7fuD9NZsslmh5j1
	 hJqTElX6E3QW4qhoitSMenGY0GbfQ1pcd9b18b0q8TQrdBQR5eRZOVulfM5MUGzy7TWKN
	 ydIgBms98o3zsQI50WEOGIZDrZLJ3PiFqVwp5jZJ+nk3QXrOtm+pdjhHj1bcbyrBrfr2m
	 8esjZVZwQDt4Fzu4ayS/kdURR0zX36vuZZOb7aKo8LTlAkhJrF3/9HOM0VIPzpBSIvYE5
	 TUypo9aldpMZcjkpgw4Y8rzSgAwAtptGv36HKaL2YG5u3B/RkPSg5EDh09p9yILE7Ww==
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=FJlPyyDo;
	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 40F5F606A339;
	Fri,  4 Dec 2026 10:50:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF7031F00931;
	Fri,  4 Dec 2026 10:50:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796381406;
	bh=5Fc0Lb9RFIoCd8anYuoDv3oJHq54Nu24CHBpAbMKlvs=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=FJlPyyDo3wEBBApbqvje5fjaNZvmpo3DJGiVZilIr/KsXfM3YQDwbg206EBg+dxVU
	 5JZonLI5tZ3oiodUbiTgvwwSJEtJh43h1EAv0+hxk9FdIn6Yd30zTkdTUetdjo3rWT
	 K1KSL9YJi23i9upkYzQ32CY1k8c+LF+jXv8vbUP/JgcQ/SZQvslLOFkbqybEbd/Ojt
	 Rpdfv4dvymJvF3u8BauH4jI7f80b08v3hv5Z+5bqePo4N04Svp0KmL5y36NYiu1lpV
	 cZvkrvXIJWT8KEX4UhUa/EzjBZmvJCShU8OVKu3ZFidLoA/bp6Wvi40C/XDSuza86p
	 3IRp8wLwJzAFw==
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 D3BDD3808236;
	Fri,  4 Dec 2026 10:50:06 +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: <20261126034412.2799912-1-0xbeac@gmail.com>
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