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 BE9201F5439 for ; Fri, 27 Dec 2024 15:01:16 +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=1735311676; cv=none; b=q/S4mDlmhIp0p2PhqCK+3vRrWzKMJlIby3PQpRNNYdjASgsImgXLsD2QNnzSNovQ43UO/51xRVVBdKIhqlCD+cgQlEaIxmtwhELD4fYGivWMUXvMJItTRFXm9kbBDhx/A9J+fnsRHOSTDq9f8XkEtBpvm64vpMQj01icAE30Brc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735311676; c=relaxed/simple; bh=IFnz0iub/Us04Ff7B6RqakCDjBz+kM8rAbal8pGC2ZY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jkojzhVfh3nQyqeSIqBMdLrnK391ZRAASaGgAoR9L3HTb06ztdZnVVFloXv3BugS1QWCg/caUVe34Uv8yF3Zvvj10d8LnPVb0OXuUZGh7OFd6XObKxjntBxRlhTGjw4CPL9TrCxr9LvhzAcHnMMcZK4V1Zj6U27STOOC/kZzIxs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gVYL3dGX; 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="gVYL3dGX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4446BC4CED0; Fri, 27 Dec 2024 15:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735311676; bh=IFnz0iub/Us04Ff7B6RqakCDjBz+kM8rAbal8pGC2ZY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gVYL3dGXnC7E3iKnZeSV0dODNnQxJBhSp07IknxkkZ9RI2dGCfnv83dhbBwStgNDr dWx6an3AUL4a77OBmkblFGfCq1S8jbOSMmkntJ9Q1Ucq58BxlgJ0NoC4nAJizcA3ZO 22+AF5QM9Ibqz+L713XovhtFO5iD+YGOiMMMi2Es= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56618: pmdomain: imx: gpcv2: Adjust delay after power up handshake Date: Fri, 27 Dec 2024 15:51:25 +0100 Message-ID: <2024122709-CVE-2024-56618-44a1@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=3839; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IFnz0iub/Us04Ff7B6RqakCDjBz+kM8rAbal8pGC2ZY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5++5+YGNxFZfvO+oZL6jsWbT3lv8Ea+dzK9ZU5pU0z JBepL2mI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby8SHDgu0zb/keWi18KrPo 0eIjemdnW0y1/s6w4Fosz5a/T+Rn3Xz0NWxjnvxaw/K4rwA= 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: pmdomain: imx: gpcv2: Adjust delay after power up handshake The udelay(5) is not enough, sometimes below kernel panic still be triggered: [ 4.012973] Kernel panic - not syncing: Asynchronous SError Interrupt [ 4.012976] CPU: 2 UID: 0 PID: 186 Comm: (udev-worker) Not tainted 6.12.0-rc2-0.0.0-devel-00004-g8b1b79e88956 #1 [ 4.012982] Hardware name: Toradex Verdin iMX8M Plus WB on Dahlia Board (DT) [ 4.012985] Call trace: [...] [ 4.013029] arm64_serror_panic+0x64/0x70 [ 4.013034] do_serror+0x3c/0x70 [ 4.013039] el1h_64_error_handler+0x30/0x54 [ 4.013046] el1h_64_error+0x64/0x68 [ 4.013050] clk_imx8mp_audiomix_runtime_resume+0x38/0x48 [ 4.013059] __genpd_runtime_resume+0x30/0x80 [ 4.013066] genpd_runtime_resume+0x114/0x29c [ 4.013073] __rpm_callback+0x48/0x1e0 [ 4.013079] rpm_callback+0x68/0x80 [ 4.013084] rpm_resume+0x3bc/0x6a0 [ 4.013089] __pm_runtime_resume+0x50/0x9c [ 4.013095] pm_runtime_get_suppliers+0x60/0x8c [ 4.013101] __driver_probe_device+0x4c/0x14c [ 4.013108] driver_probe_device+0x3c/0x120 [ 4.013114] __driver_attach+0xc4/0x200 [ 4.013119] bus_for_each_dev+0x7c/0xe0 [ 4.013125] driver_attach+0x24/0x30 [ 4.013130] bus_add_driver+0x110/0x240 [ 4.013135] driver_register+0x68/0x124 [ 4.013142] __platform_driver_register+0x24/0x30 [ 4.013149] sdma_driver_init+0x20/0x1000 [imx_sdma] [ 4.013163] do_one_initcall+0x60/0x1e0 [ 4.013168] do_init_module+0x5c/0x21c [ 4.013175] load_module+0x1a98/0x205c [ 4.013181] init_module_from_file+0x88/0xd4 [ 4.013187] __arm64_sys_finit_module+0x258/0x350 [ 4.013194] invoke_syscall.constprop.0+0x50/0xe0 [ 4.013202] do_el0_svc+0xa8/0xe0 [ 4.013208] el0_svc+0x3c/0x140 [ 4.013215] el0t_64_sync_handler+0x120/0x12c [ 4.013222] el0t_64_sync+0x190/0x194 [ 4.013228] SMP: stopping secondary CPUs The correct way is to wait handshake, but it needs BUS clock of BLK-CTL be enabled, which is in separate driver. So delay is the only option here. The udelay(10) is a data got by experiment. The Linux kernel CVE team has assigned CVE-2024-56618 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit e8dc41afca161b988e6d462f4d0803d247e22250 and fixed in 6.12.5 with commit a63907c8c712414643b597debcd09d16b6827b23 Issue introduced in 6.10 with commit e8dc41afca161b988e6d462f4d0803d247e22250 and fixed in 6.13-rc2 with commit 2379fb937de5333991c567eefd7d11b98977d059 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-56618 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/pmdomain/imx/gpcv2.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/a63907c8c712414643b597debcd09d16b6827b23 https://git.kernel.org/stable/c/2379fb937de5333991c567eefd7d11b98977d059