{"id":2231271,"url":"http://patchwork.ozlabs.org/api/patches/2231271/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/ff213c0a7956fbef5622153f8625be88df3b1775.1777552173.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":"<ff213c0a7956fbef5622153f8625be88df3b1775.1777552173.git.massimiliano.pellizzer@canonical.com>","list_archive_url":null,"date":"2026-04-30T12:30:35","name":"[SRU,J,7/9] 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/ff213c0a7956fbef5622153f8625be88df3b1775.1777552173.git.massimiliano.pellizzer@canonical.com/mbox/","series":[{"id":502300,"url":"http://patchwork.ozlabs.org/api/series/502300/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=502300","date":"2026-04-30T12:30:28","name":"CVE-2026-31431","version":1,"mbox":"http://patchwork.ozlabs.org/series/502300/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231271/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231271/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=FHZhvnM1;\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 4g5tpZ2f8Cz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 22:32:06 +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 1wIQYe-0006RW-MG; Thu, 30 Apr 2026 12:31:56 +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 1wIQYM-0005Dl-4l\n for kernel-team@lists.ubuntu.com; Thu, 30 Apr 2026 12:31:38 +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 ACB0E3F57D\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 12:31:37 +0000 (UTC)","by mail-wm1-f69.google.com with SMTP id\n 5b1f17b1804b1-48a55d82e0eso9962825e9.1\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 05:31:37 -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.35\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:35 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777552297;\n bh=udvFlGfyoIYzh3upkir0ErGC9R92GthND/iwaw6Qs44=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=FHZhvnM1069nRYfiOwr7F4MtAOQGOIdee5MVjlHiuA2wNzqsUU4Qs4L1z4+yA+xow\n F1KVUbMIuxaGiLF1z4/n5cNgiI8xr2kLuE+zaF8eJ3Kz20MDbMHrO5TVcT62NtDZyr\n CyjBwaJOCwChqR2VibnZbLhpxM0rtWiqcfU5bN/pUeEaTjV3wvDsQHkmygPAoEya9X\n nS7O1CqAVMQS9cTovuuEfJ8NWa3rp6oQMkGA2lZN7aaGRn9oa6xMHEcm7kvg6ENdxZ\n E5rGKfMfGXdst4IvQUZREnODGKYUUEVP27uN2XGqydcbQe1seMf8Itr2eR5iIyUge8\n 0+E7iFMwrwC6Ra3Ym6G34C7GSlnPSGDtIARBaRwoN6eyvr6tpflL13mbYtu1YzMdZ1\n 6bVv8abwCQjEJPfu79euLhI+VpCpUlh/UdHuMxWAwBGzRM6x6YE+PHXgV6e8vUIggm\n USAILzVq5S/31gYaxacTlFLtIpKOwXjdKl0sJotVWVDJvVpBwb2+Uf94yf+3IobpaK\n /R69RSNfJvnYgCrfDlM+DDdLz4ih4TmhLjf4bFE2w0Rj+vE8eLAlQZCevAHKGNsBtX\n nf8WDDXoxR50ThCfvZ+NLTQbEp9qwNiUyJQ3bRivsWhNFraGW0D7FZ/rRCIhznzDdn\n g8xcA+peuGvn5TcnuvNnMwb4=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777552297; x=1778157097;\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=udvFlGfyoIYzh3upkir0ErGC9R92GthND/iwaw6Qs44=;\n b=PZG1Zd3y758SDV7xIEwb8gTRmtrNx497LNk2/h1qMT7drv2MnM0Y1bJ0N8URvoV6H+\n 0RBE1UdDujePJ+Pdd9oqwqUNi+2OwHcmP2P4LU9HGwhpJUB8cQdwgNwtsbHfqw5HCM+P\n TrBIkcqVzDaDTofxqTkAvvwFK794E1sp6nWgqIqdhW9yZiNWhefq+TulJDEYTVd9tvol\n EpMWXMrzWVX40ID3XNlpbc1P4oLYnZTvZfX6aU7sea0Kv1LyW9Lfb7D4gyFWoEQrBxVe\n jncgpJQev+Gj2gXCvYiIgURTIfbsKFoaAPdPe1cMZyie3kpYJ5KfNLIc7QcjoWwFBBxY\n ibjg==","X-Gm-Message-State":"AOJu0Yyd8wIYjdaBuIz6bnaO8gkjE+k+pz9c7cgq5pmpoYbdvrRNz94W\n P3u5bZFJ6ZJYszEloszutHfUSLEmd1xRqbbVUYUeGvMVeZQMviFfgdJ9ylcyDTLK5wgEML2iwa/\n hhxpxeynQbi9R4x2EYQyoxJs/uT558TNBy/iQrVonipX/o9Jn521JGWL5icUSipIw94p+4jOvXC\n 0QCutU9ghZDsYqWQ==","X-Gm-Gg":"AeBDieveRVGOEVDCEjFV4TNH00gX3MuSDHHkul/hM7sayj8pINtAtZf3hl/xScHPN1s\n P6giwqvbRRwDBA4ipKY2HwtLfxvI5KB3MUPiwJrO5JRJfon5GWZ4YNjJPt26iQtZiRdHTaP6C5F\n cQjaXm1nQ6CkrGCX4ODi6YEB+wXXRdFW6hHMK6cMyA2EXB1fI/Ooa8llRS10+AdwfPycktxAQVi\n vCa5B5KlyRNzjWRoyGv83ekKDHEQgd84XJEcpO5XmiJpW/QSSQx3vZrvRUYxjCVPac5X+ja8kMR\n VZRoD0WGPFteEqOgcJG1T1UCvO8FBgN8e2WGkoIXDkxhyn/o897iLVAhEuL7vYxPoN8c+KhTk7s\n 6Lm7G09zCC9RmAA9VWaPhH+4zCQAf1bgW1Ek9LT6AU8BVcopHEbncj8HL/cvxSj+ncBz1rXKyAP\n gc5BLWPXmfw+Ka4ikPzfoTGkxXsyvRH3T5Tl+NORy5GhQNN1zPFDhJMo9ciQfIjjCpjSvhAvcbt\n Jk8PljvwcFnpg8aJJi1Efo=","X-Received":["by 2002:a05:600c:4fc8:b0:489:1ba8:5be9 with SMTP id\n 5b1f17b1804b1-48a84457a98mr46168515e9.29.1777552296911;\n Thu, 30 Apr 2026 05:31:36 -0700 (PDT)","by 2002:a05:600c:4fc8:b0:489:1ba8:5be9 with SMTP id\n 5b1f17b1804b1-48a84457a98mr46167945e9.29.1777552296325;\n Thu, 30 Apr 2026 05:31:36 -0700 (PDT)"],"From":"Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][J][PATCH 7/9] crypto: authencesn - Fix src offset when\n decrypting in-place","Date":"Thu, 30 Apr 2026 14:30:35 +0200","Message-ID":"\n <ff213c0a7956fbef5622153f8625be88df3b1775.1777552173.git.massimiliano.pellizzer@canonical.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<cover.1777552173.git.massimiliano.pellizzer@canonical.com>","References":"\n <177754965576.503496.12142658280614619991@tuxedo-infinitybook.public>\n <cover.1777552173.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\ncommit 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa upstream.\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>\nSigned-off-by: Eric Biggers <ebiggers@kernel.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\n(cherry picked from commit 723bb1b4a6ddef4491b7d949912c6c09be7184da linux-5.15.y)\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 5dc057cb0cdf1..2154d4ab5c952 100644\n--- a/crypto/authencesn.c\n+++ b/crypto/authencesn.c\n@@ -235,9 +235,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","J","7/9"]}