CVE-2026-68329 (GCVE-0-2026-68329)

Vulnerability from cvelistv5 – Published: 2026-08-10 12:03 – Updated: 2026-08-17 05:03
VLAI
Title
iommu/amd: Wait for completion instead of returning early in iommu_completion_wait()
Summary
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Wait for completion instead of returning early in iommu_completion_wait() need_sync is a per-IOMMU flag shared by all domains and devices behind that IOMMU. It is set whenever a command is queued with sync == true and cleared when a completion-wait (CWAIT) command is queued. However, a cleared need_sync only means that a covering CWAIT has been queued, not that all previously queued commands have actually completed in hardware. iommu_completion_wait() read need_sync locklessly and returned early when it was false. This breaks the "block until all previously queued commands have completed" contract in a multi-CPU scenario: CPU2: queue inv-B => need_sync = true CPU1: queue CWAIT(N); need_sync = false; then wait_on_sem(N) CPU2: read need_sync == false => return 0 (no wait!) CPU2 returns without waiting for any sequence number even though its inv-B may not have completed yet (CWAIT(N), queued after inv-B, has not been signaled). CPU2 then proceeds to, for example, free page-table pages while the IOMMU can still walk stale translations, opening a use-after-free window. This is a logical race in the meaning of the flag, not a memory-visibility issue, so barriers alone do not help. Fix it without losing the optimization of avoiding redundant CWAIT commands: take iommu->lock before testing need_sync, and when it is false do not return early but wait for the last allocated sequence number (cmd_sem_val). Since need_sync == false implies no sync command was queued after the last CWAIT, that CWAIT is FIFO-ordered after every not-yet-completed command, so waiting for its sequence number guarantees all prior commands (possibly queued by another CPU) have completed. The common path with pending work is unchanged and no extra hardware command is issued.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 815b33fdc279d34ab40a8bfe1866623a4cc5669b , < ab7faf5a172ebfdc423ebb3eea4d472740de82f9 (git)
Affected: 815b33fdc279d34ab40a8bfe1866623a4cc5669b , < 93494bd446396c257fb589f59894577e96e406e2 (git)
Affected: 815b33fdc279d34ab40a8bfe1866623a4cc5669b , < d053eb7e09e10cbdca3fca8b35c1017d438091b2 (git)
Affected: 815b33fdc279d34ab40a8bfe1866623a4cc5669b , < 02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb (git)
Affected: 815b33fdc279d34ab40a8bfe1866623a4cc5669b , < 1e75a8255f11c81fb07e81e5029cfd75804350a0 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.0
Unaffected: 0 , < 3.0 (semver)
Unaffected: 6.6.148 , ≤ 6.6.* (semver)
Unaffected: 6.12.101 , ≤ 6.12.* (semver)
Unaffected: 6.18.42 , ≤ 6.18.* (semver)
Unaffected: 7.1.6 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/iommu/amd/iommu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ab7faf5a172ebfdc423ebb3eea4d472740de82f9",
              "status": "affected",
              "version": "815b33fdc279d34ab40a8bfe1866623a4cc5669b",
              "versionType": "git"
            },
            {
              "lessThan": "93494bd446396c257fb589f59894577e96e406e2",
              "status": "affected",
              "version": "815b33fdc279d34ab40a8bfe1866623a4cc5669b",
              "versionType": "git"
            },
            {
              "lessThan": "d053eb7e09e10cbdca3fca8b35c1017d438091b2",
              "status": "affected",
              "version": "815b33fdc279d34ab40a8bfe1866623a4cc5669b",
              "versionType": "git"
            },
            {
              "lessThan": "02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb",
              "status": "affected",
              "version": "815b33fdc279d34ab40a8bfe1866623a4cc5669b",
              "versionType": "git"
            },
            {
              "lessThan": "1e75a8255f11c81fb07e81e5029cfd75804350a0",
              "status": "affected",
              "version": "815b33fdc279d34ab40a8bfe1866623a4cc5669b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/iommu/amd/iommu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.0"
            },
            {
              "lessThan": "3.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.148",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.101",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.42",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.148",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.101",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.42",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.6",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/amd: Wait for completion instead of returning early in iommu_completion_wait()\n\nneed_sync is a per-IOMMU flag shared by all domains and devices behind\nthat IOMMU. It is set whenever a command is queued with sync == true and\ncleared when a completion-wait (CWAIT) command is queued. However, a\ncleared need_sync only means that a covering CWAIT has been queued, not\nthat all previously queued commands have actually completed in hardware.\n\niommu_completion_wait() read need_sync locklessly and returned early\nwhen it was false. This breaks the \"block until all previously queued\ncommands have completed\" contract in a multi-CPU scenario:\n\n  CPU2: queue inv-B                  =\u003e need_sync = true\n  CPU1: queue CWAIT(N); need_sync = false; then wait_on_sem(N)\n  CPU2: read need_sync == false      =\u003e return 0 (no wait!)\n\nCPU2 returns without waiting for any sequence number even though its\ninv-B may not have completed yet (CWAIT(N), queued after inv-B, has not\nbeen signaled). CPU2 then proceeds to, for example, free page-table\npages while the IOMMU can still walk stale translations, opening a\nuse-after-free window. This is a logical race in the meaning of the\nflag, not a memory-visibility issue, so barriers alone do not help.\n\nFix it without losing the optimization of avoiding redundant CWAIT\ncommands: take iommu-\u003elock before testing need_sync, and when it is\nfalse do not return early but wait for the last allocated sequence\nnumber (cmd_sem_val). Since need_sync == false implies no sync command\nwas queued after the last CWAIT, that CWAIT is FIFO-ordered after every\nnot-yet-completed command, so waiting for its sequence number guarantees\nall prior commands (possibly queued by another CPU) have completed. The\ncommon path with pending work is unchanged and no extra hardware command\nis issued."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The racy `iommu_completion_wait()` is reached through local DMA map/unmap activity \u2014 iommu-dma unmap paths, VFIO/IOMMUFD unmap ioctls, and domain attach/detach \u2014 all driven from the local system rather than from network input.\nAC:L - The attacker drives both sides of the race by issuing concurrent unmap/flush operations on multiple CPUs against the same IOMMU, and can retry indefinitely; each hit frees page-table pages while translations are still live, so no condition outside the attacker\u0027s influence is required.\nPR:L - An unprivileged local user can generate the concurrent IOMMU invalidation traffic needed via ordinary parallel I/O through DMA-API device paths; no root or capability in the init namespace is required, and privileged VFIO users are only one of several entry points.\nUI:N - The race is triggered purely by the attacker\u0027s own concurrent unmap/flush workload; no victim action such as mounting a filesystem or opening a file is needed.\nS:C - The failure defeats IOMMU isolation itself: page-table pages are freed and reused while the IOMMU can still walk them and stale IOTLB entries persist, so a device (including one assigned to a guest or an external peripheral) retains DMA access to host memory outside its domain, crossing the DMA/IOMMU security boundary.\nC:H - Stale translations and use-after-free page tables let a device read host memory that was unmapped, freed, and reallocated to unrelated kernel or user data, yielding effectively arbitrary memory disclosure across the IOMMU boundary.\nI:H - The same stale translations permit device DMA writes into freed and reallocated pages, including page-table pages the IOMMU still walks, giving an arbitrary kernel-memory write primitive usable for control-flow hijacking and privilege escalation.\nA:H - Use-after-free of page-table pages and DMA into reallocated memory corrupt kernel structures and generate IOMMU I/O page faults, leading to oops or panic and full loss of availability."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:03:27.689Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ab7faf5a172ebfdc423ebb3eea4d472740de82f9"
        },
        {
          "url": "https://git.kernel.org/stable/c/93494bd446396c257fb589f59894577e96e406e2"
        },
        {
          "url": "https://git.kernel.org/stable/c/d053eb7e09e10cbdca3fca8b35c1017d438091b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb"
        },
        {
          "url": "https://git.kernel.org/stable/c/1e75a8255f11c81fb07e81e5029cfd75804350a0"
        }
      ],
      "title": "iommu/amd: Wait for completion instead of returning early in iommu_completion_wait()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-68329",
    "datePublished": "2026-08-10T12:03:05.526Z",
    "dateReserved": "2026-07-30T09:28:09.383Z",
    "dateUpdated": "2026-08-17T05:03:27.689Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-68329",
      "date": "2026-08-20",
      "epss": "0.00159",
      "percentile": "0.05552"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-68329\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-10T13:20:23.160\",\"lastModified\":\"2026-08-17T06:17:40.947\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\niommu/amd: Wait for completion instead of returning early in iommu_completion_wait()\\n\\nneed_sync is a per-IOMMU flag shared by all domains and devices behind\\nthat IOMMU. It is set whenever a command is queued with sync == true and\\ncleared when a completion-wait (CWAIT) command is queued. However, a\\ncleared need_sync only means that a covering CWAIT has been queued, not\\nthat all previously queued commands have actually completed in hardware.\\n\\niommu_completion_wait() read need_sync locklessly and returned early\\nwhen it was false. This breaks the \\\"block until all previously queued\\ncommands have completed\\\" contract in a multi-CPU scenario:\\n\\n  CPU2: queue inv-B                  =\u003e need_sync = true\\n  CPU1: queue CWAIT(N); need_sync = false; then wait_on_sem(N)\\n  CPU2: read need_sync == false      =\u003e return 0 (no wait!)\\n\\nCPU2 returns without waiting for any sequence number even though its\\ninv-B may not have completed yet (CWAIT(N), queued after inv-B, has not\\nbeen signaled). CPU2 then proceeds to, for example, free page-table\\npages while the IOMMU can still walk stale translations, opening a\\nuse-after-free window. This is a logical race in the meaning of the\\nflag, not a memory-visibility issue, so barriers alone do not help.\\n\\nFix it without losing the optimization of avoiding redundant CWAIT\\ncommands: take iommu-\u003elock before testing need_sync, and when it is\\nfalse do not return early but wait for the last allocated sequence\\nnumber (cmd_sem_val). Since need_sync == false implies no sync command\\nwas queued after the last CWAIT, that CWAIT is FIFO-ordered after every\\nnot-yet-completed command, so waiting for its sequence number guarantees\\nall prior commands (possibly queued by another CPU) have completed. The\\ncommon path with pending work is unchanged and no extra hardware command\\nis issued.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/iommu/amd/iommu.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"815b33fdc279d34ab40a8bfe1866623a4cc5669b\",\"lessThan\":\"ab7faf5a172ebfdc423ebb3eea4d472740de82f9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"815b33fdc279d34ab40a8bfe1866623a4cc5669b\",\"lessThan\":\"93494bd446396c257fb589f59894577e96e406e2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"815b33fdc279d34ab40a8bfe1866623a4cc5669b\",\"lessThan\":\"d053eb7e09e10cbdca3fca8b35c1017d438091b2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"815b33fdc279d34ab40a8bfe1866623a4cc5669b\",\"lessThan\":\"02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"815b33fdc279d34ab40a8bfe1866623a4cc5669b\",\"lessThan\":\"1e75a8255f11c81fb07e81e5029cfd75804350a0\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/iommu/amd/iommu.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.0\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.0\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.148\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.101\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.42\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.6\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.0,\"impactScore\":6.0}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1e75a8255f11c81fb07e81e5029cfd75804350a0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/93494bd446396c257fb589f59894577e96e406e2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ab7faf5a172ebfdc423ebb3eea4d472740de82f9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d053eb7e09e10cbdca3fca8b35c1017d438091b2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-13T23:28:22+00:00",
      "cve": "CVE-2026-68329",
      "id": "CVE-2026-68329",
      "initial_release_date": "2026-08-10T00:00:00+00:00",
      "product_status:known_affected": "233",
      "product_status:known_not_affected": "43",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: iommu/amd: Wait for completion instead of returning early in iommu_completion_wait()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-68329.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-11T23:47:41Z",
      "cve": "CVE-2026-68329",
      "id": "CVE-2026-68329",
      "initial_release_date": "2026-08-11T23:47:41Z",
      "product_status:known_affected": "296",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-68329",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-68329.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…