{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99685","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.428Z","datePublished":"2026-11-20T05:50:31.076Z","dateUpdated":"2026-11-22T11:09:42.939Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:42.939Z"},"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":{"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"},"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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/virtio-iommu.c"],"versions":[{"version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","lessThan":"e09d65fd554b78c7277f6379517c773ff36d55d1","status":"affected","versionType":"git"},{"version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","lessThan":"e60e6db9d07b2ebaff2e055a086fa8e8d14f565c","status":"affected","versionType":"git"},{"version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","lessThan":"cfdb3b6915299ebb6ffc98566f9cf73d4d1f1598","status":"affected","versionType":"git"},{"version":"edcd69ab9a323b7ac7a86e1c44b6c9c46598391f","lessThan":"1f8efac19a0870cdfdf8477e447e5a07ddce9623","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iommu/virtio-iommu.c"],"versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.4-rc2"}]}]}],"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"}}}}