{"id":2231249,"url":"http://patchwork.ozlabs.org/api/patches/2231249/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/0be15c11c3c526bbf6caf035b4530a9126bee133.1777549821.git.massimiliano.pellizzer@canonical.com/","project":{"id":15,"url":"http://patchwork.ozlabs.org/api/projects/15/?format=json","name":"Ubuntu Kernel","link_name":"ubuntu-kernel","list_id":"kernel-team.lists.ubuntu.com","list_email":"kernel-team@lists.ubuntu.com","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<0be15c11c3c526bbf6caf035b4530a9126bee133.1777549821.git.massimiliano.pellizzer@canonical.com>","list_archive_url":null,"date":"2026-04-30T12:30:17","name":"[SRU,Q,4/5] crypto: authencesn - Fix src offset when decrypting in-place","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"99d69b2d7e06e72e8af14e3044a71aa7fd9834e0","submitter":{"id":89057,"url":"http://patchwork.ozlabs.org/api/people/89057/?format=json","name":"Massimiliano Pellizzer","email":"massimiliano.pellizzer@canonical.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/0be15c11c3c526bbf6caf035b4530a9126bee133.1777549821.git.massimiliano.pellizzer@canonical.com/mbox/","series":[{"id":502297,"url":"http://patchwork.ozlabs.org/api/series/502297/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=502297","date":"2026-04-30T12:30:16","name":"CVE-2026-31431","version":1,"mbox":"http://patchwork.ozlabs.org/series/502297/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231249/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231249/checks/","tags":{},"related":[],"headers":{"Return-Path":"<kernel-team-bounces@lists.ubuntu.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=PFFEMSLk;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5tny0dt2z23h0\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 22:31:33 +1000 (AEST)","from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1wIQYA-0004YE-M9; Thu, 30 Apr 2026 12:31:26 +0000","from smtp-relay-internal-0.internal ([10.131.114.225]\n helo=smtp-relay-internal-0.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <massimiliano.pellizzer@canonical.com>)\n id 1wIQY5-0004QL-F4\n for kernel-team@lists.ubuntu.com; Thu, 30 Apr 2026 12:31:21 +0000","from mail-wm1-f69.google.com (mail-wm1-f69.google.com\n [209.85.128.69])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 43CBA3F57D\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 12:31:21 +0000 (UTC)","by mail-wm1-f69.google.com with SMTP id\n 5b1f17b1804b1-4836abfc742so6891065e9.0\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 05:31:21 -0700 (PDT)","from tuxedo-infinitybook.ts.net\n (net-93-71-66-38.cust.vodafonedsl.it. [93.71.66.38])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a81ed6bafsm103695005e9.2.2026.04.30.05.31.19\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 05:31:19 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777552281;\n bh=FwbWCrOAUHyJGzbZtpAccFJ/CmPxAyrzye0abOwEdiM=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=PFFEMSLkZtBEoUxaQ4Jxo42zVN8+n+N+ruB5hru8SxX8TTIro5V+QEhWcX6HpmVSC\n SgANtJKaFivPuvgfH2w8Dx+D894elc3Baqy6AczCqFDPyLEuKPdDx404jUXGSg/HQM\n 3oQARS6LfkuzAzy/NrRYdpoljKkw70SIgRg9IabhxSiaEl50O1JQ8DIOFP+KzVd553\n cmcb3lJq2HIqMxoGjrMkX/B3YCJZ/R8Wt2C1DVoOcmNUwDf3gQA9X04qDg1QQTG5pG\n 3t6t8J7TS4OmHWLP0D9Kgz3k1A1ux95E/xiM5mFjI+3AbtmSDPBGdTbwSbe+pqXY29\n 641+bJQYU6sWA4ULZhRL1zWemAxcL8Ja2OG7XPylBA9v05a0f9bUqsWWg8rt4tj1RD\n 9R+CRmOkvXVwVdBBB5OPIvZlwgvsHActU7JhUfwKbABNesu/o4FrbZDIzSuSk1x7JU\n r3NtSDjnignvttAZ9Euq7Nc6gvkJyXss+/9UKUJiFWj16TzIfwoNjVeUBt3U7SjBA7\n n6OVz1d5h7aSngBM39864EYZRSeXLWTjDuBvinUSy0XvciA4mEF8bN1hAUkBmd3Wxc\n hdIcBbWBbHdqA1xIVebUIMbJRBJyj42YNWO9u6lB83I7iemhpetxyOfiQvDh3nqUhd\n hfBPLMx/467HRXyk1n4ZKYHM=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777552280; x=1778157080;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=FwbWCrOAUHyJGzbZtpAccFJ/CmPxAyrzye0abOwEdiM=;\n b=kpoCUQBUbiI4FugU9y6WujUhlCOsvT3Ad/fD3oxfBZYjqGrOMd487g7cJGqrb2hzev\n WP3V7Ox9mUkm+5xFjq82Q//DYRUzhAFw8KGybJqTWf0IS4cv+qQRc3XDCdwzPILNaaqL\n Yw9CkE4cDhOqrWVJSYdnYXo0lCg+oPUrxY93V4UgEkicJdZCzEvcJDaWIRoVK8cfyQId\n O87mira90OuzgcZbQtfiP+jA88PUweEFRo+VmuzkL0VZfU40bAm2DtBtaYMh11JP632l\n y8bOTI7dMrYel/eAGajA0IMgcJdBoxkr7f7E6U7K/ySXk+age3Ox0WfD9GN5AgoT730y\n 71dg==","X-Gm-Message-State":"AOJu0YwwOHoBGFpaDDESJWsKNf/sQEVYa2Rjs5L1XUGEySMJNwaAuda3\n 5xbgGBl5GRx0/A0R5/8iRmJltYLnjPEotcXpuxO8SWeFLkSEmjCyJkx/ZA/yX63LZg9VhCBZE+h\n 8bPLGaCbHrcy5sTKnt2f6gLDDVBTISXWaUVVH7GrIA4KsvQF5iDCLKVCC7fiukzBF9x6BuFUKlL\n cfkv3Zy3x3T3nxFg==","X-Gm-Gg":"AeBDieuclH7rxxNMt6Qc84YoDWorvL29HQXgAjbY+GXNxKTfdj8lREunSEhtV6UrqJV\n re9gFsbyO67ajuxfBD26gxsVeA1q58zriS0U5/rMl4KgYwGqBjTz5z29pcsUxNdkIXVVB8GNmwx\n 612/d27ZGXydew/Oy24/OdfKxUY6p+/5qbQTEDb6pOyNOjVQy4IwV/nStS063QHi8p2zvbZB+yI\n jTLEVT3pJquGexYStYMdRz2Uj0IysAWLIiQe5DD7XJZIdvn31o9NJfpBD0K+iiTYYs6jWYOpfJD\n gKwzuUncBLY/9akM4eLuEbzAu1E6hV7WtGPXv6+1dcK3rjxZVbZTh690G1MPyKnOICD+Xub90kK\n w/w3BNaAP/EUKp9MpNeRXUvSlH5UxmyByz8LvtmMH2cfGUChv2oKdZGwT2qLibc4oxLCbSHU1El\n 9YrSUzhbsBrhJcqHAE3qRIYG4E27AHlFQ2vlUWdwRjaDEo3K075TjA2nFbCcYWq+0IoRJciVMtf\n /Ih9zD3IPGTVT21nqTuzzc=","X-Received":["by 2002:a05:600c:4f51:b0:488:8bdd:cfcc with SMTP id\n 5b1f17b1804b1-48a83d0534cmr47186135e9.0.1777552280413;\n Thu, 30 Apr 2026 05:31:20 -0700 (PDT)","by 2002:a05:600c:4f51:b0:488:8bdd:cfcc with SMTP id\n 5b1f17b1804b1-48a83d0534cmr47185535e9.0.1777552279827;\n Thu, 30 Apr 2026 05:31:19 -0700 (PDT)"],"From":"Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][Q][PATCH 4/5] crypto: authencesn - Fix src offset when\n decrypting in-place","Date":"Thu, 30 Apr 2026 14:30:17 +0200","Message-ID":"\n <0be15c11c3c526bbf6caf035b4530a9126bee133.1777549821.git.massimiliano.pellizzer@canonical.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<cover.1777549821.git.massimiliano.pellizzer@canonical.com>","References":"\n <177754965576.503496.12142658280614619991@tuxedo-infinitybook.public>\n <cover.1777549821.git.massimiliano.pellizzer@canonical.com>","MIME-Version":"1.0","X-BeenThere":"kernel-team@lists.ubuntu.com","X-Mailman-Version":"2.1.20","Precedence":"list","List-Id":"Kernel team discussions <kernel-team.lists.ubuntu.com>","List-Unsubscribe":"<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>","List-Archive":"<https://lists.ubuntu.com/archives/kernel-team>","List-Post":"<mailto:kernel-team@lists.ubuntu.com>","List-Help":"<mailto:kernel-team-request@lists.ubuntu.com?subject=help>","List-Subscribe":"<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"kernel-team-bounces@lists.ubuntu.com","Sender":"\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>"},"content":"From: Herbert Xu <herbert@gondor.apana.org.au>\n\nThe src SG list offset wasn't set properly when decrypting in-place,\nfix it.\n\nReported-by: Wolfgang Walter <linux@stwm.de>\nFixes: e02494114ebf (\"crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption\")\nSigned-off-by: Herbert Xu <herbert@gondor.apana.org.au>\n(cherry picked from commit 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa)\nCVE-2026-31431\nSigned-off-by: Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>\n---\n crypto/authencesn.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)","diff":"diff --git a/crypto/authencesn.c b/crypto/authencesn.c\nindex c0a01d738d9b..af3d584e584f 100644\n--- a/crypto/authencesn.c\n+++ b/crypto/authencesn.c\n@@ -228,9 +228,11 @@ static int crypto_authenc_esn_decrypt_tail(struct aead_request *req,\n \n decrypt:\n \n-\tif (src != dst)\n-\t\tsrc = scatterwalk_ffwd(areq_ctx->src, src, assoclen);\n \tdst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen);\n+\tif (req->src == req->dst)\n+\t\tsrc = dst;\n+\telse\n+\t\tsrc = scatterwalk_ffwd(areq_ctx->src, src, assoclen);\n \n \tskcipher_request_set_tfm(skreq, ctx->enc);\n \tskcipher_request_set_callback(skreq, flags,\n","prefixes":["SRU","Q","4/5"]}