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 EC07D4EC666 for ; Fri, 4 Sep 2026 15:19:32 +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=1788535174; cv=none; b=KlVhjBjRj9l9eB64Il0S/LhObhyOwOCi4xzbL13/uZrGOhAocr28v/CRkqvolxbHMsve9QNmEu+yxoKTzD7N4i5szPvSJ+DimGbNLZ2QDjO4Ts6ZnNHT4NZSuuhQ/kSQUu/CmCzi70id9QICWNvn57iaYWVYe3zYUGGMgig+3dM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788535174; c=relaxed/simple; bh=tdssAAK+zWjTug+hqXBN8z7aLKF/bXC86pIO9VSfU1c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G1ATftsdDpchPGfdTWoRcckxNAU623ZmBLu8cbKt5M665m1xQcmjIUvz8myf7mPHdaIkNMr8+bZ2l40B0OYH2IiSSQSt4GO3HIkV1055TR03GYl8ZVHQNsPa7f2thOs0vgbaJ8D5+hz4ZT7B4Sy2lsB4JlQ9rpGJM99m8jet4mk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q5tQxHwj; 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="Q5tQxHwj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3EA91F00A3D; Fri, 4 Sep 2026 15:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788535172; bh=9ZgW6YtK1b5NXhiCeaiHv/4t5RmxX6xu3EenmKvUnro=; h=From:To:Cc:Subject:Date:Reply-To; b=Q5tQxHwjyvs7ISVubZprpF4/husm18XQo8qBFh8ePD6cxIYzKb/Uovi9Rj7Qdm34q pLpZ/Wq9ChlbXf5MN/3Uqew37kYmbfMabWQuTWyznycNGnYF+OYxVFQpkVMrS1MfRM B2feEzvH3wo/3ymLTSRVb9vS1g2vMUhpq1XeL4rI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80818: iommu/tegra241-cmdqv: Fix CMD_SYNC use-after-free on teardown Date: Fri, 4 Sep 2026 17:11:57 +0200 Message-ID: <2026090413-CVE-2026-80818-1a6c@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=4290; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QVbZX8+hvDsLmRReQq6T2mTGbqO0Ebkmv1B6aq6rIhI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7k8U9p95Q8k+tOdO26Ho/Xyv8/RUp0nILbQ57/7Z9 bDIhgn1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtQYM80NrT3wr+O67O6Lo zUvTF4deHtx+u4JhwXF3R9asPe3FexauCUsUfPZsjq10MAA= 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: iommu/tegra241-cmdqv: Fix CMD_SYNC use-after-free on teardown arm_smmu_impl_remove() is registered as a devres action in arm_smmu_impl_probe(), before arm_smmu_init_queues() allocates smmu->cmdq.q.base. On a devres unwind, whether a failed probe or an unbind, the queue is freed first and arm_smmu_impl_remove() then runs tegra241_cmdqv_remove_vintf(), whose VINTF deinit issues a CMD_SYNC on the freed memory. Observed during testing with a QEMU hack that makes the VCMDQ fail to enable, so the impl reset fails and probe aborts into the devres unwind: platform NVDA200C:00: tegra241_cmdqv: VINTF0: VCMDQ0/LVCMDQ0: failed to enable, STATUS=0x00000000 platform NVDA200C:00: tegra241_cmdqv: VINTF0: VCMDQ0/LVCMDQ0: GERRORN=0x0, GERROR=0x4, CONS=0x0 platform NVDA200C:00: tegra241_cmdqv: VINTF0: VCMDQ0/LVCMDQ0: uncleared error detected, resetting arm-smmu-v3 arm-smmu-v3.0.auto: failed to reset impl arm-smmu-v3 arm-smmu-v3.0.auto: probe with driver arm-smmu-v3 failed with error -110 Unable to handle kernel paging request at virtual address ffff8000891e0098 ... Internal error: Oops: 0000000096000047 [#1] SMP ... Call trace: arm_smmu_cmdq_issue_cmdlist+0x320/0x6fc (P) tegra241_vcmdq_hw_deinit+0x98/0x168 tegra241_vintf_hw_deinit+0x5c/0x1b0 tegra241_cmdqv_remove_vintf+0x34/0xec tegra241_cmdqv_remove+0x40/0x9c arm_smmu_impl_remove+0x20/0x30 devm_action_release+0x14/0x20 devres_release_all+0xa8/0x110 device_unbind_cleanup+0x18/0x84 really_probe+0x1f0/0x29c Drop the VINTF deinit from tegra241_cmdqv_remove_vintf() so the unwind no longer touches the freed queue. Quiesce the VINTFs earlier instead. Add a device_disable() impl op and run it from arm_smmu_disable_action() while the CMDQ is still up. That handles a live unbind. A failed reset is already handled because tegra241_vintf_hw_init() deinits the VINTF on its own error path. tegra241_cmdqv_remove_vintf() is also used by the iommufd viommu destroy path, so quiesce there too. The Linux kernel CVE team has assigned CVE-2026-80818 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 4dc0d12474f9d4833c3dd96b73d61e406d3f5dc7 and fixed in 6.18.47 with commit d2ab08437e913d9e4dda4dfd0d327446ec8717fc Issue introduced in 6.17 with commit 4dc0d12474f9d4833c3dd96b73d61e406d3f5dc7 and fixed in 7.1.11 with commit a94309bb99eaf0c6a2ace4927864486d19458eb5 Issue introduced in 6.17 with commit 4dc0d12474f9d4833c3dd96b73d61e406d3f5dc7 and fixed in 7.2.1 with commit 5994617e09ee6016c1b094f29d9c85cac944b477 Issue introduced in 6.17 with commit 4dc0d12474f9d4833c3dd96b73d61e406d3f5dc7 and fixed in 7.3-rc1 with commit 9ff145a25c5c8a26b06ef7cf558fb536b18bba6d 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-80818 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/arm/arm-smmu-v3/arm-smmu-v3.c drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.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/d2ab08437e913d9e4dda4dfd0d327446ec8717fc https://git.kernel.org/stable/c/a94309bb99eaf0c6a2ace4927864486d19458eb5 https://git.kernel.org/stable/c/5994617e09ee6016c1b094f29d9c85cac944b477 https://git.kernel.org/stable/c/9ff145a25c5c8a26b06ef7cf558fb536b18bba6d