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 3A9212EE61D for ; Fri, 25 Jul 2025 15:29:53 +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=1753457393; cv=none; b=TzkDfsIq7k89MjvWmCuKI/3DpTl8UJmFE7By5tpCdHv1FwChCyskMjkU1AwNTrfdm4i6hDx5Bd+1BNaQtBoDN6kV0uFbmzkqknxfCFVHiwfnZgS400u7jzJYdH/Wmj5sw1PA8ER5LHnC3LIYjfE0YfHGx5yIeHSfXy9KVMvKJlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457393; c=relaxed/simple; bh=H1tT0peoLGVrlNW7tJns8jPOmj68N3VGAN/bsePoki0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GuDuWQBodSRPkGLoVrLmFbjv6DIX3JYm2vSbqdU2yTpqp+k/zTgNeTWdscFxCYDL08xHpZfoRu4xVrbPmfVrNNy5LgSBXj9kj/tBUCu5C6DdJmw/bi7Rq1gAYFhMrJ/O02XdiJnoyE51Jp21Pyh1e0dqtB6s2iVFlTzwY03D7ok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lg9sc9Us; 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="lg9sc9Us" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AD5EC4CEE7; Fri, 25 Jul 2025 15:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753457393; bh=H1tT0peoLGVrlNW7tJns8jPOmj68N3VGAN/bsePoki0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lg9sc9UssbwxZ6xaJDvmNeRqqUBiY7l3YNdI1Z5GIb6P+F4Qjzzo98+7AqbOq3dG+ zsq+1154Y9oiaa+aoyxPxg/UUPXfBC+eBgBQPhoZgJUVwyVjeSUcf2/Dg3ouXtucm4 wz98Q2Jz2AkiKRYKKI8yabA1BMoCqAI7QCzcoQuo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38446: clk: imx: Fix an out-of-bounds access in dispmix_csr_clk_dev_data Date: Fri, 25 Jul 2025 17:28:08 +0200 Message-ID: <2025072503-CVE-2025-38446-492b@gregkh> X-Mailer: git-send-email 2.50.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=2744; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h+t5T3Jd5jrbuUvnUOiGzekPSFIvirhi8D8KEXU/Y6w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNi5q9XkyxYT9kOz2NqcbUo7T9tdvkkz93xDZLZzQdm rTwUGFPRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEWIthfu4V3R9u9zo+pHdy WO5bojfr4HvBzQwLmtdrNsWwX9u7r3rpj1myLpq1Pg/YAQ== 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: imx: Fix an out-of-bounds access in dispmix_csr_clk_dev_data When num_parents is 4, __clk_register() occurs an out-of-bounds when accessing parent_names member. Use ARRAY_SIZE() instead of hardcode number here. BUG: KASAN: global-out-of-bounds in __clk_register+0x1844/0x20d8 Read of size 8 at addr ffff800086988e78 by task kworker/u24:3/59 Hardware name: NXP i.MX95 19X19 board (DT) Workqueue: events_unbound deferred_probe_work_func Call trace: dump_backtrace+0x94/0xec show_stack+0x18/0x24 dump_stack_lvl+0x8c/0xcc print_report+0x398/0x5fc kasan_report+0xd4/0x114 __asan_report_load8_noabort+0x20/0x2c __clk_register+0x1844/0x20d8 clk_hw_register+0x44/0x110 __clk_hw_register_mux+0x284/0x3a8 imx95_bc_probe+0x4f4/0xa70 The Linux kernel CVE team has assigned CVE-2025-38446 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 5224b189462ff70df328f173b71acfd925092c3c and fixed in 6.12.39 with commit fcee75daecc5234ee3482d8cf3518bf021d8a0a5 Issue introduced in 6.10 with commit 5224b189462ff70df328f173b71acfd925092c3c and fixed in 6.15.7 with commit a956daad67cec454ee985e103e167711fab5b9b8 Issue introduced in 6.10 with commit 5224b189462ff70df328f173b71acfd925092c3c and fixed in 6.16-rc6 with commit aacc875a448d363332b9df0621dde6d3a225ea9f 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-2025-38446 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/imx/clk-imx95-blk-ctl.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/fcee75daecc5234ee3482d8cf3518bf021d8a0a5 https://git.kernel.org/stable/c/a956daad67cec454ee985e103e167711fab5b9b8 https://git.kernel.org/stable/c/aacc875a448d363332b9df0621dde6d3a225ea9f