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 4943F1A239F for ; Fri, 9 May 2025 06:45:50 +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=1746773150; cv=none; b=Bs6e0UrLkh61+e7vDHOkVldMf3nL4bhs5UD1WFEOH3lmxYTC0FMTTw2cvb3AUPy+QDrnvToJRwMSrcFKJ2bTKcOmTT2EUi5jNw+t1Sydm1v0alsWBFOXLAcSQPaBrj8jgyuMUJZbpKHqbBzyGpfiiS8vGb0Jm0/4SYCRC32sIE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773150; c=relaxed/simple; bh=y5uOp0QXw3SLjcrBFWfZES5KDLBbUgv+a5MWtMlZK9g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bUxndu5PruGQAVGqfZB7+Fc7esZ25dPQ8md2Nr/LJZQmdM4eM5Y0SHgo5YFHmhyDgj36KlAdBxosU0+i/0f+auWDsvI78KYgUuyatkUXxjq+d8HT1QxWPGxX6IFBsvxV3oH+ybgJ91E7j/bmVsd2wlaXIXt4xJRPy8UIH6PbO6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pIF0WNGv; 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="pIF0WNGv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD64FC4CEE4; Fri, 9 May 2025 06:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773150; bh=y5uOp0QXw3SLjcrBFWfZES5KDLBbUgv+a5MWtMlZK9g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pIF0WNGvEZHPn7g7Uk10LSFZK8E2Pdq6jL1WGihEEAJctw5cynk9hIfuO6cqq1S24 h+ZvsqYqnKhnxVUEC9agLp9L2kE7iRknyZcI4d1/cgcG4dlzua227nIDG98/CZT0I0 nlJfwOohQSLL+WyiGXm2HQRESkbxwVyGXKLZG3OI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37877: iommu: Clear iommu-dma ops on cleanup Date: Fri, 9 May 2025 08:45:44 +0200 Message-ID: <2025050942-CVE-2025-37877-2e67@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2430; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cj1Pt7t2wtaCVEotmBXbuBaPseOP9rgZATYG0f330GI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS6a1Tjr41SJm8gvR9efOpMjGBkvE37bmFm9QNfFJt fJcnZTSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPpOMCwYM1ju9fTTjwJFU1i 3JOvlFXy+ulpXYYFE0r4G1Vn/Exn76gLaPbZaT1T47o/AA== 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: Clear iommu-dma ops on cleanup If iommu_device_register() encounters an error, it can end up tearing down already-configured groups and default domains, however this currently still leaves devices hooked up to iommu-dma (and even historically the behaviour in this area was at best inconsistent across architectures/drivers...) Although in the case that an IOMMU is present whose driver has failed to probe, users cannot necessarily expect DMA to work anyway, it's still arguable that we should do our best to put things back as if the IOMMU driver was never there at all, and certainly the potential for crashing in iommu-dma itself is undesirable. Make sure we clean up the dev->dma_iommu flag along with everything else. The Linux kernel CVE team has assigned CVE-2025-37877 to this issue. Affected and fixed versions =========================== Fixed in 6.12.26 with commit b14d98641312d972bb3f38e82eddf92898522389 Fixed in 6.14.5 with commit 104a84276821aed0ed241ce0d82d6c3267e3fcb8 Fixed in 6.15-rc2 with commit 280e5a30100578106a4305ce0118e0aa9b866f12 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-2025-37877 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/iommu.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/b14d98641312d972bb3f38e82eddf92898522389 https://git.kernel.org/stable/c/104a84276821aed0ed241ce0d82d6c3267e3fcb8 https://git.kernel.org/stable/c/280e5a30100578106a4305ce0118e0aa9b866f12