iommufd: Prevent ALIGN() overflow (Linux Linux)

CVE-2025-38688
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Modified

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 51fe6141f0f64ae0bbc096a41a07572273e8c0ef < d19b817540c0abe84854a64ee9ee34cecc3bbeef
affected : ≥ 51fe6141f0f64ae0bbc096a41a07572273e8c0ef < ebb6021560b94649bec6b8faba6fe0dca2218e81
affected : ≥ 51fe6141f0f64ae0bbc096a41a07572273e8c0ef < e42a046bb41dcdde4f766a17d8211842007ed537
affected : ≥ 51fe6141f0f64ae0bbc096a41a07572273e8c0ef < 79fad1917802c28de51a479318a056a6fbe3e2f2
affected : ≥ 51fe6141f0f64ae0bbc096a41a07572273e8c0ef < b42497e3c0e74db061eafad41c0cd7243c46436b
Other versions : unaffected
Linux · Linux
affected : 6.2
unaffected : ≥ 0 < 6.2
unaffected : ≥ 6.6.103 ≤ 6.6.*
unaffected : ≥ 6.12.43 ≤ 6.12.*
unaffected : ≥ 6.15.11 ≤ 6.15.*
unaffected : ≥ 6.16.2 ≤ 6.16.*
unaffected : ≥ 6.17 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD