Article View: linux.kernel.netdev
Article #11523Re: [PATCH ipsec 0/7] xfrm: fix ESP IV generation and ESN authentication
From: Steffen Klassert
Date: Thu, 05 Nov 2026 07:21
Date: Thu, 05 Nov 2026 07:21
48 lines
11630 bytes
11630 bytes
On Wed, Sep 30, 2026 at 02:45:17PM +0000, Jérémy Jean wrote: > Hello, > > This series fixes nonce reuse in AES-GCM and ESN authentication errors > in the IPv4 and IPv6 ESP offload paths: > * 1/7 and 2/7: Save the current sequence number before incrementing it, > so that GCM IV construction prevents nonce reuse, > * 3/7: Use the current sequence for software AAD and hardware offload, > * 4/7: Give each early GSO segment a private secpath, > * 5/7: Use the packet sequence directly for mlx5 IV generation, > * 6/7: Segment untrusted GSO packets before allocating sequence numbers, > * 7/7: Keep the sequence counter unchanged after full ESN overflow. > > Note that triggering the bug fixed by 7/7 is impractical: it requires > processing about 2^64 packets under a single key. Yet, I still believe > it's cleaner to fix it. > > On the crypto side, as a reminder, reusing a nonce under the same GCM > key is catastrophic for security: it exposes the XOR of the plaintexts > and can reveal GCM authentication key, which opens the possibilty for > an adversary to forge ciphertexts without recovering the AES key. > > This series combines and extends these two individual reports: > * https://lore.kernel.org/all/20260925095105.446269-2-Jeremy.Jean@oss.cyber.gouv.fr/ > * https://lore.kernel.org/all/20260925095128.446450-2-Jeremy.Jean@oss.cyber.gouv.fr/ > > Recent discussion with Sabrina Dubroca may also be of interest: > https://lore.kernel.org/all/c443bad568f4e03d05b848b1b245707d@oss.cyber.gouv.fr/T/#u > > Regards, > Jérémy > > --- > > Jérémy Jean (7): > xfrm: esp6: use the current sequence number for the IV > xfrm: esp4: use the current sequence number for the IV > xfrm: esp: use the current sequence number for AAD and offload > xfrm: prevent AES-GCM nonce reuse after early GSO > net/mlx5e: Use the packet sequence number for the IPsec IV > xfrm: segment untrusted GSO packets before sequence allocation > xfrm: leave the sequence counter unchanged on ESN overflow Please rebase your patchset along with the proposed changes to the current ipsec tree so it can get applied eventually. Thanks!
Technical Details
Message-ID:
<auwuggdz_TCwtlqN@gauss4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357121-linux-kernel-netdev=dewy.ruReferences:
<20260930144523.435271-2-Jeremy.Jean@oss.cyber.gouv.fr>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-357121-linux-kernel-netdev=dewy.ru From: steffen.klassert@secunet.com (Steffen Klassert) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH ipsec 0/7] xfrm: fix ESP IV generation and ESN authentication Date: Thu, 5 Nov 2026 08:21:38 +0100 Organization: Usenet Network Message-ID: <auwuggdz_TCwtlqN@gauss4> References: <20260930144523.435271-2-Jeremy.Jean@oss.cyber.gouv.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3582776"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0jstpB06HT30sK3KJvQKhXXZAes= sha256:RMdmVDBskmYksXeJ+AbjkuAgo8d90M/umxiiN31aBvw= sha1:9389OLHd2v7hRZuJcuB1UT2+GAw= sha256:6fHW/XjEizKWYxN5osbr5uzLKbqMTZzKNWLt7IgOgZA= 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 2AF92112EB5; Thu, 5 Nov 2026 10:24:56 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=secunet.com 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 i4hUzeia2TwE; Thu, 5 Nov 2026 10:24:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357121-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=secunet.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 118B9112EB0; Thu, 5 Nov 2026 10:24:38 +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 8A43B293F3; Thu, 5 Nov 2026 07:21:51 +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=1793863311; b=C4TF0q6tw5ZG7VV4xSW1DvMHD1BsMonWyYBZO4cAUgJjKKZ7RfDcU0c2GeYvCxotBqAp xoC+TWUSsvF3MZJAeMIssX6/x34iy6ufuy2ogbq2U3ymLm4QM0v7OzYH/9uFS6ripPjYL 4DmeETIphn0s8Rs4gHHkiMR28go8O6O/JRDmS28h2JGYgi6lBkWantQFIodHMu9EkRuVJ xu5RI2BgWIw/N96RAgf/O4YZP3hHl35NjUukRvnZaKtkNTp4V5kQYyEETS8cIoAP02Rlr fu4t+1NwUxKqcdXezfHNiLUOvLNzZDK38DAGafjWmmOxcw0htYKu6h8D7vR9BcwJ/GQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793863311; h=X-Original-To:Received:DMARC-Filter:Received:X-Virus-Scanned: Received:Received:DKIM-Filter:DKIM-Signature:Received:Received: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: Content-Transfer-Encoding:In-Reply-To:X-ClientProxiedBy; bh=A7xCBWYxNpkJA+HXFAzZk+jbkrVgYp/LXNr4Qp/2hI4=; b=br8IL+MFF7UQ7XH7IILZbbT0ujIvcM+kAFRl5JFdoYh6zBrMLNOe3DPqRH9tHip5Vi7q 41Xkn9pYSttnMRvpmV5U03WjupNyGyW5hPr3RoSso/Q7MM2hzOuXHBUHz5G3U0PHjTJG/ 4RaBtU99KhFe2EWoxnPOU4MAF9nEmZ2u/ORBWvkZG+RD4dUFZzg767B3II+MLXH9tEz8i 8G48DbUpBUTY95u96aUTL5DIbhwtNF/UneZbTf6w9qusQcuWfJZe9LBp4BP8kBNgfXzkw BGiq766QoFpb+JsMmLHWTTbBh8zKx54qZqN1x7ZoB/iOCvyEHIwWI4M257W5vly/H/A== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=AmxHA8Ve; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; 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 5D990606A32E; Thu, 5 Nov 2026 07:21:51 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=AmxHA8Ve X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=62.96.220.36 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793863310; b=B3oIKEy/MrENmAtIikm2ETpPNZctCbsWExEOfq+XHJxfv/J6885CyJ+tc4aL7fWxA/R+ cwpH437oqWzlfwxTY2E96jj/+LmzDs35e4RbgEc8u4rwrZyX84uTb5NuWZDUWsMgH11Nk xWOwKu/IBvk4/PBUZfJssg34bdlp8bhHmao59Pc4xJgmqZb1Jm8sW0uZz7CyQq4Ik6oKI f00XVym91UsEX70wmEv+7NXdejYedu3b6Ki9yMtApyBIlcbybVpWY7e1bnBJbWc5/ukuB wwxRpW6pWMhyUnG45gX0RzGltMGfCjIEnxUBkZgfG2Ak5FE92t1QY0FQpW/FLa0iKNg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793863310; h=DMARC-Filter:Received:X-Virus-Scanned:Received:Received:DKIM-Filter: DKIM-Signature:Received:Received:Date:From:To:CC:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To:X-ClientProxiedBy; bh=A7xCBWYxNpkJA+HXFAzZk+jbkrVgYp/LXNr4Qp/2hI4=; b=x0Fh03EjlpE0e4yE9bSe/1+4+Sm9SEK4qUmPeCIo8mDRj0uzFI8bbZA+QOlNs84II9YN P+NEJVCG4NBQuYv50lEpdhSdrXBYubfqZw8O19wHF6A6w0RkFPCW1Fv6cSATPtxfzXs4e LHrxB182Ee+2jmmBk7jhPKhGRV+dB701qDkS0mrriJN/anAzD96v4rp0m14sHUbu7iS1Q VX7Cj3L2jsij402JDJGGcf0llvEWAq2Vjbu/uKu9ugxOUWlkbjb03A/D9NVj7adbwjAKt 1LfBQEfbOMLeQjTriFx9Qipe1JENEe0HMaZgeDnfixUerh0h53/SnjlIu0AXZpl6LEg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass header.d=secunet.com header.i=@secunet.com header.a=rsa-sha256 header.s=202301 header.b=AmxHA8Ve; arc=none smtp.remote-ip=62.96.220.36 X-Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5792C606A31B for <netdev@vger.kernel.org>; Thu, 5 Nov 2026 07:21:47 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5792C606A31B X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com X-Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id A824720849; Thu, 5 Nov 2026 08:21:40 +0100 (CET) X-Virus-Scanned: by secunet X-Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3SGRWzQJ6JcK; Thu, 5 Nov 2026 08:21:39 +0100 (CET) X-Received: from EXCH-01.secunet.de (rl1.secunet.de [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id D71E0207D1; Thu, 5 Nov 2026 08:21:39 +0100 (CET) X-DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com D71E0207D1 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1793863299; bh=A7xCBWYxNpkJA+HXFAzZk+jbkrVgYp/LXNr4Qp/2hI4=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=AmxHA8VeyP4PET+GkRC8dQ094TFlKqYtBxMXuoPcshNBTMS7tkGuWvJu+Y3U87mkh FB4hpiKNQlXeIPizHFjyFECjp4DH/2VYcYZDmidK8yl+p9NTrZuR66xfCgIjXqgK13 Gqk0Z+4E/EJqHnpcIBAICYpbWs9E+KVDOJYKeCS2WX8hiC/IRsi9Rps3VbbtjtBMDh 6wLXVhvwmL4cJrbkL7H5i68SvpwYos5wKAUPBt+OMOfiKLroKm1PzNld0MZ2qy3GPq kihQUSyU6BF/I9aA4w3k6P5AUb8SSvIawtz/7w98jGRp6JutqOjESjQsUpUkgsB2ZA +6XthKwcxoGfA== X-Received: from gauss4 (10.182.7.102) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Thu, 5 Nov 2026 08:21:39 +0100 X-Received: (nullmailer pid 1823182 invoked by uid 1000); Thu, 05 Nov 2026 07:21:38 -0000 X-CC: Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Sabrina Dubroca <sd@queasysnail.net>, Saeed Mahameed <saeedm@nvidia.com>, Leon Romanovsky <leon@kernel.org>, Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>, Boris Pismenny <borisp@nvidia.com>, <netdev@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: <20260930144523.435271-2-Jeremy.Jean@oss.cyber.gouv.fr> X-ClientProxiedBy: EXCH-02.secunet.de (10.32.0.172) To EXCH-01.secunet.de (10.32.0.171)