{"id":"CVE-2026-89445","summary":"iommufd: Fix UAF in selftest IOPF reporting","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niommufd: Fix UAF in selftest IOPF reporting\n\nIOMMUFD selftest TRIGGER_IOPF borrows an attach handle from\ngroup-\u003epasid_array without synchronizing against PASID detach,\nthen a concurrent iommu_report_device_fault() can dereference\nthat borrowed handle's domain pointer after the detach erases\nthe handle and frees the backing struct iommufd_attach_handle.\nTRIGGER_IOPF then dereferences the freed handle, causing a UAF.\n\nFix by adding a iopf_rwsem in mock_dev to follow the expected design\nof a real driver. Hold its read side across the whole\niommu_report_device_fault() call, and its write side around every\npath that attaches, detaches, or replaces a device domain.\nThis can block new reports and drains in-flight reports before an old\nattach handle or the IOPF fault parameter can be removed.\nAlso take the write side while registering a mock device, since\nit can invoke the mock driver's default-domain attach callback.","modified":"2026-09-13T03:47:18.049817679Z","published":"2026-09-11T19:43:12.765Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89445.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/8c07df7cdfcf52f1ff276c588612aabc6c6b8399"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cab2895729516799384d48560e6fca105fb3f927"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e27e90bde68b2ab92e63ed19caad1ef57188bea0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89445.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89445"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ddee19971081b42615d62f4fdada21274708ed4d"},{"fixed":"cab2895729516799384d48560e6fca105fb3f927"},{"fixed":"e27e90bde68b2ab92e63ed19caad1ef57188bea0"},{"fixed":"8c07df7cdfcf52f1ff276c588612aabc6c6b8399"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89445.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89445.json"}}],"schema_version":"1.9.0"}