Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9C6A44EBAED for ; Wed, 16 Sep 2026 10:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555231; cv=none; b=bX/9m1mTZyr+WdneWD1/osxrJh1g94/zRotoy1mqzwXI3gYOgQLPJiXT0GZ+hw201hAEAdGFcvj1F2hw1611utuwL6a7HljHkuZ6GpZgjKB461Abwij56whPTQsXCEYjhAygQRiwM0wgkYjBmS1Aajm9JjvvXrsfX0pEIi6fbd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555231; c=relaxed/simple; bh=5DXjwmp1KQif58Xz6jdh48NdOqaHihGb5l6ZgJ+jAr4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ay8iLYbiDC4dqdkesoozo0fdPQk82v3rEvgdPBST4tXXLRTnmOQl11fCvekNIB+Iardxjy7tP0uWPgxlwm++LW00K42PtsXOlIQHyd2hLqcVZkg4H7UQUbHhclOeLbXMuqSsnEKCt3DpwFUAZhXd4mB7kbn3HBgaWPt3fup41tw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K96uXpBe; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="K96uXpBe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 054871F0089C; Wed, 16 Sep 2026 10:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555226; bh=Snhf87V/uwuh5mbrmab/cGM+WzIYk3k39p3Wej8VXeA=; h=From:To:Cc:Subject:Date:Reply-To; b=K96uXpBez1WI+s6gqhYt2jJLYUW9dQjyVuuOreCCPj3L+JNbYRb9Zfrs62V99hG90 vffiTlHFnAlO1iucZjP7kEK9OhFkAlXBnJ/oenPVpF+zgv9MfsOGNmSQsLGu0/Tzvj NW0oNww2mH0OlZ54FqIr+3AgqdAC21QTigW6jvnE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89947: clk: meson: align gxbb_32k_clk_sel number of parents with actual count Date: Wed, 16 Sep 2026 11:31:17 +0100 Message-ID: <2026091648-CVE-2026-89947-f0e4@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5562; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CoZNOmIAljyIREKKGEnsIdEXrItxlnohdzc1wOPbyzc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8ufM7X/xbFp+VfikQj/L7krhwgnh6s0fe71DV65eq z3tNmtBRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkl4lhfq3N1ecVp6X9F8TN Omq4UW2lyr0zigzzI6PWai/aJmajvNPk3TOvR8o3Xh9LBwA= 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: clk: meson: align gxbb_32k_clk_sel number of parents with actual count The following out-of-bounds read has been observed by Christian on a GXBB WeTek Hub: ================================================================== BUG: KASAN: global-out-of-bounds in __clk_register+0x1b70/0x2418 Read of size 8 at addr ffffd66320cf88e0 by task swapper/0/1 CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 7.0.0-rc5 #1 PREEMPT Hardware name: WeTek Hub (DT) Call trace: show_stack+0x14/0x20 (C) dump_stack_lvl+0x74/0x94 print_report+0x164/0x4b0 kasan_report+0x98/0xd8 __asan_report_load8_noabort+0x1c/0x24 __clk_register+0x1b70/0x2418 devm_clk_hw_register+0x74/0x15c meson_clkc_init+0xd4/0x20c meson_clkc_syscon_probe+0x5c/0x94 platform_probe+0xbc/0x17c really_probe+0x184/0x844 __driver_probe_device+0x154/0x35c driver_probe_device+0x60/0x188 __driver_attach+0x168/0x4a0 bus_for_each_dev+0xec/0x180 driver_attach+0x38/0x58 bus_add_driver+0x238/0x4c0 driver_register+0x150/0x388 __platform_driver_register+0x54/0x7c gxbb_clkc_driver_init+0x18/0x20 do_one_initcall+0xb8/0x340 kernel_init_freeable+0x49c/0x52c kernel_init+0x24/0x148 ret_from_fork+0x10/0x20 The buggy address belongs to the variable: gxbb_32k_clk_parents+0x60/0x400 The buggy address belongs to a vmalloc virtual mapping The buggy address belongs to the physical page: Memory state around the buggy address: ffffd66320cf8780: 00 00 00 00 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 ffffd66320cf8800: 00 04 f9 f9 f9 f9 f9 f9 00 04 f9 f9 f9 f9 f9 f9 >ffffd66320cf8880: 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 ^ ffffd66320cf8900: 00 01 f9 f9 f9 f9 f9 f9 00 06 f9 f9 f9 f9 f9 f9 ffffd66320cf8980: 00 00 02 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 ================================================================== Commit 7915d7d5407c ("clk: amlogic: gxbb: drop non existing 32k clock parent") dropped a non-existing clock parent from the gxbb_32k_clk_sel mux but didn't adjust the hard-coded num_parents field. Fix the actual number of parents of that mux by using ARRAY_SIZE instead (avoiding similar problems in future). The Linux kernel CVE team has assigned CVE-2026-89947 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.236 with commit b9778cd803b330b8d7a9b523743c35093454b77f and fixed in 5.10.270 with commit c86214e6178c38a0eff39110a4e92b824f5dd403 Issue introduced in 5.15.180 with commit f95e0f36e592e17a24ba4f56c355946448f84291 and fixed in 5.15.221 with commit 8b2f7a411e7ceaef268355c2150c22ee3f509c3b Issue introduced in 6.1.134 with commit 6ded8c22af4700bbf91da24ac025f9d05b879267 and fixed in 6.1.188 with commit 1e509a6707d2fd9da79bdfa24742661b34562bfd Issue introduced in 6.6.87 with commit 7061afacc89dec3f02f7412653b83f148a0c646b and fixed in 6.6.157 with commit 404079d124d75a5da16322acc53d3ffc50b4ec68 Issue introduced in 6.12.23 with commit 4d32504f7ae951600e216aac4e04c81b02421a9d and fixed in 6.12.110 with commit f6ff0e6995dbff5cb145d7795c8f0af9c168094a Issue introduced in 6.15 with commit 7915d7d5407c026fa9343befb4d3343f7a345f97 and fixed in 6.18.51 with commit 4582949b7badcb91bb537ca522d69b8a35131e72 Issue introduced in 6.15 with commit 7915d7d5407c026fa9343befb4d3343f7a345f97 and fixed in 7.2.5 with commit bf85bd6e550c17ffa585606fcc18eb5b7c95bbce Issue introduced in 6.15 with commit 7915d7d5407c026fa9343befb4d3343f7a345f97 and fixed in 7.3-rc1 with commit 628b6fee9fca292f12d07f0f1bcf1edefa949d81 Issue introduced in 5.4.292 with commit 450a1d9eac98886c7d19586dd10e72a4eaf8e1bc Issue introduced in 6.13.11 with commit f18b09c998002ed6a67d1a235f3941a2662f1036 Issue introduced in 6.14.2 with commit 1eb7a2f3e25075b2dc9b10c94616b066f80e79ee 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-2026-89947 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/meson/gxbb.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/c86214e6178c38a0eff39110a4e92b824f5dd403 https://git.kernel.org/stable/c/8b2f7a411e7ceaef268355c2150c22ee3f509c3b https://git.kernel.org/stable/c/1e509a6707d2fd9da79bdfa24742661b34562bfd https://git.kernel.org/stable/c/404079d124d75a5da16322acc53d3ffc50b4ec68 https://git.kernel.org/stable/c/f6ff0e6995dbff5cb145d7795c8f0af9c168094a https://git.kernel.org/stable/c/4582949b7badcb91bb537ca522d69b8a35131e72 https://git.kernel.org/stable/c/bf85bd6e550c17ffa585606fcc18eb5b7c95bbce https://git.kernel.org/stable/c/628b6fee9fca292f12d07f0f1bcf1edefa949d81