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 E91CD25D1F1 for ; Tue, 20 May 2025 15:23:26 +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=1747754607; cv=none; b=hivNhV6vW8t4ArkN1Cl2QfyBQViEdGhPpItJlQPGNj3guYDEXPajVHi0CSSV3l4s23IzSKBDaU56joH+vL+Ga4lxgHLx//yBUN1V32YN1b8samqPiQmcL4KPvXu0tfhNcLPnLdIXcd7hFfM0EEvsyLH48MeAji4Mo08OYHEZsF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754607; c=relaxed/simple; bh=njAFMGehfdDSLCFl/fnB75/5WhKhRBryU1t8j3eN+8o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MJVDdQ2Gqlqz7ZiteFDjEPwgLymXhKAbK+jDkUTPL4IyJrTDkvETcjnLl7HRbR/J737KZBDSaU5sgOHuLaaY9LKw7V8VEW5fLHPfp1cNImp1ASPNC7s4x9ZsJ445LiDfgjO0zkcsfrqtbfnX6omyJqSB7ik9/OBLlmIuPr/gZZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=urCj4p3C; 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="urCj4p3C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54817C4CEE9; Tue, 20 May 2025 15:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754606; bh=njAFMGehfdDSLCFl/fnB75/5WhKhRBryU1t8j3eN+8o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=urCj4p3Cei5u2jq4AtJLLXTSjFqEGDKaw+C2G03BY5tnPgAX9JwnJU6BSmWPK8ckM ELfbFFPxXaQbca1sLBEkyOS95Fj6flHqvLXY3No+Y+TINNsZ1B/VM4hJhzxI/0tBCw JE9XjrMgTtpOVvLnRm7k5nGo/2ewNn+Yh31ykSeA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37900: iommu: Fix two issues in iommu_copy_struct_from_user() Date: Tue, 20 May 2025 17:21:57 +0200 Message-ID: <2025052055-CVE-2025-37900-717c@gregkh> X-Mailer: git-send-email 2.49.0 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=2437; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DBIAXmTnICsB7TTHYaX/xVu7XVaGuJY17S8yuTH9BTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk684Tb0++fCpTr5nadm33z593A3m3/X1cmSt7YPPXmp ebo1uuJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAReTmGBQfDZtalnbKwTmvd WGAYa/PtzW6PdwwLTr0wus8+NeqKb8C8PScTHjq2dFvoAwA= 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: iommu: Fix two issues in iommu_copy_struct_from_user() In the review for iommu_copy_struct_to_user() helper, Matt pointed out that a NULL pointer should be rejected prior to dereferencing it: https://lore.kernel.org/all/86881827-8E2D-461C-BDA3-FA8FD14C343C@nvidia.com And Alok pointed out a typo at the same time: https://lore.kernel.org/all/480536af-6830-43ce-a327-adbd13dc3f1d@oracle.com Since both issues were copied from iommu_copy_struct_from_user(), fix them first in the current header. The Linux kernel CVE team has assigned CVE-2025-37900 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit e9d36c07bb787840e4813fb09a929a17d522a69f and fixed in 6.12.28 with commit 2e303d010722787dc84d94f68d70fe10dfc1b9ea Issue introduced in 6.7 with commit e9d36c07bb787840e4813fb09a929a17d522a69f and fixed in 6.14.6 with commit 967d6f0d9a20a1bf15ee7ed881e2d4e532e22709 Issue introduced in 6.7 with commit e9d36c07bb787840e4813fb09a929a17d522a69f and fixed in 6.15-rc5 with commit 30a3f2f3e4bd6335b727c83c08a982d969752bc1 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-37900 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: include/linux/iommu.h 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/2e303d010722787dc84d94f68d70fe10dfc1b9ea https://git.kernel.org/stable/c/967d6f0d9a20a1bf15ee7ed881e2d4e532e22709 https://git.kernel.org/stable/c/30a3f2f3e4bd6335b727c83c08a982d969752bc1