# CVE-2026-90242: iommu/vt-d: Fix iopf_refcount leak on RID domain replacement

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-09-17T16:07:45.817Z
- Modified: 2026-10-19T09:19:14.683Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iommu/vt-d: Fix iopf_refcount leak on RID domain replacement

intel_iommu_attach_device() enables IOPF for the new domain but never
disables it for the old one.  device_block_translation(), called at the
start of the function, tears down translation but does not touch any IOPF
state; blocking_domain_attach_dev() has to call iopf_for_domain_remove()
explicitly before invoking it for exactly this reason.

identity_domain_attach_dev() has the same problem.  Its comment claims
that no PRI handling is needed because the device has been put in the
blocking state, but the blocking state and the IOPF reference count are
independent of each other.

As a result, replacing a domain that has an iopf_handler with another
domain at RID level leaks a reference in info->iopf_refcount.  The count
never drops back to zero, so iopf_queue_remove_device() is never called
and iommu_disable_pci_pri() triggers its WARN_ON(info->iopf_refcount)
when the device is released.

The PASID paths already handle this correctly by way of
iopf_for_domain_replace(); convert the two RID paths to do the same.
Using the replace helper rather than a bare remove keeps the enable
before the disable, so the reference count does not transiently reach
zero and evict the device from the IOPF queue.

(As written by CVE List.)

## Affected

- Linux Linux: from 17fce9d2336d952b95474248303e5e7d9777f2e0 before 243bf1e45e40be4705aae17c5044bf83df5f4a92; from 17fce9d2336d952b95474248303e5e7d9777f2e0 before 143cd37ce76527ddd6f6dbac4a89bde31fb8b0dc; from 17fce9d2336d952b95474248303e5e7d9777f2e0 before 236dd58fabd2e951b940a6ad88b81147899ed311; 6.16 (not affected: before 6.16; from 6.18.57 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/243bf1e45e40be4705aae17c5044bf83df5f4a92>
- <https://git.kernel.org/stable/c/143cd37ce76527ddd6f6dbac4a89bde31fb8b0dc>
- <https://git.kernel.org/stable/c/236dd58fabd2e951b940a6ad88b81147899ed311>

## Sources

- CVE List: [CVE-2026-90242](https://www.cve.org/CVERecord?id=CVE-2026-90242), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90242](https://nvd.nist.gov/vuln/detail/CVE-2026-90242), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90242 · Whole record: https://cve.day/CVE-2026-90242.json · Rebuilt by cve.day 2026-11-25T22:59:39.354Z
