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 0DE53BA2D for ; Sat, 17 Aug 2024 09:11:32 +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=1723885892; cv=none; b=JWhsMDNdmirW2NS0t35anWO6ocFtNZtR79I1eMFzXEmsOdBIKUCk/IML0LQfHbV0ZA2B5bZLRY9itF6lSsVEG21zy/VbTx8lzsPsZmNaxevcKV0riJIu3hVdFVzNW92JVURfy1t/qLVQbJDBkj/KqfnlXFg7HW86R17lbSEjpPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885892; c=relaxed/simple; bh=JFHjqKrkJYtCnw31TFX6MvvFnZRxjyibYrKX8nFDl+0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZsUDrerL64YlvxFxI+1/cRC5KGOU3iYEkDGwh5MqJ/k/3pTiEkCJeHzrs7UHJW8ma9TY0OD4hJjkBwc92Dfh6/+1x30TAXfzSbmzhoOSplkEFa41wRqg6nYZoVY/ppWkrA9VacndCpffM7u26KT7ljYajQgWcNLxPWMmoq89COU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C6e4nOz2; 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="C6e4nOz2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B630C116B1; Sat, 17 Aug 2024 09:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885891; bh=JFHjqKrkJYtCnw31TFX6MvvFnZRxjyibYrKX8nFDl+0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=C6e4nOz29EmWQzKe82LzFR0piN7dGSuKedt5eBl75++JUgWaljD6gmyWDvrPsVBtL ZPvYz05OOZ96TTrGZvlpx5sf02dbQrumxXLbPc5z3lc5r1JceqCMs1WaEZXUp/wB51 gmUr2R1Aqg6DLirzmIFgEK830O5plKDZYuu8uMA4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42277: iommu: sprd: Avoid NULL deref in sprd_iommu_hw_en Date: Sat, 17 Aug 2024 11:09:42 +0200 Message-ID: <2024081741-CVE-2024-42277-997a@gregkh> X-Mailer: git-send-email 2.46.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=2301; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JFHjqKrkJYtCnw31TFX6MvvFnZRxjyibYrKX8nFDl+0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMq4+tNj3LMXy58amm1Jfg29IHMp5VLBx3pnTlS0bm zQPqO9f2xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOanKMIejXWp5ZtxcNcf4 Ow1d2tW7z7Cu0GWYn2g+v+b1ufrCTYyniquOqkhvPW16HwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu: sprd: Avoid NULL deref in sprd_iommu_hw_en In sprd_iommu_cleanup() before calling function sprd_iommu_hw_en() dom->sdev is equal to NULL, which leads to null dereference. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-42277 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.81 with commit 8745f3592ee4 and fixed in 6.1.103 with commit dfe90030a0cf Issue introduced in 6.4 with commit 9afea57384d4 and fixed in 6.6.44 with commit b62841e49a2b Issue introduced in 6.4 with commit 9afea57384d4 and fixed in 6.10.3 with commit d5fe884ce28c Issue introduced in 6.4 with commit 9afea57384d4 and fixed in 6.11-rc1 with commit 630482ee0653 Issue introduced in 5.15.113 with commit 92c089a931fd Issue introduced in 6.3.4 with commit d0a917fd5e3b 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-2024-42277 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/sprd-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/dfe90030a0cfa26dca4cb6510de28920e5ad22fb https://git.kernel.org/stable/c/b62841e49a2b7938f6fdeaaf93fb57e4eb880bdb https://git.kernel.org/stable/c/d5fe884ce28c5005f8582c35333c195a168f841c https://git.kernel.org/stable/c/630482ee0653decf9e2482ac6181897eb6cde5b8