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 9FCA113F42C for ; Wed, 17 Apr 2024 15:59:46 +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=1713369586; cv=none; b=f4QZK4HerqVevLIPsuH7OHZ0CHbEHXgc5kDhBIahvjgASUsEll4wOhOsyt/Sx88NZOlNm1FJGp0KFRIz1usEGwLWxH89aRgJRsgYcycfcI8yECstDdaRQ/SfD1u+9Qyihcrgeu+Xzj+I+Lj2vdv5fVzwfDMl4rdsrHuGf/idoMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369586; c=relaxed/simple; bh=Oo4VK/lplUFBA3lW5/FqqdOeedAS6fsfFSSxqZwlLxY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OJqrGRWJ3YngCVM+3BzwRJ1bpYm4F6OMNtAYSVgahmrlxfanZ6jqJ9GpOPIOO2zyOlOZGR24sKEF+96s9Dt6H1Sqo6WZxwpLjZn0aS792s6ppP/qFEF0qRyRYojHlS14N/O729UME8cqGAAa7VPlLju3fSKQ+n9eHqvzOIu7lOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j0uTAjiG; 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="j0uTAjiG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE0C5C072AA; Wed, 17 Apr 2024 15:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713369586; bh=Oo4VK/lplUFBA3lW5/FqqdOeedAS6fsfFSSxqZwlLxY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j0uTAjiGTtwZVwtoMREQ3rYWSZpINvg1LbBCzAfdzfU14dqQPVWhwG16lLbJFMRpf kD8JfVjNYtxHzHMCZLKUbqbYvOeh0RDfzfqdXg6w3fKTH/vtWBcGLpr3PbExsk9hdR jrJJ6CnUvahe8XmZkRgGd+LMn9+GZqp0+OEGQoYQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52645: pmdomain: mediatek: fix race conditions with genpd Date: Wed, 17 Apr 2024 17:59:34 +0200 Message-ID: <2024041733-CVE-2023-52645-68dc@gregkh> X-Mailer: git-send-email 2.44.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=2680; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Oo4VK/lplUFBA3lW5/FqqdOeedAS6fsfFSSxqZwlLxY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyH5+yn7h55Xz1a/sMbcYa18+pk2USg3t+fHu4ZOeCh oDDZt4nO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiD/sZ5rsoOX9p7rrV9Ip1 60/xfOaVPTv0uRgW7OSd9mjquxVLYqemPkz2bZob7Zj+HwA= 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: mediatek: fix race conditions with genpd If the power domains are registered first with genpd and *after that* the driver attempts to power them on in the probe sequence, then it is possible that a race condition occurs if genpd tries to power them on in the same time. The same is valid for powering them off before unregistering them from genpd. Attempt to fix race conditions by first removing the domains from genpd and *after that* powering down domains. Also first power up the domains and *after that* register them to genpd. The Linux kernel CVE team has assigned CVE-2023-52645 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 59b644b01cf4 and fixed in 5.15.150 with commit 475426ad1ae0 Issue introduced in 5.11 with commit 59b644b01cf4 and fixed in 6.1.80 with commit 339ddc983bc1 Issue introduced in 5.11 with commit 59b644b01cf4 and fixed in 6.6.18 with commit f83b9abee9fa Issue introduced in 5.11 with commit 59b644b01cf4 and fixed in 6.7.6 with commit 3cd1d92ee1db Issue introduced in 5.11 with commit 59b644b01cf4 and fixed in 6.8 with commit c41336f4d690 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-2023-52645 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/mediatek/mtk-pm-domains.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/475426ad1ae0bfdfd8f160ed9750903799392438 https://git.kernel.org/stable/c/339ddc983bc1622341d95f244c361cda3da3a4ff https://git.kernel.org/stable/c/f83b9abee9faa4868a6fac4669b86f4c215dae25 https://git.kernel.org/stable/c/3cd1d92ee1dbf3e8f988767eb75f26207397792b https://git.kernel.org/stable/c/c41336f4d69057cbf88fed47951379b384540df5