{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "edcd69ab9a323b7ac7a86e1c44b6c9c46598391f"
            },
            {
              "fixed": "e09d65fd554b78c7277f6379517c773ff36d55d1"
            },
            {
              "fixed": "e60e6db9d07b2ebaff2e055a086fa8e8d14f565c"
            },
            {
              "fixed": "cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598"
            },
            {
              "fixed": "1f8efac19a0870cdfdf8477e447e5a07ddce9623"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.3.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99685.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niommu/virtio: Reset device before deleting virtqueues on probe failure\n\nviommu_probe() marks the device DRIVER_OK before populating the event\nvirtqueue and registering the IOMMU device in sysfs.  viommu_fill_evtq()\nhands the device a set of device-writable buffers through\nvirtqueue_add_inbuf(), so from that point on the device may write into\nthem and into the rings.\n\nIf either step fails, the error path deletes the virtqueues without\nresetting the device first.  The event buffers are allocated with\ndevm_kmalloc_array() and are released as probe unwinds, so the device can\ngo on writing to memory that has been freed.\n\nReset the device before deleting the virtqueues, the way viommu_remove()\nalready does.",
  "id": "CVE-2026-99685",
  "modified": "2026-11-20T06:45:16.086318490Z",
  "published": "2026-11-20T05:50:31.076Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1f8efac19a0870cdfdf8477e447e5a07ddce9623"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e09d65fd554b78c7277f6379517c773ff36d55d1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e60e6db9d07b2ebaff2e055a086fa8e8d14f565c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99685.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99685"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "iommu/virtio: Reset device before deleting virtqueues on probe failure"
}