From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8D9D8503BD4 for ; Fri, 4 Sep 2026 17:15:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788542107; cv=none; b=k+oz/pGsMzfzjyZatVl88aCpxtGPbDhnQQTAaC8yq3/wLjzJcwYG+NnZuMh7FPpNGgzMCaP3DiYLZXc6oShvkFMO7fLw/Gj6V1WAEXPBt7Ncn7xBiknYdLG38JbEg6aoE97tLqyTni63LSbtXiiyhwHbrEEJzR1wUhKbnTgU1hs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788542107; c=relaxed/simple; bh=W6uSBdJTYsrNs/B+9svxxgd1+/sfTiNm8TJDICSbbwo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pYnVwCorerns/rP0V1QEJzqH9fe4NGhoXtbKonP8qGJ6xE8LQ7t94W4ThBAZOeoRO3azyC1gLm5h9OGi4eNXOdlzOQpkiadBibA21Ztc1cS4jOayjhUX5SgZDHRmKDy/PfG/LcjQ1QI+DFaDV5UPXSxV2FrhRQcw4de+5vitE2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sEbmKXGN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sEbmKXGN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68E561F00A3E; Fri, 4 Sep 2026 17:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788542105; bh=O+CQGvNCxL/VtCbJJh4Z24syYIr31HKZhx/2QFnfbE8=; h=From:To:Cc:Subject:Date:Reply-To; b=sEbmKXGNaWoCs3/7zjaPKjnSXXKfpy477DSBKc3wgNo1h9AvOLGWIe8IySq5lynJ/ RSXz6huQanOgkT5tKddR/AJrDTk/FHSBvIz3sNPMKX6lnqdvzxTgYUaxTeAeaW+smC yXS/OdqReRAxZ+d/oD1CzgokaUOF1lmDP685nrUU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80894: iommufd: Fix wrong hwpt passed to iommufd_auto_response_faults on replace Date: Fri, 4 Sep 2026 19:09:35 +0200 Message-ID: <2026090430-CVE-2026-80894-6810@gregkh> X-Mailer: git-send-email 2.55.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=3514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NHIBQCCKeUOJsR38EiCJSIKPIuP9yEWkEs2nu2Hp7rg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmzfntFqgTZPWGsFOB+u4dBwrF7hpWmS/OhowfelP+fl MjYkX2gI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyJY5hwVKxEycP7VQ67hwm deFD4KQ9jlPNehnm6f76cqO+vJdn1rv/3+5ESu+59srhGwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommufd: Fix wrong hwpt passed to iommufd_auto_response_faults on replace iommufd_hwpt_replace_device() calls: iommufd_auto_response_faults(hwpt, old_handle); passing the *new* hwpt together with the handle of the device's *old* domain. This should be a parameter mismatch: 1. Semantically, iommufd_auto_response_faults(x, handle) scans x->fault's deliver list and response xarray for groups matching "handle". A group is queued under the hwpt that was attached at fault-delivery time. old_handle is fetched *before* the domain switch, so its group lives on old->fault, not on the new hwpt->fault. 2. Historically, the first argument was "old". The routine was introduced by commit b7d8833677ba ("iommufd: Fault-capable hwpt attach/detach/replace") as __fault_domain_replace_dev() in fault.c, correctly calling iommufd_auto_response_faults(old, curr). Commit fb21b1568ada ("iommufd: Make attach_handle generic than fault specific") moved this into iommufd_hwpt_replace_device() in device.c and swapped it to "hwpt". This should be a refactor regression, not an intentional change. Fix this by passing "old" instead. The Linux kernel CVE team has assigned CVE-2026-80894 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.24 with commit 6d11543bf37abdf60b8e6022a62fccfb82a5fe2e and fixed in 6.12.105 with commit adb87155b67f9759ff010c0a99559f5bffa45dcf Issue introduced in 6.15 with commit fb21b1568adaa76af7a8c853f37c60fba8b28661 and fixed in 6.18.44 with commit 564ac339c0f8bada4e77a57a92bab9d3df635e07 Issue introduced in 6.15 with commit fb21b1568adaa76af7a8c853f37c60fba8b28661 and fixed in 7.1.8 with commit 8eb077025279304268bd58657f0af3d388822b21 Issue introduced in 6.15 with commit fb21b1568adaa76af7a8c853f37c60fba8b28661 and fixed in 7.2 with commit ba5c0f28a26e7d9be1e0997f8920dd638e2782fd Issue introduced in 6.13.12 with commit 1e0216b6a58c79b5ee91c78706d5f560e4d1f56f Issue introduced in 6.14.3 with commit 4b23c4b991eb90cc7bca42e9f81142feedd4bb56 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-80894 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/iommufd/device.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/adb87155b67f9759ff010c0a99559f5bffa45dcf https://git.kernel.org/stable/c/564ac339c0f8bada4e77a57a92bab9d3df635e07 https://git.kernel.org/stable/c/8eb077025279304268bd58657f0af3d388822b21 https://git.kernel.org/stable/c/ba5c0f28a26e7d9be1e0997f8920dd638e2782fd