{"id":2231535,"url":"http://patchwork.ozlabs.org/api/patches/2231535/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/ff213c0a7956fbef5622153f8625be88df3b1775.1777577013.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.1777577013.git.massimiliano.pellizzer@canonical.com>","list_archive_url":null,"date":"2026-04-30T19:28:28","name":"[SRU,J,v2,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.1777577013.git.massimiliano.pellizzer@canonical.com/mbox/","series":[{"id":502368,"url":"http://patchwork.ozlabs.org/api/series/502368/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=502368","date":"2026-04-30T19:28:21","name":"CVE-2026-31431","version":2,"mbox":"http://patchwork.ozlabs.org/series/502368/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231535/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231535/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=aTlfsImg;\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 4g644m5JrSz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 05:30:00 +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 1wIX58-0004AV-4L; Thu, 30 Apr 2026 19:29:54 +0000","from smtp-relay-internal-1.internal ([10.131.114.114]\n helo=smtp-relay-internal-1.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 1wIX4p-0002ey-2u\n for kernel-team@lists.ubuntu.com; Thu, 30 Apr 2026 19:29:35 +0000","from mail-wr1-f72.google.com (mail-wr1-f72.google.com\n [209.85.221.72])\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-1.canonical.com (Postfix) with ESMTPS id 6BE173F637\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 19:29:34 +0000 (UTC)","by mail-wr1-f72.google.com with SMTP id\n ffacd0b85a97d-4411a2ff53aso840371f8f.0\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 12:29:34 -0700 (PDT)","from tuxedo-infinitybook (net-93-71-66-38.cust.vodafonedsl.it.\n [93.71.66.38]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-448e74324a5sm8133217f8f.12.2026.04.30.12.29.32\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 12:29:33 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777577374;\n bh=udvFlGfyoIYzh3upkir0ErGC9R92GthND/iwaw6Qs44=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=aTlfsImg2P7BrhUa1jLlmqzhKoIv4qiqfQ7t83zErHtY1h2SlbaqiPLw2NqExmnyb\n /bfYgjEa4lFMTNO/refD4U8kMkygmmfSZnICcrN8YJZnlJ205vdi2PtxxW2NoL7vTs\n Kkng0lM8N7pgLJV9xLYJEZfu6GRA8USRNFZ3Zukeb8bcM9RyV2zxhshth/PPdcPTBU\n pdey1ewXhv8Zp864LX0Ncxa5WkA9GCbfRJWWpKseHv3janS9LwMsJOyKkKjyOrJyh5\n MldhPikxkC6gHWHndcaNEvXfZeqehzd8N3mCMiAkNHW7hByBKCypLdgdOH1/4+4IHZ\n +IsnFxJwEzw21zambj3qnS/tja4twfrTFnroGuE/ovT46I325zdb/5gg4yiJajkrfb\n BIRr7GZKKwOl/QETkbynGxhnQlVoume5nqxxmU1QQb4OWwt85spoH18S2xWWMT/yRN\n hDzOTWdBqp029JVxBs/YEYE7W9ZD7WO8CUFzXxklsezf6DLShrgS+xHPm76c4e8GwI\n Y0sg9U1bMjio1wDMr8Q8objs8Jx6H1CYkWR4qIWBOEhV/8d4td/3a7ylDBqMKXQz0H\n Y8x7UujUMRx2GuVox8mJ8DrgbPcJF8iogUtrfLEJPt88wiODoRMprVA3PTY+g6GNQ/\n iDDcgZTpK/LasIB4vsFGBbk8=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777577374; x=1778182174;\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=WnD2DYD9U7rm4//VvLvbwHSNKeeMB0xy7LEF72qmW3CBTkTcATA6+ZTa0z5cmcX8i4\n WXu0/Y9xDcoFcqfrbf41o6NXf3BHaaLJ1yvvlSETCQiBzZloXT2J7AXzwFz55GF17jpl\n Rpkg8bylF96bLnaWpWAWmn43hYSEp8SoJHSum2Oa534R6E8hagZpcwRshWbicHCmIuVV\n Y3BCKXkLBiHtnrdJvphB27CX68w5QspM8ojUM4ikeFIhXqUXSalF3tXbiPcS09jM7InB\n HpFJMOPgGLHRYgyMi8tZhA3p1V2JKT69sMZpRU+p8QgpEWO7TU8zjUioUveIeSK9S54K\n JcUA==","X-Gm-Message-State":"AOJu0YzDG24MtT0+dbe8IfvDaOOyZXFec7j+CMkdASUzKlgbKKuLuA4n\n 9wcSJbbZV5VG0TlvTLoyNdZ2pgU2o/AN+IdLnSI9StDOTMUZGi/+dsapOBiSC/4FwzP1A8uu2YC\n ile6WdmANTgoGAI/qAh0mldAkCPnENgXkX9WwiAR5jQWJfPrHHNLeZcpFBIW9KcMJvLB7LIepLN\n +I+qP2Tx3FMB04cg==","X-Gm-Gg":"AeBDietMuAmyiGLer+mv6lnPmc78f2PBdPQZdFx2JHkBeMN1YldnGPHc2PqDR358AnG\n bGvwCj+SCcmLRs9PqcITNK+B084Ym1TDPf+DO6S2C7n8PxHtYMcSgAGRu6fDXa7xzF7GtY2yGpS\n HOlHoqf+v4PLPThFvzygALyXRY8AO5H7+K+4ifkvtHA48/9cMmc55CkSALUx3IWbHf71nSJ4hd+\n +Ax5lOr/M0AdyxpIPLOOO9o9MZBY5IWA2qWPicLG1xzcisQtwPuedrd6yn6rWpvwBE5rAmFzFQO\n MHLW5RmIhhchEVD9FvX2XweLY4lHnUypeaKaXeqRWcYb4yxiid+Z6tZY5IpQYBehyDHXcxKahj2\n TlyUfpyPSEpRIBPHEBV0mIfMY1+335R4EjEFehyEEYGLt0m5djWFe1jnO3YkBukw08iLVhVT816\n WLjTxTdWfexTCwp5yU2AXOh1Ojo2zXB2pYq7xTLmmuPEYV2sMqU/6Tu4PgZCdrumk4pkc7S2hBz\n OqK/T+jmq2Ldw==","X-Received":["by 2002:a05:6000:3103:b0:43d:7883:87ce with SMTP id\n ffacd0b85a97d-4493ffcc4d3mr7609553f8f.34.1777577373817;\n Thu, 30 Apr 2026 12:29:33 -0700 (PDT)","by 2002:a05:6000:3103:b0:43d:7883:87ce with SMTP id\n ffacd0b85a97d-4493ffcc4d3mr7609536f8f.34.1777577373445;\n Thu, 30 Apr 2026 12:29:33 -0700 (PDT)"],"From":"Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][J][PATCH v2 7/9] crypto: authencesn - Fix src offset when\n decrypting in-place","Date":"Thu, 30 Apr 2026 21:28:28 +0200","Message-ID":"\n <ff213c0a7956fbef5622153f8625be88df3b1775.1777577013.git.massimiliano.pellizzer@canonical.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<cover.1777577013.git.massimiliano.pellizzer@canonical.com>","References":"\n <177757626672.818044.11792928639290212185@tuxedo-infinitybook.public>\n <cover.1777577013.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","v2","7/9"]}