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 D8AF253803 for ; Tue, 26 Mar 2024 17:50:21 +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=1711475421; cv=none; b=Ls53yU+CShLL+h8ZEBgNJXni4CPPXpW72TfRjI8tCxCgg5nu8fNPIA237SQA2++Akuf1jC8Eori69L5YSC1Be54D26vfmrvkmhOQfBWCoAMBqWlLtPEcPav25zDY2/5F0k3HjQAIuCoOVu4ucLQ/OcyeL02aj9XmA2HXPWqiLVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711475421; c=relaxed/simple; bh=oA4bc/E0m4HTaPz24rFBP1w/Mc+E/Zzm1ZHqPAZGcsE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tEgLzTTYo0eqx8LiV1myYjqY2vGxD6/n7SuRxO1A4Py5plrO5PPeFNML0bRuWmyw7nM/ZkCVmsFRFoVI3ypHNOemKK5vNEQ5XCvGi+FIpMAi7DEAg2ssg6WpOq7HNt63BwXhOyAr6sPsJteHKCW0Hg68pJZZOsgo6TzKkut41RU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PttYy/Ht; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PttYy/Ht" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1174C43390; Tue, 26 Mar 2024 17:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711475421; bh=oA4bc/E0m4HTaPz24rFBP1w/Mc+E/Zzm1ZHqPAZGcsE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PttYy/HtMrtQsniZzoX0pJt1stCOdF6Z14aRAfhViYPxgl2q5LakNi1ooeq5gy/Bz km80BUskXABpr3UNAOg7nxANTydOAeqOG++yQRVBS8k3Yftg9QSq2KRsdWweIqombz OYUhxBUkAPQoH4zE3OCQcEroYEFHVjQYAnmondzbz/lcZlpVXN/EfOZn26MwLE4stM HUNmRmjzqzlj9XwQEljCM3TW8AE9Bw6j1xhHUiukMLRQn5vr1DENaA8OQ2Sqap/GBt ryAnpaWon05oh8vfe1AHztntNpHOEw6glOj59GCdqYUAl4GEHsViDEflySSWLt+OXm M9oF6Yb5GW43Q== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2024-26646: thermal: intel: hfi: Add syscore callbacks for system-wide PM Date: Tue, 26 Mar 2024 17:50:12 +0000 Message-ID: <20240326175007.1388794-14-lee@kernel.org> X-Mailer: git-send-email 2.44.0.396.g6e790dbe36-goog 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=3135; i=lee@kernel.org; h=from:subject; bh=oA4bc/E0m4HTaPz24rFBP1w/Mc+E/Zzm1ZHqPAZGcsE=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBmAwrQwAyQArSh4ctH2w8ioVJjV/wkEX1NPtuXF BlQkjz0YIOJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZgMK0AAKCRBRr4ovh/x3 YZdAEACewGAwNmgcIZJqsI8oZ1N9QJuj/BSTGjniRmc8boiuKVgoO71TKFN0OSDIV2tbdrr0kmY 7P+iqykIbSNDlqNInQ9y03zEAaOQ8k0ARzptWKbJOEYbSXAedDVrzQSBXMXa4s6sTFUi8uxvC+w tdOWIaWkDdORs9Wl4aX6q6XpXM6N0Ru4qI/hCCJ+MEClAPIA/WoKuF7w+hKsgNM+dLVxtjKMkpT kfn6r7dSo6ASHHn5pfswEsj0SvDVAS5vlYovJIE2LSVctKRNpihNDzUQPIeyqJJuaVY1pdZeqfO I/iDpONR0Ns1RPGXS2r8BpDcQSbNc2/mOGvG2cTCtSoy8cqFk4g1TQMxNtCY4W2jmBgLFjgqyvb oZevCxG9sVQPctwPmvi0LueHkqejqzPynkavCiOerjquinaiaiOltQjJG5pLyqvOh8TrvBjHCm7 vYiE6urz4vyVN17upBH/bz6QbMgibVJllztRnBYxgSqLN23NKqPT7m/5l06hABIhHJ3KMTSPVuz /IHQ2e5mwhZxoXGpQE5HqZEQunDMQX2gJzF52mM7/sA3j2EHK+27t+2j5DgJhc0OSWH3+UnnHqf XLoN7ujQgx2KQhipUnxTSPLtPydz0ffQOkLeAzOJL52HkbcJLTbhtSZqiidjyr0skh7p8rw8d1/ Pd9rBmzkwdR/4HA== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: thermal: intel: hfi: Add syscore callbacks for system-wide PM The kernel allocates a memory buffer and provides its location to the hardware, which uses it to update the HFI table. This allocation occurs during boot and remains constant throughout runtime. When resuming from hibernation, the restore kernel allocates a second memory buffer and reprograms the HFI hardware with the new location as part of a normal boot. The location of the second memory buffer may differ from the one allocated by the image kernel. When the restore kernel transfers control to the image kernel, its HFI buffer becomes invalid, potentially leading to memory corruption if the hardware writes to it (the hardware continues to use the buffer from the restore kernel). It is also possible that the hardware "forgets" the address of the memory buffer when resuming from "deep" suspend. Memory corruption may also occur in such a scenario. To prevent the described memory corruption, disable HFI when preparing to suspend or hibernate. Enable it when resuming. Add syscore callbacks to handle the package of the boot CPU (packages of non-boot CPUs are handled via CPU offline). Syscore ops always run on the boot CPU. Additionally, HFI only needs to be disabled during "deep" suspend and hibernation. Syscore ops only run in these cases. [ rjw: Comment adjustment, subject and changelog edits ] The Linux kernel CVE team has assigned CVE-2024-26646 to this issue. Affected and fixed versions =========================== Fixed in 6.1.76 with commit 28f010dc50df Fixed in 6.6.15 with commit 019ccc66d56a Fixed in 6.7.3 with commit c9d6d63b6c03 Fixed in 6.8 with commit 97566d09fd02 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-26646 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/thermal/intel/intel_hfi.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/28f010dc50df0f7987c04112114fcfa7e0803566 https://git.kernel.org/stable/c/019ccc66d56a696a4dfee3bfa2f04d0a7c3d89ee https://git.kernel.org/stable/c/c9d6d63b6c03afaa6f185df249af693a7939577c https://git.kernel.org/stable/c/97566d09fd02d2ab329774bb89a2cdf2267e86d9