CVE-2025-38688
JSON

8.8high

iommufd: Prevent ALIGN() overflow

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 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.2NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: iommufd: Prevenir desbordamiento de ALIGN() Al asignar IOVA, el rango candidato se alinea con la alineación objetivo. Si el rango está cerca de ULONG_MAX, entonces ALIGN() puede envolver, resultando en un iova corrupto. Codificar abiertamente ALIGN() usando get_add_overflow() para prevenir esto. Esto simplifica las comprobaciones, ya que tampoco necesitamos comprobar la longitud antes. Consolidar las dos copias de este código bajo una única función auxiliar. Este error permitiría al espacio de usuario crear una asignación que se superpone con alguna otra asignación o un rango reservado.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38688 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38688 changed 2026-10-19Public domain