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 52CFD1E22F4 for ; Mon, 21 Oct 2024 12:02:07 +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=1729512127; cv=none; b=U28fQUtE0aVu73RBKykoDNQoe5wfWnaTPd9FGSXZt7pcYjKVETYGUEGMXNZAL2Eala4YwDRmyFDS4cDBteEqB/LShoB+jjkoD5d0UNKRG9nMAxRZd8H37KNUIxAVBHFk9074A0YvBvRzKfJt66TW+au3KK2rXMMNDIJoN+TKEzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512127; c=relaxed/simple; bh=TsyWGyOAiWXRpLIX4zrMYuSPzj5zNbW36tTRmObEwoA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D7qsJexl5Ho1HqopR/r8b3ZDQaF41i4huYDPBl8q5aENiwoj1gkqa7Twu0GiwndXDkCzxvivVmV7vKbvv8CmbZlopZRJ2wnfyBNfUlsvvYgUz/CqC7o+o2N/T2K7Y8bExSU5qBo67aDqeSMTsPBFtq8h1ajZ7YntqIbm43KjaKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hr2qR7JC; 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="Hr2qR7JC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C43EEC4CEC3; Mon, 21 Oct 2024 12:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512127; bh=TsyWGyOAiWXRpLIX4zrMYuSPzj5zNbW36tTRmObEwoA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Hr2qR7JCFaxRxGHFYCZgyWZ7APEXouZCK7U1kDK4wpJZ0t7VdyuSh/Cp4KNdIwYn5 DECuuUhR8fS2BZ9lhFL0ULi0akVO/HZMzHA0ifGv1nzIIohHe6/oSvwmerd+VUiwFi OaMsEl0VRDuW+KkX7SA9FaseUbH1NZ4n5geOMTdA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47686: ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate() Date: Mon, 21 Oct 2024 14:00:14 +0200 Message-ID: <2024102109-CVE-2024-47686-e46a@gregkh> X-Mailer: git-send-email 2.47.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=TsyWGyOAiWXRpLIX4zrMYuSPzj5zNbW36tTRmObEwoA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTp7LG17HHvt/4rXbvmoLs63uh350HtCcYigZYbvpl N7LiW+rO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiK2sYFiy6zb72wd0o3rsl 5vopbK+4mioXCzIsWJjUKbUyXCN1wbqV7zO0tDbtXZXZDwA= 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: ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate() The psc->div[] array has psc->num_div elements. These values come from when we call clk_hw_register_div(). It's adc_divisors and ARRAY_SIZE(adc_divisors)) and so on. So this condition needs to be >= instead of > to prevent an out of bounds read. The Linux kernel CVE team has assigned CVE-2024-47686 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 9645ccc7bd7a and fixed in 6.1.113 with commit 7a5bd2fb9238 Issue introduced in 5.16 with commit 9645ccc7bd7a and fixed in 6.6.54 with commit 66e78ade976d Issue introduced in 5.16 with commit 9645ccc7bd7a and fixed in 6.10.13 with commit 27f493e14182 Issue introduced in 5.16 with commit 9645ccc7bd7a and fixed in 6.11.2 with commit ae59eaf36a1a Issue introduced in 5.16 with commit 9645ccc7bd7a and fixed in 6.12-rc1 with commit c7f06284a642 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-47686 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: arch/arm/mach-ep93xx/clock.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/7a5bd2fb92388c51d267f6ce57c40f1cca8af1e0 https://git.kernel.org/stable/c/66e78ade976dbd9bea09166aa8d66afc0963cde4 https://git.kernel.org/stable/c/27f493e141823db052586010c1532b70b164507c https://git.kernel.org/stable/c/ae59eaf36a1ad396e9f657ec9b8b52da6206ed5f https://git.kernel.org/stable/c/c7f06284a6427475e3df742215535ec3f6cd9662