Skip to content
Heist/ feed
High

iommufd: Prevent ALIGN() overflow

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2025-38688

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-38688

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "51fe6141f0f64ae0bbc096a41a07572273e8c0ef",
        "lessThan": "d19b817540c0abe84854a64ee9ee34cecc3bbeef",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "51fe6141f0f64ae0bbc096a41a07572273e8c0ef",
        "lessThan": "ebb6021560b94649bec6b8faba6fe0dca2218e81",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "51fe6141f0f64ae0bbc096a41a07572273e8c0ef",
        "lessThan": "e42a046bb41dcdde4f766a17d8211842007ed537",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "51fe6141f0f64ae0bbc096a41a07572273e8c0ef",
        "lessThan": "79fad1917802c28de51a479318a056a6fbe3e2f2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "51fe6141f0f64ae0bbc096a41a07572273e8c0ef",
        "lessThan": "b42497e3c0e74db061eafad41c0cd7243c46436b",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/iommu/iommufd/io_pagetable.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.2"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.2",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.103",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.43",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.11",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16.2",
        "versionType": "semver",
        "lessThanOrEqual": "6.16.*"
      },
      {
        "status": "unaffected",
        "version": "6.17",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/iommu/iommufd/io_pagetable.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38688

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30610 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement