{"id":"CVE-2025-38688","summary":"iommufd: Prevent ALIGN() overflow","details":"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.","modified":"2026-04-16T04:43:21.625068367Z","published":"2025-09-04T15:32:42.607Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38688.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/79fad1917802c28de51a479318a056a6fbe3e2f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b42497e3c0e74db061eafad41c0cd7243c46436b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d19b817540c0abe84854a64ee9ee34cecc3bbeef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e42a046bb41dcdde4f766a17d8211842007ed537"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ebb6021560b94649bec6b8faba6fe0dca2218e81"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38688.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38688"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"51fe6141f0f64ae0bbc096a41a07572273e8c0ef"},{"fixed":"d19b817540c0abe84854a64ee9ee34cecc3bbeef"},{"fixed":"ebb6021560b94649bec6b8faba6fe0dca2218e81"},{"fixed":"e42a046bb41dcdde4f766a17d8211842007ed537"},{"fixed":"79fad1917802c28de51a479318a056a6fbe3e2f2"},{"fixed":"b42497e3c0e74db061eafad41c0cd7243c46436b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38688.json"}}],"schema_version":"1.7.5"}