{"id":"CVE-2025-38688","revision":"6e76745a9cc34f3bbff402c821ab51b6","records":[{"revision":"6e76745a9cc34f3bbff402c821ab51b6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-38688","aliases":[],"title":"iommufd: Prevent ALIGN() overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niommufd: Prevent ALIGN() overflow\n\nWhen allocating IOVA the candidate range gets aligned to the target\nalignment. If the range is close to ULONG_MAX then the ALIGN() can\nwrap resulting in a corrupted iova.\n\nOpen code the ALIGN() using get_add_overflow() to prevent this.\nThis simplifies the checks as we don't need to check for length earlier\neither.\n\nConsolidate the two copies of this code under a single helper.\n\nThis bug would allow userspace to create a mapping that overlaps with some\nother mapping or a reserved range.","state":0,"publishedAt":"2025-09-04T15:32:42.607+00:00","modifiedAt":"2026-10-15T22:02:28.092+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/iommu/iommufd/io_pagetable.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"51fe6141f0f64ae0bbc096a41a07572273e8c0ef\",\n                            \"lessThan\": \"d19b817540c0abe84854a64ee9ee34cecc3bbeef\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"51fe6141f0f64ae0bbc096a41a07572273e8c0ef\",\n                            \"lessThan\": \"ebb6021560b94649bec6b8faba6fe0dca2218e81\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"51fe6141f0f64ae0bbc096a41a07572273e8c0ef\",\n                            \"lessThan\": \"e42a046bb41dcdde4f766a17d8211842007ed537\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"51fe6141f0f64ae0bbc096a41a07572273e8c0ef\",\n                            \"lessThan\": \"79fad1917802c28de51a479318a056a6fbe3e2f2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"51fe6141f0f64ae0bbc096a41a07572273e8c0ef\",\n                            \"lessThan\": \"b42497e3c0e74db061eafad41c0cd7243c46436b\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/iommu/iommufd/io_pagetable.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.103\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.43\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.15.11\",\n                            \"lessThanOrEqual\": \"6.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.16.2\",\n                            \"lessThanOrEqual\": \"6.16.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.17\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/d19b817540c0abe84854a64ee9ee34cecc3bbeef","https://git.kernel.org/stable/c/ebb6021560b94649bec6b8faba6fe0dca2218e81","https://git.kernel.org/stable/c/e42a046bb41dcdde4f766a17d8211842007ed537","https://git.kernel.org/stable/c/79fad1917802c28de51a479318a056a6fbe3e2f2","https://git.kernel.org/stable/c/b42497e3c0e74db061eafad41c0cd7243c46436b"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-38688","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-38688","identifiers":["CVE-2025-38688"]},"retained":false,"historicalAffected":[]}],"coverage":[]}