From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF7031F00931; Fri, 4 Dec 2026 10:50:06 +0000 (UTC) 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== 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) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] vxlan: fix out-of-bounds read in DF inherit path From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179638140540.1010180.149515736668739023.git-patchwork-notify@kernel.org> Date: Fri, 04 Dec 2026 10:50:05 +0000 References: <20261126034412.2799912-1-0xbeac@gmail.com> In-Reply-To: <20261126034412.2799912-1-0xbeac@gmail.com> 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 Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : 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