Article View: linux.kernel.netdev
Article #7703Re: [PATCH net v3 2/4] psp: support ipv6 extension headers in psp_dev_rcv() decap
From: Jakub Kicinski
Date: Tue, 27 Oct 2026 00:58
Date: Tue, 27 Oct 2026 00:58
23 lines
9270 bytes
9270 bytes
On Mon, 26 Oct 2026 15:05:42 -0700 Todd Bert Freed wrote:
> > The PSP ICV doesn't cover the outer IPv6 header or its extension headers.
> > An on-path attacker could take a captured PSP packet, insert one of these
> > headers, and set saddr to an address they control. This assumes the
> > device authenticates such packets, which this patch's premise implies.
> >
> > Several of those handlers reply with an ICMPv6 error that quotes the
> > packet. With default sysctls, this happens for an unrecognized routing
> > header type (type 0, for example) with segments_left != 0:
> >
> > Before this patch, all of these packets were dropped at the is_udp check.
> > Forwarding the decrypted skb itself looks blocked by
> > sk_validate_xmit_skb() ("unencrypted skb with no associated socket -
> > dropping"). That leaves the ICMP error path as the open channel.
>
> Agree with this finding.
If we're leaking cleartext in ICMP responses that's also a problem
for TLS offload. We should fix that, based on skb->decrypt. right?
BTW I haven't looked closely but is there no existing helper that
would give you the ability to walk the extension headers?
Technical Details
Message-ID:
<20261026175805.6d4dcae5@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-352156-linux-kernel-netdev=dewy.ruReferences:
<20261023234640.1459291-3-toddfreed@meta.com> <179288570143.3134.8925369868949382653@kernel.org> <CADh2yMyYS-PWP4912En9D6B9up6Kz-hnCthNkWot+e7N8-q7ZA@mail.gmail.com>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-352156-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 2/4] psp: support ipv6 extension headers in psp_dev_rcv() decap Date: Mon, 26 Oct 2026 17:58:05 -0700 Organization: Usenet Network Message-ID: <20261026175805.6d4dcae5@kernel.org> References: <20261023234640.1459291-3-toddfreed@meta.com> <179288570143.3134.8925369868949382653@kernel.org> <CADh2yMyYS-PWP4912En9D6B9up6Kz-hnCthNkWot+e7N8-q7ZA@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1435687"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:F5bk/feMaKHVXibri5FGGrGn9jw= sha256:5X+feoZYBX6V08rBFvdkAsu8WpiataUutZWaawrNeCg= sha1:9J+haxkzvFPDGGq3Bxh0SNs00F0= sha256:wIvGtfLT37l5OLMk3KT9wTLLVGVtqbhQViZ9rhMeO4g= 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 6BA5C125BD7; Tue, 27 Oct 2026 03:58:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.839 X-Spam-Status: No, score=-3.839 tagged_above=-9999 required=6.31 tests=[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 GT_eTJAJiXTf; Tue, 27 Oct 2026 03:58:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-352156-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 1C871125BD6; Tue, 27 Oct 2026 03:58:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 77F08602AFD; Tue, 27 Oct 2026 00:58:11 +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=1793062688; b=crHXzTLyhqu3Vzgkov61x/IDbde/RV22LsXmfmJLoTiT66oHcPjWkpm536eh/hG6tFWH 2OrT3h1jGx9T/xyeBOvAnWRfvJu3O5np1kOXPbSDuH3J8e55cfNHeP+ljg7fpBn732gL2 Fwt8iXxzUSEh7yQEk8Buh5yOEqV7Q6qQR3KhWvxf6UcuXdF43ZAVNKlee/vOB6IDvx51u JAERbdE87LzZ9Z8DpUcv6Viz/AzmjSmmn3rum0DqX+MByrbNqssUFoutXgIlN/AxIYQ4T bwF5lX0tcAeL6yflDEadr1xYxUQ988CMhdvO1uJpDsdqy9ssHFBNElrZx5Qwm7KX2jA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793062688; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=sUEwDKmhUCK72nyNcfOYNUcMipaRMF0mJ0oZfnfboSs=; b=Ab5s+FLj8ajU5BEy2+Aj2LtBLIDaH+n08MoPWUFU3HuQbAe00HRDo+yk94nOx/WaPNGy W/QUUp5I306K/O3yVmoO7GEbO98OdbPitAnR6Hl99ZcpWqHoo7zZHk9TlYJDL+Zy6vv9/ VLAX6cNgNJ0LgFNRe0kLo+HwgiezQRSSpyYESdfG4lIWoLtf8lHGy3TVV28da82y+X2sn GfMANWxI9en4JMkzwvQhNqnk4nQ77/Px1zP45muPEXSdLRyy7/uZyL5i3dNwKcBINATzX T/LJFAGurr/Zc6p8S+R11N5X941zwDMorkmMsA+VXjlHV5Sk9n5NeEZlZlrxzy/S8Gw== 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=QnK5Angs; 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 A1BE6606A327; Tue, 27 Oct 2026 00:58:08 +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=QnK5Angs 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=1793062687; b=2fU0sbn+juATTNDOzT0Pmue2nrMRKUh5+SeLRfRVS6N3VfwF0lcADWch3/vuBxJUhLf1 42LByctwZPDooRrcP+DjK4I3qbD2dhbfGjO53crlM/wWV8sxfu4HHQ8sYJBxdusmKn4/Z GHglw9+daeSpCQXjeu39WdL5VtJOxQmNsK/lF3tulcpy6AdhMSWWftPay0K1/DsO2+qow 1ywY3ZE6WkuZEAToz7G67WCskjNDCxmIMw06gPCZvYeWNShCQIZcM1h0NRbfm6BWYFGnV wIUuw5Ab+KTMKO277Ac3pahZXxmv/8wJvPy6OlpxG1FtgYdERZZQlTBGPxroZdT3Z6Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793062687; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=sUEwDKmhUCK72nyNcfOYNUcMipaRMF0mJ0oZfnfboSs=; b=OrdCRh1n1EhFNKjryEt7/UAwDX774HHAyqeUPVjmrY4b8OBt+eMJgY3TCUha861RQ20J 7J/kZzMkGTSK4RPBW27l8+SBXo5PqoWrIhMPKo3UMRkoJUEVLaxJLhz0TahbGoFtQJgRO F4cp10IZzscWadXJgELTHJsuLfliwC++9tesRc0wNeHU9udCIJDSfPmR8v0prD4TrB0EJ sARqjPeORQdQRUpiNZzjMNP6SMYZLtx0yhWmC7aThp0Zh+8WvxWjBbwP5YThaahVsWFWg bmsr1f0cva3/cMeg0VBKapp1ma83sPrBjMnrADKxhBrZsjioCHbkYWzU9o5NiNdIzaw== 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=QnK5Angs; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69B59606A31A; Tue, 27 Oct 2026 00:58:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ADF31F01825; Tue, 27 Oct 2026 00:58:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793062686; bh=sUEwDKmhUCK72nyNcfOYNUcMipaRMF0mJ0oZfnfboSs=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=QnK5AngslxK4SxemRGecOkdXVnJ9wn73lyJr7uILSfTFni5Wc9opi+Aa0Fy8tIDCn PaKwQy0Mv7wBKxZMH8Rb6hvW6Ol3JRJKH11j1RZuxoiQ3u6RAb3KcB+ZVw3tUMl7UK VXGoVp6CFCwvAa7SRH+Hml9lACCG5v0asZVcfHFlA+p17Ih6GJvlvmmOQnhvbkg0Ab a1zImvVSuIbcpV0Au4n3THn+o3eCdrAJWfWX2c7NSf5h2SvfNSVBWMQXMguN/Vh6nV CUNE10oSAThlY5bFvrTYgwlIsNdCpZu7FMp+xwWJr7uuB0m9mYwtu/w7gAlSYGcVx2 iMRtb34HOtBpQ== X-Cc: netdev-bot+sashiko@kernel.org, netdev@vger.kernel.org, borisp@nvidia.com, saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, daniel.zahka@gmail.com, willemdebruijn.kernel@gmail.com, horms@kernel.org, shuah@kernel.org, cratiu@nvidia.com, raeds@nvidia.com, rrameshbabu@nvidia.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, bjorn@kernel.org, dtatulea@nvidia.com X-In-Reply-To: <CADh2yMyYS-PWP4912En9D6B9up6Kz-hnCthNkWot+e7N8-q7ZA@mail.gmail.com> 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