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 D81011990A2 for ; Tue, 24 Dec 2024 11:29:55 +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=1735039795; cv=none; b=bTO8nuedf9RLhSsFFbUbqDQMO4pX6tWDy6IpFR/Dlppbz2gzkJ0CGOZQrTo0js3aCxFk8jM2S+mvA3Wiuc4NyWhgEB3apQv6VrhnLwaYsH5S1YyHXV5ofLCYPMoZIe2oGORxFBWv2kdaB4nZYgJWXJILejjaHLM5l79qtgGH1HY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039795; c=relaxed/simple; bh=x8LzQz+plXejTfGBy9Sp6dpsd9zv0srlodjrFTaBA54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XzGiCb/DqERqh6lgFRR9cQdn7mZ0fS5nrCXa8aohRkRdo/QuRn2VIHWmGhR+xt0bO67ap/TKrWr7cb+mAoPFSBVQDGwe0Cu4rtg3so1UYntNlUBacFNSZksV8jKmcch0Z7PEfKY382tVLW+67d2/OvSyC2mWeEWPaPDNanDIndw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CixMAk2H; 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="CixMAk2H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBBE3C4CED0; Tue, 24 Dec 2024 11:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039795; bh=x8LzQz+plXejTfGBy9Sp6dpsd9zv0srlodjrFTaBA54=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CixMAk2H2avKcaprnat00j+hgsPe3LDqwtTsSk+48uNxGx5VncwQtt7jxEOZCdRmI JxsYq+wFuphUPkyN7Ug6VhB+bd/UgDCXE7WOevjLco1hkBEg84/iXVPGohT/WgpNFy nvYXMPqKS+SebrhW0JgKRAhe71Y0ng54NmMfxEnM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53158: soc: qcom: geni-se: fix array underflow in geni_se_clk_tbl_get() Date: Tue, 24 Dec 2024 12:29:38 +0100 Message-ID: <2024122430-CVE-2024-53158-9e9f@gregkh> X-Mailer: git-send-email 2.47.1 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=3661; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x8LzQz+plXejTfGBy9Sp6dpsd9zv0srlodjrFTaBA54=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZs6V+7Dp9/NGtmM+p2kWiH7VeLeDte/rR+Ki5ruivf 5cuceUqdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE7s5iWDBhkVCkplbB5UWH U7Md2ZcwPo+UTmGYZ8FevtR9+Yx7M69vCDxy/P2p018/vgAA 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: soc: qcom: geni-se: fix array underflow in geni_se_clk_tbl_get() This loop is supposed to break if the frequency returned from clk_round_rate() is the same as on the previous iteration. However, that check doesn't make sense on the first iteration through the loop. It leads to reading before the start of these->clk_perf_tbl[] array. The Linux kernel CVE team has assigned CVE-2024-53158 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 4.19.325 with commit 37cdd4f0c266560b7b924c42361eeae3dc5f0c3e Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 5.4.287 with commit 7a3465b79ef0539aa10b310ac3cc35e0ae25b79e Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 5.10.231 with commit 748557ca7dc94695a6e209eb68fce365da9a3bb3 Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 5.15.174 with commit f4b7bf5a50f1fa25560f0b66a13563465542861b Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 6.1.120 with commit b0a9c6ccaf88c4701787f61ecd2ec0eb014a0677 Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 6.6.64 with commit c24e019ca12d9ec814af04b30a64dd7173fb20fe Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 6.11.11 with commit 56eda41dcce0ec4d3418b4f85037bdea181486cc Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 6.12.2 with commit 351bb7f9ecb9d1f09bd7767491a2b8d07f4f1ea4 Issue introduced in 4.18 with commit eddac5af06546d2e7a0730e3dc02dde3dc91098a and fixed in 6.13-rc1 with commit 78261cb08f06c93d362cab5c5034bf5899bc7552 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-53158 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/soc/qcom/qcom-geni-se.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/37cdd4f0c266560b7b924c42361eeae3dc5f0c3e https://git.kernel.org/stable/c/7a3465b79ef0539aa10b310ac3cc35e0ae25b79e https://git.kernel.org/stable/c/748557ca7dc94695a6e209eb68fce365da9a3bb3 https://git.kernel.org/stable/c/f4b7bf5a50f1fa25560f0b66a13563465542861b https://git.kernel.org/stable/c/b0a9c6ccaf88c4701787f61ecd2ec0eb014a0677 https://git.kernel.org/stable/c/c24e019ca12d9ec814af04b30a64dd7173fb20fe https://git.kernel.org/stable/c/56eda41dcce0ec4d3418b4f85037bdea181486cc https://git.kernel.org/stable/c/351bb7f9ecb9d1f09bd7767491a2b8d07f4f1ea4 https://git.kernel.org/stable/c/78261cb08f06c93d362cab5c5034bf5899bc7552