Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF1D727FD74 for ; Tue, 28 Oct 2025 11:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652297; cv=none; b=I0Efpr6ChwyU8Z2jsij7gfjB0qHBc9LxHdr7qnBGEyCDOl4CWkvwteNp6/VFOXSU7kuoV4H6vPPSMaI2vFxj6OMEg95MtnViZftC7UWkTCE6SrsX99UXTpqHAl7Niaron5VMSVOSkG+SMtqdxPKsRr7tN1GBbBhWHWnOr55y5KI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652297; c=relaxed/simple; bh=RcyVh7+X7nAGxPu8vNlZA3brLb2W+m8LrK3BPTA6ois=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Zy8MgYhMvP9lcluu3MJEg53uqpRzat/+0kR2FiI2Jq/KLtOFEIJvLeocc3eBrm6z1wsynL8qZMN41I0Ye8ZpOAE4PdVC5X/DZsg065uMHac2rTppIX1H4IHyZnr2xqo8kDbawIiXbG18sSNAtyiLAOXojvc61gC06kj7Kh8ldBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=svlJf0UF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="svlJf0UF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E19E6C4CEE7; Tue, 28 Oct 2025 11:51:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652296; bh=RcyVh7+X7nAGxPu8vNlZA3brLb2W+m8LrK3BPTA6ois=; h=From:To:Cc:Subject:Date:Reply-to:From; b=svlJf0UFgfYAGQVLS3AqAFBU9hEcPvhgX0MHNsq/0mPO5GnBoH6V+6M14cjBDl12Z /e38Q23oPBRyXGkZ4w48WwgUjT2z5PsyKgPW8SuMkJ+uER3P4AUX4/s2XbEdbICI4q zrNqNiUc0E1kusoL60rH6fQ2LhRVDtLY1si+Lbxo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40051: vhost: vringh: Modify the return value check Date: Tue, 28 Oct 2025 12:48:28 +0100 Message-ID: <2025102814-CVE-2025-40051-7b58@gregkh> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2551; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tD+mLg9ydaTx1zEvSW8WUUHTLieFidGjhn54WtInIM4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa+tmbPu4Imr/N75zv7Tu+M//63x3PwNf5IMLkX2ax yQ/ec5Z3hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT2WrMsGCNjN3Sx/pa/2cq fmaT+Jj1QPETWwPDbPZbuj46685/t59if0oiYXLGqyP/MwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: vhost: vringh: Modify the return value check The return value of copy_from_iter and copy_to_iter can't be negative, check whether the copied lengths are equal. The Linux kernel CVE team has assigned CVE-2025-40051 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.1.156 with commit db042925a5ab7a550b710addeadbf6f72e3a8a4b Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.6.112 with commit 78dc7362662fedaa1928fb8e4f27401c8322905d Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.12.53 with commit baa37b1c7e29546f79c39bef0d18c4edc9f39bb1 Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.17.3 with commit cfa0654402c06d086201a9ff167eb95da5844fc3 Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.18-rc1 with commit 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-40051 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/vhost/vringh.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/db042925a5ab7a550b710addeadbf6f72e3a8a4b https://git.kernel.org/stable/c/78dc7362662fedaa1928fb8e4f27401c8322905d https://git.kernel.org/stable/c/baa37b1c7e29546f79c39bef0d18c4edc9f39bb1 https://git.kernel.org/stable/c/cfa0654402c06d086201a9ff167eb95da5844fc3 https://git.kernel.org/stable/c/82a8d0fda55b35361ee7f35b54fa2b66d7847d2b