Article View: linux.kernel.netdev
Article #7592Re: [PATCH net] pppoe: drop discovery frames with no MAC header
From: Simon Horman
Date: Mon, 26 Oct 2026 17:34
Date: Mon, 26 Oct 2026 17:34
16 lines
8431 bytes
8431 bytes
On Fri, Oct 23, 2026 at 04:00:00PM +0800, Qingfang Deng wrote:
> Commit 8540827ebac6 ("pppoe: fix reception of frames with no mac
> header") drops PPPoE session frames with no MAC header to avoid reading
> uninitialized memory.
>
> Apply the same to PPPoE discovery frames, as both functions read
> eth_hdr(skb)->h_source.
>
> Found by LLM static analysis, and reproduced using the same TUN
> injection as described in the mentioned commit.
>
> Fixes: 8540827ebac6 ("pppoe: fix reception of frames with no mac header")
> Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261026173409.GL257209@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352024-linux-kernel-netdev=dewy.ruReferences:
<20261023080002.221332-1-qingfang.deng@linux.dev>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352024-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] pppoe: drop discovery frames with no MAC header Date: Mon, 26 Oct 2026 17:34:09 +0000 Organization: Usenet Network Message-ID: <20261026173409.GL257209@horms.kernel.org> References: <20261023080002.221332-1-qingfang.deng@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1360572"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3JEO0c37o0L4vBVTUFsDBqIppPY= sha256:iA7Ly7pxmu3WrrA3y0YfcKj4QnQ3uhK/BhBfnfdgGQs= sha1:X+VKfuq54PDHBgYZGCrGeu+5mOk= sha256:cq/i4dO+vqIzRoaBa01g88iJG+zGV6VO+lBxoPmV6LA= Content-Disposition: inline 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 40A9F125BB1; Mon, 26 Oct 2026 20:38:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 QYE-wY97umAe; Mon, 26 Oct 2026 20:37:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352024-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id EFFD3125BAE; Mon, 26 Oct 2026 20:37:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 7CA4A2BDE6; Mon, 26 Oct 2026 17:34:20 +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=1793036060; b=u5+QJoG0psHS1mkzSh4tYCxcSTW22m67aent473x3273fox5QdCzawxdPKr9zrTpaZMc ZUYjYqp9oiKCHulyzaoU83ch3Pedt8u0palHI7KeOs2KzwM1qjfPiZtu2kS3QrPUBJc/k Xpxp44SELYsS/9lfCUrcmHAx8Bu1KDk5HGd54Iop3+9w+uR6rvQ4HqDFRyznBuW8bqQpn LzAco49UnYxd7gB0xATb9mp8KTjPHlHGXchEZIQhHLv3Wv37DtGegpOmzDNZ6WQVTZ3N3 /b7jdFlbQqV57iGDgMxT1HElhP+v/1JXoYbAVp0QrYZeTzSQtEIjpD9QPAWB7tcvCDg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793036060; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=Q1ej1nI921zqZTetq4Op+sq0CAILM6bRn6dONLYm9t8=; b=um95WizudkytvBaarFbOzjl5Opib4c5Dx076EX0SnOQjZFMVD35MDcFYz77BlJrNJ6Ec dEn9+DavxJQE/igvTgfF1GNei3jVkNgwH40XG1yuEAZqqaNrEyIcMTVq9GZdPbzX6vZnL bhAAAyugfFawRtZW/1RXVGcfTg/d9HWsd2tD0GnQCrd/5+xuK0YToxBFkIlyK5gFauTjv kLyoLPB3hauz70zPrtU2AiWbQZj9IzWG93WOmh5x97xxKSfo93t1SwxytRNryhBVwrFfW 8erH1RtA7ADU4mXMWAnxjuh8mm3CA/quCGT4rMhLXC7dPREVPX/uYrgi9EtFaHweUJQ== 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=kEmSR2UH; 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 5286B606A31D; Mon, 26 Oct 2026 17:34:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kEmSR2UH 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=1793036054; b=w1gWTyucyVKbT2fY21VwVYi3v0BVbjC6SdsJq4+JmS0ZL+2xLvedKW9QeFgEFqDGHEmK cFndqtz/ZPr8r2Pulw+TkYmt401SQXy4scd3Hv+KWXnWf3b+2XIG8yjR+GjHxC2k59uur 7ZDopYQaFKvlw98Kkiw6A6Y7v1Ogor4RmZJL3tdD+9aMv+N5oC8ZX4V6fdUWPczLcMHj6 7Tzz20KxK+Ieh9cyu8H4McedFtWFeNqjWPyg7uF9cd05Fm0xboCbYfiTxMZgwbMDpbG7r HoxxuwHId0Pet6Kk/M4hWqUFC5w2J7K3MN9Ew27UXdAbjEAaqcRBM4A/5QqRoT761VA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793036054; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=Q1ej1nI921zqZTetq4Op+sq0CAILM6bRn6dONLYm9t8=; b=hQ+Kn2DjVc0UhPoDmBup/ledOEtP8tCpAHZ0erd8O5qHPqk3MdF2PEHIot0vy5RQugTJ v4XKRF/0E2GEdQLnDVdmDZYu5rQcAFMmevK9a0WuvFTSI5Ir+adr2MmwzRcI0JS4k4zAP yffATd3ULbOJcseQ64ouxQhq3f5Mm+/kJUWB/4/SO3LAuzx51gW6O/Mm0fpgpfMTsWBIy n1HVZO8UXwuTns3qlbeXb51NxOsheCoPilbh3pdpeBQ1lC7Z2oIYai5Y/7KXFfhNGaH+n w5kWOXXFktUBC3G8DBKfsLMHqW/dHu49MTKcYKxVc0dLmBdkWJs2XUlajRIdipplcmQ== 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=kEmSR2UH; 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 2E200606A31A; Mon, 26 Oct 2026 17:34:13 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9863A1F01825; Mon, 26 Oct 2026 17:34:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793036053; bh=Q1ej1nI921zqZTetq4Op+sq0CAILM6bRn6dONLYm9t8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kEmSR2UHhYustbnAJvsaPyqu6tDSR1d4mUrs9X7HWio2O0Y4pZROm6WSmEhbdpto9 TtxWw1JhuQ3x5iuM/rWNPSxH5JNwT2zdQRevQgFtrg8Ky1CbzZ5etC5h1jogvlHgTj CdySO2jlhgMNgGkdjSNq6V6LH7ibs6aUPghWDJzdy5n1chIqnEXK8RpRXI9a3lz8vb C4ZTPzpDzFn6RHdNzIebh4veTGfw/eSCxvoIk2Xgad6XjDn7mW6w+dK6KRqBwZDkCi 5SrliKY/wzhXdvePY9cjwRbtU8D4d1nFCA3aWFgAMI+qtebsyVc/u0vsck0BvctO2i TEbngqPKmAlKA== X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Eric Woudstra <ericwouds@gmail.com>, Felix Fietkau <nbd@nbd.name>, Asim Viladi Oglu Manizada <manizada@pm.me>, Guillaume Nault <gnault@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org 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: <20261023080002.221332-1-qingfang.deng@linux.dev>