| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37900: iommu: Fix two issues in iommu_copy_struct_from_user() |
| |
| 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 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 |