Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2232022/?format=api
{ "id": 2232022, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2232022/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502083422.2955909-2-zisenye@stu.xidian.edu.cn/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.2/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260502083422.2955909-2-zisenye@stu.xidian.edu.cn>", "list_archive_url": null, "date": "2026-05-02T08:34:21", "name": "[1/2] smb/client: fix out-of-bounds read in smb2_compound_op()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "76dfc9c200e78a08413a4c5674b4805a126f3c72", "submitter": { "id": 93303, "url": "http://patchwork.ozlabs.org/api/1.2/people/93303/?format=api", "name": "Zisen Ye", "email": "zisenye@stu.xidian.edu.cn" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502083422.2955909-2-zisenye@stu.xidian.edu.cn/mbox/", "series": [ { "id": 502519, "url": "http://patchwork.ozlabs.org/api/1.2/series/502519/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502519", "date": "2026-05-02T08:34:21", "name": "smb/client: fix out-of-bounds read", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502519/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232022/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232022/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11352-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" header.d=stu.xidian.edu.cn\n header.i=@stu.xidian.edu.cn header.a=rsa-sha256 header.s=dkim\n header.b=3ZVQHhZ5;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11352-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=fail reason=\"key not found in DNS\" (0-bit key)\n header.d=stu.xidian.edu.cn header.i=@stu.xidian.edu.cn header.b=\"3ZVQHhZ5\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=162.243.164.118", "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=stu.xidian.edu.cn", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=stu.xidian.edu.cn" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g71b02C3Kz1yK9\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 02 May 2026 18:41:00 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id E96A2300FB4B\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 2 May 2026 08:40:56 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 348F52D2486;\n\tSat, 2 May 2026 08:40:54 +0000 (UTC)", "from zg8tmtyylji0my4xnjqumte4.icoremail.net\n (zg8tmtyylji0my4xnjqumte4.icoremail.net [162.243.164.118])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0F07511CBA\n\tfor <linux-cifs@vger.kernel.org>; Sat, 2 May 2026 08:40:49 +0000 (UTC)", "from Jason.localdomain (unknown [113.200.174.116])\n\tby hzbj-edu-front-3.icoremail.net (Coremail) with SMTP id\n BbQMCkDG7TcQt_VpG0ziAQ--.40690S3;\n\tSat, 02 May 2026 16:40:13 +0800 (CST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777711254; cv=none;\n b=rHouq4hUUUouWHZFqo+wSoxwRmbT3oL3v0ZbaKYnCrjHG6ImYrXsXxKjUn2FFkrPSPMkeHXLLLc/YP5B31qnXzavbBGqKAoS1e6CkgG8ZgvVfbG6N3YCXV6+UfSaHza6EugaT3g2FliqLY8VmEh9+TrTd3opTucAQJGTGIPOaUo=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777711254; c=relaxed/simple;\n\tbh=4zJzuWkWZUlEfF6j9DXUAAkxoa0QR6tLWS4/v+aEEc0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=M6cjFRWAvZUbNgODnVemlcG2zAaFjZVxwMsqOEtUaRTSC8muk0snjQy0ySi1zhamQoSvGWltAY3lMOoLhz+4Q+WYj1jFIRfruSNKiVgPVHxUWTq/LCI6OyhpGdVk/5iB/P9E/uRpbbbYi3Vfd4wlRaUPbX2zyu3BMzdjVjdMiFA=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=stu.xidian.edu.cn;\n spf=pass smtp.mailfrom=stu.xidian.edu.cn;\n dkim=fail (0-bit key) header.d=stu.xidian.edu.cn header.i=@stu.xidian.edu.cn\n header.b=3ZVQHhZ5 reason=\"key not found in DNS\";\n arc=none smtp.client-ip=162.243.164.118", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=stu.xidian.edu.cn; s=dkim; h=Received:From:To:Cc:Subject:Date:\n\tMessage-ID:In-Reply-To:References:MIME-Version:\n\tContent-Transfer-Encoding; bh=3zCkl6GHL8tQauwpxKEjEy52my98rWDHfR\n\tZSnJJCSGY=; b=3ZVQHhZ5CAMTRSBx0m1mv56h9W4CvrUFtGhlivxvpyNoU0pn2d\n\tZPj4DWt+U8STfi4rc2omgXhmy8q5FyLVzHQ727Fo24Gl0bcgEzCQz3GzIyeyeV7l\n\thnttvP/OZj3RYO25kfvc35QrtLwJLuYxu7VaAl6iFFTAkRHxRcmDXhHGA=", "From": "Zisen Ye <zisenye@stu.xidian.edu.cn>", "To": "smfrench@gmail.com,\n\tlinkinjeon@kernel.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tbharathsm@microsoft.com,\n\tsenozhatsky@chromium.org,\n\tdhowells@redhat.com,\n\tchenxiaosong@chenxiaosong.com,\n\tgregkh@linuxfoundation.org", "Cc": "linux-cifs@vger.kernel.org,\n\tZisen Ye <zisenye@stu.xidian.edu.cn>,\n\tChenXiaoSong <chenxiaosong@kylinos.cn>", "Subject": "[PATCH 1/2] smb/client: fix out-of-bounds read in smb2_compound_op()", "Date": "Sat, 2 May 2026 16:34:21 +0800", "Message-ID": "<20260502083422.2955909-2-zisenye@stu.xidian.edu.cn>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260502083422.2955909-1-zisenye@stu.xidian.edu.cn>", "References": "<20260502083422.2955909-1-zisenye@stu.xidian.edu.cn>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.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rwCI42IY\n\t6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6x\n\tAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY\n\t1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUjrHUDUUUUU==", "X-CM-SenderInfo": "ysvqjiqsrsjkus6v33wo0lvxldqovvfxof0/1tbiAQUBEGn0w9pVCAABsN" }, "content": "If a server sends a truncated response but a large OutputBufferLength, and\nterminates the EA list early, check_wsl_eas() returns success without\nvalidating that the entire OutputBufferLength fits within iov_len.\n\nThen smb2_compound_op() does:\n memcpy(idata->wsl.eas, data[0], size[0]);\n\nWhere size[0] is OutputBufferLength. If iov_len is smaller than size[0],\nmemcpy can read beyond the end of the rsp_iov allocation and leak adjacent\nkernel heap memory.\n\nLink: https://lore.kernel.org/linux-cifs/d998240c-aca9-420d-9dbd-f5ba24af19e0@chenxiaosong.com/\nSigned-off-by: Zisen Ye <zisenye@stu.xidian.edu.cn>\nReviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>\n---\n fs/smb/client/smb2inode.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/fs/smb/client/smb2inode.c b/fs/smb/client/smb2inode.c\nindex 286912616c73..a192d70cd29e 100644\n--- a/fs/smb/client/smb2inode.c\n+++ b/fs/smb/client/smb2inode.c\n@@ -121,6 +121,9 @@ static int check_wsl_eas(struct kvec *rsp_iov)\n \tea = (void *)((u8 *)rsp_iov->iov_base +\n \t\t le16_to_cpu(rsp->OutputBufferOffset));\n \tend = (u8 *)rsp_iov->iov_base + rsp_iov->iov_len;\n+\tif (ea + outlen > end)\n+\t\treturn -EINVAL;\n+\n \tfor (;;) {\n \t\tif ((u8 *)ea > end - sizeof(*ea))\n \t\t\treturn -EINVAL;\n", "prefixes": [ "1/2" ] }