Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03F784279E9 for ; Wed, 6 May 2026 11:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067112; cv=none; b=oH21idHKczE7cvlhz4cPxEJpGksfoZYePvwSEVDS7vAlug8/iNFjmSMRQAgaOarLnet47DDisRotBdqe5gqwrOAFWE4z4nYrZ/dO4a40fEPzR0B+YTuUdwn4l2aPxSR9nhaPGTyU0pSPOyuMO8qGnb26nj187g7fj1PpOPq6vVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067112; c=relaxed/simple; bh=VMjrXwWXiJ3XfEkeJnSi/uoe0bLfKy+6xX+6QmAcL34=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=aNd5iFaY523GM/MtJmnowb1GaBQXwjbVW4vIFjLOA3DSyvVhhd4Qqi+zN9eIRIetLb+YOWYR8mM4aiyci2uNBGnFOP8MSybOFhUkJw2d+NmVvz3xzUt0KPc5fAc7/s7qdEWnt/L2cRMpbu7c30SJ9/9b96keK3DHScF8qp8c4Do= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jvfy0iLI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jvfy0iLI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DD85C2BCB8; Wed, 6 May 2026 11:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067111; bh=VMjrXwWXiJ3XfEkeJnSi/uoe0bLfKy+6xX+6QmAcL34=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Jvfy0iLIeTKeXLNOH0Ei70gpotkvaHxRbluIQY0slyNHiMkUu6pS61/CTbh5arnJ3 Z0DiW0WILu6CLAGViYsb+KSVjpTXTrzpPLpURzW+VmvPCY1aI8SMYSufRNXR0xNkg7 Jlmkofds2oSJPYmsdKYun1Pau3MmXHFXStC98dA0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43161: iommu/vt-d: Skip dev-iotlb flush for inaccessible PCIe device without scalable mode Date: Wed, 6 May 2026 13:27:57 +0200 Message-ID: <2026050632-CVE-2026-43161-50a7@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5429; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MMssTYhec2qVD1TkkRkYgD/hU5FnRLWBcf3/JpkNHT4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VZe8DFnI++fRsoKIvQ4rPX3qpdrtK6+9lN7OMmWBX umkm7/tO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiG2oZFpzTuzRJlXGddY+H jX5d5G0RrcmsAgwL2sU8nBYcuzPbUa60fHeJ76J0vVVqAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Skip dev-iotlb flush for inaccessible PCIe device without scalable mode PCIe endpoints with ATS enabled and passed through to userspace (e.g., QEMU, DPDK) can hard-lock the host when their link drops, either by surprise removal or by a link fault. Commit 4fc82cd907ac ("iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected") adds pci_dev_is_disconnected() to devtlb_invalidation_with_pasid() so ATS invalidation is skipped only when the device is being safely removed, but it applies only when Intel IOMMU scalable mode is enabled. With scalable mode disabled or unsupported, a system hard-lock occurs when a PCIe endpoint's link drops because the Intel IOMMU waits indefinitely for an ATS invalidation that cannot complete. Call Trace: qi_submit_sync qi_flush_dev_iotlb __context_flush_dev_iotlb.part.0 domain_context_clear_one_cb pci_for_each_dma_alias device_block_translation blocking_domain_attach_dev iommu_deinit_device __iommu_group_remove_device iommu_release_device iommu_bus_notifier blocking_notifier_call_chain bus_notify device_del pci_remove_bus_device pci_stop_and_remove_bus_device pciehp_unconfigure_device pciehp_disable_slot pciehp_handle_presence_or_link_change pciehp_ist Commit 81e921fd3216 ("iommu/vt-d: Fix NULL domain on device release") adds intel_pasid_teardown_sm_context() to intel_iommu_release_device(), which calls qi_flush_dev_iotlb() and can also hard-lock the system when a PCIe endpoint's link drops. Call Trace: qi_submit_sync qi_flush_dev_iotlb __context_flush_dev_iotlb.part.0 intel_context_flush_no_pasid device_pasid_table_teardown pci_pasid_table_teardown pci_for_each_dma_alias intel_pasid_teardown_sm_context intel_iommu_release_device iommu_deinit_device __iommu_group_remove_device iommu_release_device iommu_bus_notifier blocking_notifier_call_chain bus_notify device_del pci_remove_bus_device pci_stop_and_remove_bus_device pciehp_unconfigure_device pciehp_disable_slot pciehp_handle_presence_or_link_change pciehp_ist Sometimes the endpoint loses connection without a link-down event (e.g., due to a link fault); killing the process (virsh destroy) then hard-locks the host. Call Trace: qi_submit_sync qi_flush_dev_iotlb __context_flush_dev_iotlb.part.0 domain_context_clear_one_cb pci_for_each_dma_alias device_block_translation blocking_domain_attach_dev __iommu_attach_device __iommu_device_set_domain __iommu_group_set_domain_internal iommu_detach_group vfio_iommu_type1_detach_group vfio_group_detach_container vfio_group_fops_release __fput pci_dev_is_disconnected() only covers safe-removal paths; pci_device_is_present() tests accessibility by reading vendor/device IDs and internally calls pci_dev_is_disconnected(). On a ConnectX-5 (8 GT/s, x2) this costs ~70 µs. Since __context_flush_dev_iotlb() is only called on {attach,release}_dev paths (not hot), add pci_device_is_present() there to skip inaccessible devices and avoid the hard-lock. The Linux kernel CVE team has assigned CVE-2026-43161 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 37764b952e1b39053defc7ebe5dcd8c4e3e78de9 and fixed in 6.12.77 with commit 48b3f08e68b29a79527869cdde7298ca2a9b9646 Issue introduced in 5.14 with commit 37764b952e1b39053defc7ebe5dcd8c4e3e78de9 and fixed in 6.18.17 with commit e70d5feb10c5ba2bbf7ca400b8f39a2f82d653e8 Issue introduced in 5.14 with commit 37764b952e1b39053defc7ebe5dcd8c4e3e78de9 and fixed in 6.19.6 with commit bc0490ad9edf5c6f98e39fbbee2877b85261a5ae Issue introduced in 5.14 with commit 37764b952e1b39053defc7ebe5dcd8c4e3e78de9 and fixed in 7.0 with commit 42662d19839f34735b718129ea200e3734b07e50 Issue introduced in 5.12.19 with commit 99301a53a1378f8863ac7850b9589f997bb0e125 Issue introduced in 5.13.4 with commit 948ec6d003280d49aca49b366aa5cb140f87434d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43161 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/iommu/intel/pasid.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/48b3f08e68b29a79527869cdde7298ca2a9b9646 https://git.kernel.org/stable/c/e70d5feb10c5ba2bbf7ca400b8f39a2f82d653e8 https://git.kernel.org/stable/c/bc0490ad9edf5c6f98e39fbbee2877b85261a5ae https://git.kernel.org/stable/c/42662d19839f34735b718129ea200e3734b07e50