{"api_version":"1","generated_at":"2026-11-22T20:39:57+00:00","cve":"CVE-2026-99685","urls":{"html":"https://cve.report/CVE-2026-99685","api":"https://cve.report/api/cve/CVE-2026-99685.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99685","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99685"},"summary":{"title":"iommu/virtio: Reset device before deleting virtqueues on probe failure","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:03","updated_at":"2026-11-22 11:17:06"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"8.4","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.4","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":8.4,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/1f8efac19a0870cdfdf8477e447e5a07ddce9623","name":"https://git.kernel.org/stable/c/1f8efac19a0870cdfdf8477e447e5a07ddce9623","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e09d65fd554b78c7277f6379517c773ff36d55d1","name":"https://git.kernel.org/stable/c/e09d65fd554b78c7277f6379517c773ff36d55d1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598","name":"https://git.kernel.org/stable/c/cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e60e6db9d07b2ebaff2e055a086fa8e8d14f565c","name":"https://git.kernel.org/stable/c/e60e6db9d07b2ebaff2e055a086fa8e8d14f565c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99685","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99685","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected edcd69ab9a323b7ac7a86e1c44b6c9c46598391f e09d65fd554b78c7277f6379517c773ff36d55d1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected edcd69ab9a323b7ac7a86e1c44b6c9c46598391f e60e6db9d07b2ebaff2e055a086fa8e8d14f565c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected edcd69ab9a323b7ac7a86e1c44b6c9c46598391f cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected edcd69ab9a323b7ac7a86e1c44b6c9c46598391f 1f8efac19a0870cdfdf8477e447e5a07ddce9623 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99685","cve":"CVE-2026-99685","epss":"0.001680000","percentile":"0.061860000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/iommu/virtio-iommu.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e09d65fd554b78c7277f6379517c773ff36d55d1","status":"affected","version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","versionType":"git"},{"lessThan":"e60e6db9d07b2ebaff2e055a086fa8e8d14f565c","status":"affected","version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","versionType":"git"},{"lessThan":"cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598","status":"affected","version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","versionType":"git"},{"lessThan":"1f8efac19a0870cdfdf8477e447e5a07ddce9623","status":"affected","version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/iommu/virtio-iommu.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.3"},{"lessThan":"5.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":8.4,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - register_virtio_device() matches VIRTIO_ID_IOMMU and virtio_dev_probe() calls viommu_probe(). The backend forces that path by writing an event-virtqueue used-ring id into the vring viommu_init_vqs() mapped over local PCI, MMIO, or vDPA.\nAC:L - On the vp_set_status() write of DRIVER_OK in virtio_device_ready(), the backend sets the event vq used idx and injects that vq IRQ. viommu_event_handler() reaches virtqueue_get_buf_ctx_split(), which BAD_RINGs because desc_state[].data is still NULL and sets broken, so viommu_fill_evtq()'s virtqueue_add_inbuf() returns -EIO and the pre-fix err_free_vqs path calls del_vqs().\nPR:N - viommu_probe() and virtio_dev_probe() never call capable(). MODULE_DEVICE_TABLE(virtio, id_table) autoloads virtio_iommu and the bus binds a VIRTIO_ID_IOMMU device at enumeration or hotplug, so the backend needs no account on the guest.\nUI:N - The used-ring id is consumed by the event-vq IRQ inside viommu_probe(), before iommu_device_register(). Backend enumeration or hotplug is the attacker's own action and the probe path does not wait on a guest open or mount.\nS:U - The pre-fix err_free_vqs path in viommu_probe() calls del_vqs() with no virtio_reset_device(), and virtio-pci modern del_vq() frees that kernel's vring pages in vring_del_virtqueue() while queue_enable stays set. Those pages belong to the same kernel that probed the device.\nC:H - vring_free_queue() returns the event vq ring pages, whose GPA was programmed into the device at queue setup, to the allocator while the backend still holds that address, so a later DMA read of the reused page discloses the kernel object that replaced the vring.\nI:H - The backend chooses the bytes it DMA-writes through the still-enabled event queue into the vring pages vring_free_queue() has already returned. Reuse of that allocation is a kernel write primitive.\nA:H - A DMA write into the vring after viommu_probe()'s del_vqs() corrupts allocator or slab memory and oopses the probing kernel. Each hotplug of a hostile virtio-iommu device takes the same err_free_vqs path."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:42.939Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/e09d65fd554b78c7277f6379517c773ff36d55d1"},{"url":"https://git.kernel.org/stable/c/e60e6db9d07b2ebaff2e055a086fa8e8d14f565c"},{"url":"https://git.kernel.org/stable/c/cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598"},{"url":"https://git.kernel.org/stable/c/1f8efac19a0870cdfdf8477e447e5a07ddce9623"}],"title":"iommu/virtio: Reset device before deleting virtqueues on probe failure","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99685","datePublished":"2026-11-20T05:50:31.076Z","dateReserved":"2026-09-25T10:25:14.428Z","dateUpdated":"2026-11-22T11:09:42.939Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:03","lastModifiedDate":"2026-11-22 11:17:06","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.5,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99685","Ordinal":"1","Title":"iommu/virtio: Reset device before deleting virtqueues on probe f","CVE":"CVE-2026-99685","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99685","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"iommu/virtio: Reset device before deleting virtqueues on probe f"}]}}}