# CVE-2025-38688: iommufd: Prevent ALIGN() overflow

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-09-04T15:32:42.607Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iommufd: Prevent ALIGN() overflow

When allocating IOVA the candidate range gets aligned to the target
alignment. If the range is close to ULONG_MAX then the ALIGN() can
wrap resulting in a corrupted iova.

Open code the ALIGN() using get_add_overflow() to prevent this.
This simplifies the checks as we don't need to check for length earlier
either.

Consolidate the two copies of this code under a single helper.

This bug would allow userspace to create a mapping that overlaps with some
other mapping or a reserved range.

(As written by CVE List.)

## Affected

- Linux Linux: from 51fe6141f0f64ae0bbc096a41a07572273e8c0ef before d19b817540c0abe84854a64ee9ee34cecc3bbeef; from 51fe6141f0f64ae0bbc096a41a07572273e8c0ef before ebb6021560b94649bec6b8faba6fe0dca2218e81; from 51fe6141f0f64ae0bbc096a41a07572273e8c0ef before e42a046bb41dcdde4f766a17d8211842007ed537; from 51fe6141f0f64ae0bbc096a41a07572273e8c0ef before 79fad1917802c28de51a479318a056a6fbe3e2f2; from 51fe6141f0f64ae0bbc096a41a07572273e8c0ef before b42497e3c0e74db061eafad41c0cd7243c46436b; 6.2 (not affected: before 6.2; from 6.6.103 up to 6.6.*; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.2 before 6.6.103; from 6.7 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/d19b817540c0abe84854a64ee9ee34cecc3bbeef> (patch)
- <https://git.kernel.org/stable/c/ebb6021560b94649bec6b8faba6fe0dca2218e81> (patch)
- <https://git.kernel.org/stable/c/e42a046bb41dcdde4f766a17d8211842007ed537> (patch)
- <https://git.kernel.org/stable/c/79fad1917802c28de51a479318a056a6fbe3e2f2> (patch)
- <https://git.kernel.org/stable/c/b42497e3c0e74db061eafad41c0cd7243c46436b> (patch)

## Sources

- CVE List: [CVE-2025-38688](https://www.cve.org/CVERecord?id=CVE-2025-38688), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38688](https://nvd.nist.gov/vuln/detail/CVE-2025-38688), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-38688 · Whole record: https://cve.day/CVE-2025-38688.json · Rebuilt by cve.day 2026-11-25T22:59:04.135Z
