# CVE-2026-89445: iommufd: Fix UAF in selftest IOPF reporting

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-09-11T19:43:12.765Z
- Modified: 2026-10-19T09:17:36.597Z
- Assigned by: Linux

## Description

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

iommufd: Fix UAF in selftest IOPF reporting

IOMMUFD selftest TRIGGER_IOPF borrows an attach handle from
group->pasid_array without synchronizing against PASID detach,
then a concurrent iommu_report_device_fault() can dereference
that borrowed handle's domain pointer after the detach erases
the handle and frees the backing struct iommufd_attach_handle.
TRIGGER_IOPF then dereferences the freed handle, causing a UAF.

Fix by adding a iopf_rwsem in mock_dev to follow the expected design
of a real driver. Hold its read side across the whole
iommu_report_device_fault() call, and its write side around every
path that attaches, detaches, or replaces a device domain.
This can block new reports and drains in-flight reports before an old
attach handle or the IOPF fault parameter can be removed.
Also take the write side while registering a mock device, since
it can invoke the mock driver's default-domain attach callback.

(As written by CVE List.)

## Affected

- Linux Linux: from ddee19971081b42615d62f4fdada21274708ed4d before fd2e7ac94d6d813548b021473c3dddc30c8c07d1; from ddee19971081b42615d62f4fdada21274708ed4d before cab2895729516799384d48560e6fca105fb3f927; from ddee19971081b42615d62f4fdada21274708ed4d before e27e90bde68b2ab92e63ed19caad1ef57188bea0; from ddee19971081b42615d62f4fdada21274708ed4d before 8c07df7cdfcf52f1ff276c588612aabc6c6b8399; 6.11 (not affected: before 6.11; from 6.12.112 up to 6.12.*; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/fd2e7ac94d6d813548b021473c3dddc30c8c07d1>
- <https://git.kernel.org/stable/c/cab2895729516799384d48560e6fca105fb3f927>
- <https://git.kernel.org/stable/c/e27e90bde68b2ab92e63ed19caad1ef57188bea0>
- <https://git.kernel.org/stable/c/8c07df7cdfcf52f1ff276c588612aabc6c6b8399>

## Sources

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

---

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