get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2231247/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2231247,
    "url": "http://patchwork.ozlabs.org/api/patches/2231247/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/e34b2f5a09d7afdd4854c0d8a4d33a8b09886eee.1777549821.git.massimiliano.pellizzer@canonical.com/",
    "project": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/projects/15/?format=api",
        "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": "<e34b2f5a09d7afdd4854c0d8a4d33a8b09886eee.1777549821.git.massimiliano.pellizzer@canonical.com>",
    "list_archive_url": null,
    "date": "2026-04-30T12:30:18",
    "name": "[SRU,Q,5/5] crypto: af_alg - Fix page reassignment overflow in af_alg_pull_tsgl",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7e10657449049e369d7808540b322226964572fe",
    "submitter": {
        "id": 89057,
        "url": "http://patchwork.ozlabs.org/api/people/89057/?format=api",
        "name": "Massimiliano Pellizzer",
        "email": "massimiliano.pellizzer@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/e34b2f5a09d7afdd4854c0d8a4d33a8b09886eee.1777549821.git.massimiliano.pellizzer@canonical.com/mbox/",
    "series": [
        {
            "id": 502297,
            "url": "http://patchwork.ozlabs.org/api/series/502297/?format=api",
            "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/2231247/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231247/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=MX5ET7yr;\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 4g5tnx0BmDz1yK1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 22:31:30 +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 1wIQY7-0004SH-Bg; Thu, 30 Apr 2026 12:31:23 +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 1wIQY6-0004R7-Fd\n for kernel-team@lists.ubuntu.com; Thu, 30 Apr 2026 12:31:22 +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 4812E3F427\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 12:31:22 +0000 (UTC)",
            "by mail-wm1-f70.google.com with SMTP id\n 5b1f17b1804b1-488c2a4e257so7309875e9.3\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 05:31:22 -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.20\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:20 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777552282;\n bh=1nGzgMsmcoFo/eLzrRhs5jF4TxwbAK5QfKwO3GmJj4M=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=MX5ET7yrOig53s59AVzpCILyxolXnN+DDCTynLeC0hL1aoScv2KYUbnG7C1hhYcjp\n YwMuKXAbIksUfQq0W7Ki0+Z9ke44qrnOwm1NB/sXwih/PEkwVXMe2kd1r/geubA5cp\n JM+BLopxqa1NELk+PZS5hp7f/iwbyfCUkDox9HE1IEg5idcE8gIJrDBNhMMYKgcMvi\n OTJ/BsJnFALnDyr+DHtGmaNOdtP4s1wOhdZDpNB4ro+AyPGYSTm2HyZQ0jNd4MV5Zc\n 2t94xC101tcz97yrOF1hcasV07D6Hcgavcdn34dylwebAw1Zr1+AL/ZxX0T/UXCp7V\n xodh/CxSAAuA3KAnfwtR/C6VczFANDJF5CiIvLc6jpXEv+j6Z5yCEqT7Yh4D7BR/Ph\n XWTSJFuBELNiK/CecjctlFgk8OdFJE0A85x3+27jUGimDndrLcy4IIIYzFk6fmjtUx\n rHZp/p2ozn6Bbc0RzuoQE2EShzINdaom9wpqNIlQsmVlXVZ/SHHlPB0bJyOaHoOv5E\n IS1nOfWUcqm4Hr0UT64gvFYJ2Onr8gIFjJbqoCbpZr9awabh4UOaXXtfOEh16vZCkU\n OCYLTw7MlWmtFIaedJOa5AYIjh5U+hIxaIQotL0EbO5aCom7fXWIVJhzQ2qR7xYvv3\n rYAgCI0NoC9OfBKPmIIOt5y0=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777552281; x=1778157081;\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=1nGzgMsmcoFo/eLzrRhs5jF4TxwbAK5QfKwO3GmJj4M=;\n b=o5l4QGgKXwgi9hVX/is3NDcY7xFA6lXGiV5V5TRS4dljU604P6bYbnQqVJPc91d3RB\n MrhpXg0Wi3gPs/H+dqeb1MhK1GUVFZoNyUy1wlIVCcHsl/TotRIhKrrZdHApx6tFyUVk\n ViQy78ZNPh94g4gy9kye7aZzua56ydQ4ihL/yUQeekr9rAwGe2JiZZgdsRywHe7ZdK1g\n 2tNi8mr2vWaCx4WydpN4eiv7TlNgEm0HGBmN65cKewr1T3GzQvFIDcWYwc8lvuJuhpd9\n OAvRyImBkxkAqiXfpRs51dGRdOdTkOKnjEFVaHTKbtAClb/ap8Rt2m8Du16s01rwqCIJ\n AhYQ==",
        "X-Gm-Message-State": "AOJu0Yzd2NQf8szWOwgTKbt5OJ0cdkITPrCXhhWj3YZEcwtQ1ugZYegN\n n2Z+irKWg9zsyL/tf7aBI3nodZz02jyk4G0EQ+DeiA8nvBU/JR+ARwUB2cOOqK48nQeqkRm8ezZ\n UwlbwrqczAQMHWEQLVyIBL/IoJeG4cWq5T3ZFKiIBzLgx76VR77Pmfkbb9CGk2UbcdXjoqEgB2T\n 9jyjC63RyknyUiow==",
        "X-Gm-Gg": "AeBDiesc6W1tLIG0XjziyHgwOVPt5UTJvbsO96XFwfqPiYlrdisYi9YEr/qQs4Ww3Pm\n BWyvvaAltiSxidITpScpGtCEUQf8NdR4B8g2JTGRI7LrnnXgoGuZN3g2oVq3IWRiDTNEQq/w+3y\n CYHYHkB8SOgRsh5bJMj98QDP2KNrVsBDr5pyVQIVpysS4gUdOvMh68HZTWAdiO1JMgOwqDsjbiW\n uSrpf9hDfCLU0lYNh+rmVjnAL4pZxCEKFEtNFEXp7l0FE3o/vYYCNNiHDeVrnBdw7AoTNCkcx3Q\n 3XMMC9huQaOj8UnpBTDEbdndgi6gci4FurHb4cT+rPb6qRkE5uz3IfMgKDabXmPYMHXd+Ewu9Pu\n 3SmZX14mvv+zbF1QpA/n+SGDQrOMtvIl6xrSbTS9+0QTqSC75OFv47fpS9hYH10I66ArFQYPxwS\n rNXE/bfuVTCHBh8hjn5wrEVIjxktNvZZVmxi2enZjyFRbqvtgWlXqMMyzRZJDiZ+2iHsg4WB/UN\n kshI2Bj6nUPSQffg2b8zFc=",
        "X-Received": [
            "by 2002:a05:600c:888a:b0:48a:6268:18a9 with SMTP id\n 5b1f17b1804b1-48a8444157fmr30244785e9.13.1777552281318;\n Thu, 30 Apr 2026 05:31:21 -0700 (PDT)",
            "by 2002:a05:600c:888a:b0:48a:6268:18a9 with SMTP id\n 5b1f17b1804b1-48a8444157fmr30244445e9.13.1777552280786;\n Thu, 30 Apr 2026 05:31:20 -0700 (PDT)"
        ],
        "From": "Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>",
        "To": "kernel-team@lists.ubuntu.com",
        "Subject": "[SRU][Q][PATCH 5/5] crypto: af_alg - Fix page reassignment overflow\n in af_alg_pull_tsgl",
        "Date": "Thu, 30 Apr 2026 14:30:18 +0200",
        "Message-ID": "\n <e34b2f5a09d7afdd4854c0d8a4d33a8b09886eee.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\nWhen page reassignment was added to af_alg_pull_tsgl the original\nloop wasn't updated so it may try to reassign one more page than\nnecessary.\n\nAdd the check to the reassignment so that this does not happen.\n\nAlso update the comment which still refers to the obsolete offset\nargument.\n\nReported-by: syzbot+d23888375c2737c17ba5@syzkaller.appspotmail.com\nFixes: e870456d8e7c (\"crypto: algif_skcipher - overhaul memory management\")\nSigned-off-by: Herbert Xu <herbert@gondor.apana.org.au>\n(cherry picked from commit 31d00156e50ecad37f2cb6cbf04aaa9a260505ef)\nCVE-2026-31431\nSigned-off-by: Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>\n---\n crypto/af_alg.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/crypto/af_alg.c b/crypto/af_alg.c\nindex c1306b3cb67d..9cedb4671e4e 100644\n--- a/crypto/af_alg.c\n+++ b/crypto/af_alg.c\n@@ -703,8 +703,8 @@ void af_alg_pull_tsgl(struct sock *sk, size_t used, struct scatterlist *dst)\n \t\t\t * Assumption: caller created af_alg_count_tsgl(len)\n \t\t\t * SG entries in dst.\n \t\t\t */\n-\t\t\tif (dst) {\n-\t\t\t\t/* reassign page to dst after offset */\n+\t\t\tif (dst && plen) {\n+\t\t\t\t/* reassign page to dst */\n \t\t\t\tget_page(page);\n \t\t\t\tsg_set_page(dst + j, page, plen, sg[i].offset);\n \t\t\t\tj++;\n",
    "prefixes": [
        "SRU",
        "Q",
        "5/5"
    ]
}