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 5B47A10E3 for ; Tue, 30 Jul 2024 07:48:24 +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=1722325704; cv=none; b=k15f8Zr4gaaqWLjTpY8U1y2vQtVwev+1KtW08x4lK3KFfRMpVk7mvgHuvLh2zP6CvDSAJSvoFL9AUzWJ1SiSEeOQa6oEN49XPMjR6XuDsJs1GJLmxrHhVynn1pnUZHBzGDup7Ah61S61Bck4Fuh58FNuEsRBAN1kAPltF4ljpxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325704; c=relaxed/simple; bh=tB6RDBpePOVdzS1KtIbulw21Ww/trgVsxxo71tz2VEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QDq0dT1Y/QwKE+0zDsnwGMRzrgRxgr+H+DyUKvhuPaTtLQDe+4aPImdK+xi0e0F97bRW1oTZr+2MFtXc1tBy9RvPSditxoXOgRMHkXiolsuLynvk571bi6y9Psh3JK9BxVu5hHIv1DnIPhAvIAon8cEVKf1e98CAn/tajCFfDOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o9QRZUvb; 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="o9QRZUvb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B585C32782; Tue, 30 Jul 2024 07:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325704; bh=tB6RDBpePOVdzS1KtIbulw21Ww/trgVsxxo71tz2VEk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=o9QRZUvbmp5GcTxmtcybB7THLh0N6h7QBJp2UQnv+Y63UPJGsM528WZvmKUOcQUQw wQIl1EnSgQ5o63/6SyUj9w83ggG+PD4EbTpyr4CZN/KHfDiRz/VtBnp8zKkXj4lXl7 Bo4/LcPXOnSJ+XLzoqfiqw3EV7ALMRqxGtnsVGR0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42100: clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common Date: Tue, 30 Jul 2024 09:47:18 +0200 Message-ID: <2024073018-CVE-2024-42100-bc58@gregkh> X-Mailer: git-send-email 2.45.2 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=2273; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tB6RDBpePOVdzS1KtIbulw21Ww/trgVsxxo71tz2VEk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZrWVXd/+iyf92H0xzf037h03zzAVnl+0fw5vxMGi3 3K6Z++zdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEWhoY5nudcn1+9F5+l37Y w+59serTBTa1bWBYsM7Fq2byUzHG1Zrpwcn/jFOkGxu6AQ== 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: clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common In order to set the rate range of a hw sunxi_ccu_probe calls hw_to_ccu_common() assuming all entries in desc->ccu_clks are contained in a ccu_common struct. This assumption is incorrect and, in consequence, causes invalid pointer de-references. Remove the faulty call. Instead, add one more loop that iterates over the ccu_clks and sets the rate range, if required. The Linux kernel CVE team has assigned CVE-2024-42100 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.31 with commit 547263745e15 and fixed in 6.6.39 with commit 14c78d69dbca Issue introduced in 6.9 with commit b914ec33b391 and fixed in 6.9.9 with commit 7a0e2738cb6d Issue introduced in 6.9 with commit b914ec33b391 and fixed in 6.10 with commit ea977d742507 Issue introduced in 6.8.10 with commit 761cbd9c0e4e 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-42100 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/clk/sunxi-ng/ccu_common.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/14c78d69dbca6a28af14095f639ec4318ec07fdc https://git.kernel.org/stable/c/7a0e2738cb6da5a55c9908dff333600aeb263e07 https://git.kernel.org/stable/c/ea977d742507e534d9fe4f4d74256f6b7f589338