{
  "id": "CVE-2026-68329",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-68329",
  "published_at": "2026-08-10T12:03:05.526Z",
  "title": "iommu/amd: Wait for completion instead of returning early in iommu_completion_wait()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-362",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 815b33fdc279d34ab40a8bfe1866623a4cc5669b, \u003c 82c9a749d44efaaa1a1c781f8a6cf1747718f228",
          "\u003e= 815b33fdc279d34ab40a8bfe1866623a4cc5669b, \u003c ab7faf5a172ebfdc423ebb3eea4d472740de82f9",
          "\u003e= 815b33fdc279d34ab40a8bfe1866623a4cc5669b, \u003c 93494bd446396c257fb589f59894577e96e406e2",
          "\u003e= 815b33fdc279d34ab40a8bfe1866623a4cc5669b, \u003c d053eb7e09e10cbdca3fca8b35c1017d438091b2",
          "\u003e= 815b33fdc279d34ab40a8bfe1866623a4cc5669b, \u003c 02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb",
          "\u003e= 815b33fdc279d34ab40a8bfe1866623a4cc5669b, \u003c 1e75a8255f11c81fb07e81e5029cfd75804350a0"
        ],
        "fixed_in": [
          "82c9a749d44efaaa1a1c781f8a6cf1747718f228",
          "ab7faf5a172ebfdc423ebb3eea4d472740de82f9",
          "93494bd446396c257fb589f59894577e96e406e2",
          "d053eb7e09e10cbdca3fca8b35c1017d438091b2",
          "02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb",
          "1e75a8255f11c81fb07e81e5029cfd75804350a0"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.0"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.148",
          "6.12.101",
          "6.18.42",
          "7.1.6",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 82c9a749d44efaaa1a1c781f8a6cf1747718f228 or ab7faf5a172ebfdc423ebb3eea4d472740de82f9 or 93494bd446396c257fb589f59894577e96e406e2 or d053eb7e09e10cbdca3fca8b35c1017d438091b2 or 02f8cefa2ad95ea3754f0cfd6fbae7f866202ccb or 1e75a8255f11c81fb07e81e5029cfd75804350a0 or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
