{"id":2231258,"url":"http://patchwork.ozlabs.org/api/patches/2231258/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/54cf9d4efa33ef7965f464e86bbdc12aeee85de0.1777550836.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":"<54cf9d4efa33ef7965f464e86bbdc12aeee85de0.1777550836.git.massimiliano.pellizzer@canonical.com>","list_archive_url":null,"date":"2026-04-30T12:30:26","name":"[SRU,N,7/8] 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/54cf9d4efa33ef7965f464e86bbdc12aeee85de0.1777550836.git.massimiliano.pellizzer@canonical.com/mbox/","series":[{"id":502299,"url":"http://patchwork.ozlabs.org/api/series/502299/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=502299","date":"2026-04-30T12:30:20","name":"CVE-2026-31431","version":1,"mbox":"http://patchwork.ozlabs.org/series/502299/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231258/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231258/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=BmU4trhW;\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 4g5tp62d1Kz23h5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 22:31:40 +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 1wIQYG-0004rW-Cs; Thu, 30 Apr 2026 12:31:32 +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 1wIQYD-0004fz-Ka\n for kernel-team@lists.ubuntu.com; Thu, 30 Apr 2026 12:31:29 +0000","from mail-wm1-f70.google.com (mail-wm1-f70.google.com\n [209.85.128.70])\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 36FAF3F427\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 12:31:29 +0000 (UTC)","by mail-wm1-f70.google.com with SMTP id\n 5b1f17b1804b1-48a589c7879so15207475e9.1\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 05:31:29 -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.27\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:27 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777552289;\n bh=eNWfpSpXVeoMAtGFlXpXuHDsQpgtmIMQik/aQyA2ssA=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=BmU4trhW69D1ntO6BRbRy+n90h/v8o9H6snTfTPGXpPyrMNlWayoNu+pqbL34u1mV\n DkR3LVLLrHyTIYOTjMKM37mFGqtm8rK6GucphllRWkRl1oRW1tHCGgWOmoz+X3EdCt\n aga+QgVyp17kRcam2alkIx6WSlL0LL8spYaK7B0Io4kZ2aKUd/dqkspRQh6UywoKRJ\n 2GEcd2UMs52+SEoiKQXC49FC+RwSlux5UMMk5ErohtwAz3LcbYSxaP/dvIas8S9eEP\n whmoovNZuNpsUO0kg253d6JMe7yKtcX1AemKxfXhwe6XtwqxOci7oo0FwnQUbsUtHF\n KqaNmktjB80Iq1N5n5EZLUpPXzd5mq9fxeiHPyM1vck4N55ESybsKcofNwOVVWE11a\n gIcfChbjB0I5kqtSZtW5iSEOXaW/kAsoYlJz0Cw4FCiStjiju85eEtcVkfukPpHdKr\n x0WGbuIUGsh43qpb8DEPFHkvQSREUmhnE5AIg6Yd6xPP4F76ISZ2EHrWu/R8q7qGrt\n eNnIjZ4lu5CmKdcD6pzPM2jntliVk+UIEDI+nTrqN4VFHuk9VspHE3fLm1SW55qjlf\n iI5Sk8pqYJXwj3vidZrQxoXoD5TW4A+Lt94U7B1xGbe9c8hrGHLf7UPzmzkqVbvxdV\n qU9Lnw3h6MAWgvH+sXUZweUc=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777552288; x=1778157088;\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=eNWfpSpXVeoMAtGFlXpXuHDsQpgtmIMQik/aQyA2ssA=;\n b=AFT95WnOXGweL4hoh9C6Mo336EcsXe8gp1iVm0w0LtX/Tcqb4st95PH64LrgxRHpCf\n l7d1HYwSWP8JY3NFglCgGPxlRC/vCctPvjRmDuwf2m6OEajs8zNl2tg0YP83WUtNdP1F\n eL+0JlYAeWoBTdtWJTOcPXdbAUtVZnl3i3ul8VGWkPSBlRabs1ZfhFzSj96BXarT5E6x\n jUbN0vYsolZ9MOa61HId9fBs6TkXFV1URneH39M98i8FEyHcwWkAuLp8LkYyAuWrp4G/\n BWAi8EMtV4fPhR0cIaHMdoVCstQxVLcs0w2eIvLlG4bhoyqUxa0HxqZ0VFCKn5AcfpiE\n Vm8A==","X-Gm-Message-State":"AOJu0YzqPngHs7p7hZEyiGchXT1DhbHzvW90k+H5iWeLTL6wPXt2p5hS\n Ch/LaaqLFs0D4le/HtAU3ifyX/M3dkR6lgIufbOHAygwj4zooRNjqPz+Qh7Sp3+k0YSmIe5E1d/\n oVEtli0hQnZ8T8I4lY7DQDjNxlsbGPbRWGcg9kYtTAcVSzr3foY67ERXQNxEHstFm8lwIboJdet\n h/hSGiyQ7H9sj9jA==","X-Gm-Gg":"AeBDieuU4kmImDp6gGsMqXgxF9te/Z7Hap7DpoSTpm50wUYuodiBGr2V9ldq9b5ropv\n tbJSN8OTXsXnSjHicQw+8MTRza/MMETbfCxn9wrPupmjue51Io92TXJGNf1IEpH7kEmYLh9czgi\n 0R8RqkUiywABzIe1pscLBl7fss3teWai2w7Nz0+4h1jErDC8RCNwFov26hy3ghkmYYaF1vxdL1G\n NNJa25ouSfWZ42I7iN6bJwjecStyoqKMnyqOIo8AyYmICe8HRUkKzpWi++gqReLbNGy4sKVrlw4\n cJlXKc+eMWI0Qnb2ceBeyxo/kD8HBPkp1YxbzJgWb5zdErh57SRe41MCfGzCefc0yIKpHCP2vfY\n ZAP+66zByk1fWrc569T5etznrvjD3GgpikXw2gNfmK8X7S7ABhRMhnXgODSKNClNZACPRNBSXC4\n 4kDjFETtlBz3QZJWSmG6jBK/BRvJfY/uYWjCtNdzHRswoHUDOiQm+z9NSvtEJhNfV99gqaKgncx\n WcSUHanybXoTdlL+6gowpo=","X-Received":["by 2002:a05:600c:3e8e:b0:48a:5339:a46 with SMTP id\n 5b1f17b1804b1-48a86069e04mr34477695e9.9.1777552288412;\n Thu, 30 Apr 2026 05:31:28 -0700 (PDT)","by 2002:a05:600c:3e8e:b0:48a:5339:a46 with SMTP id\n 5b1f17b1804b1-48a86069e04mr34477135e9.9.1777552287922;\n Thu, 30 Apr 2026 05:31:27 -0700 (PDT)"],"From":"Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][N][PATCH 7/8] crypto: authencesn - Fix src offset when\n decrypting in-place","Date":"Thu, 30 Apr 2026 14:30:26 +0200","Message-ID":"\n <54cf9d4efa33ef7965f464e86bbdc12aeee85de0.1777550836.git.massimiliano.pellizzer@canonical.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<cover.1777550836.git.massimiliano.pellizzer@canonical.com>","References":"\n <177754965576.503496.12142658280614619991@tuxedo-infinitybook.public>\n <cover.1777550836.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 129f129344010572dc7407ade1dd89925519eb33 linux-6.12.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 257af38ac4de..c01cc3087919 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","N","7/8"]}