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 39B8818C32C for ; Fri, 27 Sep 2024 12:40:44 +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=1727440844; cv=none; b=XVHQKOVm1ALx1MzSOgc09YFXeSPlAJ1t6r4U4+c1MWFsVfx7aUhBZzoWnEbaXuwkCT8Cj9AegowESdqYnIIpXyaFqmCziT5GSwruMLAPTtobi1lZJ5UGr9ezSDg5qpJvp4h/jRCeN2K6agdnkoaC8CF9yVN4u00DW+FkRQ/bk7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440844; c=relaxed/simple; bh=C5DE9FirLxKaOOQx/DHsFzYY+NjvQYTJZOV3WiFYWIo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q+nMh1GFolC6JmBLNijOuewvNNVpbKcPWn01qCo3gRwOVp3bNOmPw2D3q1oUcyFuUbLMRUGlGufTCwCdqy4Rq87jOQO0W8GmSbAwfjeXRDkKMeU4QbkU3JF9IoLt+yI1sknQ7gArnogY3zAhyvMyFxac/tyc4n36gRmpHWMMndU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RC8YbrmQ; 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="RC8YbrmQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B89F2C4CEC4; Fri, 27 Sep 2024 12:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440844; bh=C5DE9FirLxKaOOQx/DHsFzYY+NjvQYTJZOV3WiFYWIo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RC8YbrmQrWIQ4MAQ4W1vVV0YOT2S5K42bBoCoSsXz7YygDZ5UtPP1F4++pxL6H2GQ K1o/bgX8RgG1+i7DESyW/et8kJDcNs8v6T5gnNc2bOSB2OZOgp0lrulwBKeaap4eQm EIYe38L46lScMJgDrVIEZ6G3jNQKLoxTC4nyKyHk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46846: spi: rockchip: Resolve unbalanced runtime PM / system PM handling Date: Fri, 27 Sep 2024 14:40:14 +0200 Message-ID: <2024092755-CVE-2024-46846-f264@gregkh> X-Mailer: git-send-email 2.46.2 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=2684; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C5DE9FirLxKaOOQx/DHsFzYY+NjvQYTJZOV3WiFYWIo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfls/5Xi2xa/6/leYfW4XWM05m3mqgknXxVlv8U4t3N h2ztaSUOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAipRkMC1oXhqZfFZj9OjCf 72Wfl0vqLWGxcob5hRfT1h1KizKfV7JW32JDYvI18QW7AA== 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: spi: rockchip: Resolve unbalanced runtime PM / system PM handling Commit e882575efc77 ("spi: rockchip: Suspend and resume the bus during NOIRQ_SYSTEM_SLEEP_PM ops") stopped respecting runtime PM status and simply disabled clocks unconditionally when suspending the system. This causes problems when the device is already runtime suspended when we go to sleep -- in which case we double-disable clocks and produce a WARNing. Switch back to pm_runtime_force_{suspend,resume}(), because that still seems like the right thing to do, and the aforementioned commit makes no explanation why it stopped using it. Also, refactor some of the resume() error handling, because it's not actually a good idea to re-disable clocks on failure. The Linux kernel CVE team has assigned CVE-2024-46846 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit e882575efc77 and fixed in 6.1.110 with commit 14f970a8d03d Issue introduced in 5.18 with commit e882575efc77 and fixed in 6.6.51 with commit d034bff62fae Issue introduced in 5.18 with commit e882575efc77 and fixed in 6.10.10 with commit 0efbad8445fb Issue introduced in 5.18 with commit e882575efc77 and fixed in 6.11 with commit be721b451aff 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-46846 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/spi/spi-rockchip.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/14f970a8d03d882b15b97beb83bd84ac8ba6298c https://git.kernel.org/stable/c/d034bff62faea1a2219e0d2f3d17263265f24087 https://git.kernel.org/stable/c/0efbad8445fbba7896402500a1473450a299a08a https://git.kernel.org/stable/c/be721b451affbecc4ba4eaac3b71cdbdcade1b1b