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 856E2285C8D for ; Tue, 28 Oct 2025 11:54:29 +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=1761652469; cv=none; b=YCpZU+gYQcPithMQ+wb606+5Wzeb5bDH4ajoZvINzOgslXvySjsw7BfwExSVo7C7ZGk4wW9v5EedCqrDYhgyZ9+y7xSb4GvnmxxnC7RVBjqdVt2RY8MWXZb1hKdfxeWNHns1wQfNwuvDgJUtNxNFG8bpHtPnnywhgwwGP6Ymp70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652469; c=relaxed/simple; bh=4PoOl7OGMaEj5M1zRVU7+wrbER07t8SbNpnVY+vWDo0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JXg/qMQfmu+3o4aEwRcjJLpvSeK1adSFpXcm4jey6niTNrL3VwBgNCLRtK6r8fwsAI1oCZKoiZH68X8+8NIobUUw8GwkRhUbW3+5op9D9q8ytPoG5HO6Kb5sonXnuhxmxQuUQ1pdBM7z/NBQ4sf2nTTfL3eenXprxTxiIBXdtm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=csatF2h4; 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="csatF2h4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53E8EC4CEF7; Tue, 28 Oct 2025 11:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652469; bh=4PoOl7OGMaEj5M1zRVU7+wrbER07t8SbNpnVY+vWDo0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=csatF2h4wASre+26I8fAgfrvXP4zWx2izf3A3J7ynjV4qabfpm/wpvuUO/AJatFyh KU8U/9rxmwa+AI3mhxtyFXJUNU0sfdC0zwAnx/cRgTRrw++zmoK7Kg1crcXXcz6rN0 //BOHqtFTf+dpIN8VdptTJh5tEA1qBrUZB1TYdDs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40056: vhost: vringh: Fix copy_to_iter return value check Date: Tue, 28 Oct 2025 12:48:33 +0100 Message-ID: <2025102815-CVE-2025-40056-0a6b@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=2601; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qd6Ah5pfS0oHikUy9qocH+NBLobSfMHOAxt1ANxNCIM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa+vL/n5SvJZ16ofTnI4f3N8/f/jquWTzzrJj+Zub3 2w0TynZ1BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATcWRiWHD8/r5eQ9aaXGO2 liXanMHvDLYrfGNYsCRwcb7Pwbh/momLTzxbfUTV4tbyjQA= 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: Fix copy_to_iter return value check The return value of copy_to_iter can't be negative, check whether the copied length is equal to the requested length instead of checking for negative values. The Linux kernel CVE team has assigned CVE-2025-40056 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.1.156 with commit bd71e7e0a612740e4de5524880c7cd40293af5f7 Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.6.112 with commit 781226e11d5bdea0d69c7b5aa3cda874093c73b8 Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.12.53 with commit b3a950d236e98440c07405ba597b11bce56a8050 Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.17.3 with commit 68aac2b335d474b938d154b9c95cbc58838cb2ce Issue introduced in 6.0 with commit 309bba39c945ac8ab8083ac05cd6cfe5822968e0 and fixed in 6.18-rc1 with commit 439263376c2c4e126cac0d07e4987568de4eaba5 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-40056 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/bd71e7e0a612740e4de5524880c7cd40293af5f7 https://git.kernel.org/stable/c/781226e11d5bdea0d69c7b5aa3cda874093c73b8 https://git.kernel.org/stable/c/b3a950d236e98440c07405ba597b11bce56a8050 https://git.kernel.org/stable/c/68aac2b335d474b938d154b9c95cbc58838cb2ce https://git.kernel.org/stable/c/439263376c2c4e126cac0d07e4987568de4eaba5