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 9D81820110B for ; Wed, 18 Jun 2025 09:34:33 +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=1750239273; cv=none; b=s/BCDjfKdsUNMRN3aDjVSnUyAyyQhDjXFZQEgK3zIuXsny7x0FQaSQJBPu91aU8+8iDkOvTbffZiL5ADcTRXzhmD3KkSYcgx2oxZKy4rictpz/VE2G41A2PA/rde1p2twwnqB2cWWpVGRwZqngM57cbBEgwcJjrTzOjOl/wjJGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239273; c=relaxed/simple; bh=39sYj0iXCDisIh+uFbgpoZt3NaQd4wW5M80Urh+087o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y+Sh32suLhLZ2wx2h0VxZSzDAyu7zDDIojyb8TqcTroLVUQHKntFHMf4t0qyFV+hTqWyBVSgF5L9OWZDDOjjNMolshIcZ3YisOYo9NHHNgN2sBrDlyCtqBKAoaxXikIyU++AzmAo60yP1KAYnhWpYpwmro/hTIubDKhlAuVAtC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=clMJsIUh; 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="clMJsIUh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7F92C4CEE7; Wed, 18 Jun 2025 09:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239273; bh=39sYj0iXCDisIh+uFbgpoZt3NaQd4wW5M80Urh+087o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=clMJsIUhx0d2zBqeB1L2mYXzp8rVXNhxjP0ChMzRqtSJIw+aBF4O+0gXMRxMxlJxE WYyZMBcm9SWIlBizCDfE9N4FgG72ixue1fIbsrpiOnKzoMZHqspF9U5ftP497/sIK0 Zgmquy+y8E+/nlSnp1PoNK1nOKKD79jCsNGSX5lc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38047: x86/fred: Fix system hang during S4 resume with FRED enabled Date: Wed, 18 Jun 2025 11:33:43 +0200 Message-ID: <2025061830-CVE-2025-38047-ad81@gregkh> X-Mailer: git-send-email 2.49.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=2579; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A6fwR4QLwqLTVE9/NP+xUbH1ldPPSiTeBDRzKPtKq8g=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7a+02GxOm515GrIsSKPm5TvWzflbPH8+s6teENvsv DXhZuH8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIXRLDHF7vtHvhDht/xiQ/ 2+3qeC/z4aTpkgzz3b3YHErjhA67OhpPVFGfuyRat2A3AA== 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: x86/fred: Fix system hang during S4 resume with FRED enabled Upon a wakeup from S4, the restore kernel starts and initializes the FRED MSRs as needed from its perspective. It then loads a hibernation image, including the image kernel, and attempts to load image pages directly into their original page frames used before hibernation unless those frames are currently in use. Once all pages are moved to their original locations, it jumps to a "trampoline" page in the image kernel. At this point, the image kernel takes control, but the FRED MSRs still contain values set by the restore kernel, which may differ from those set by the image kernel before hibernation. Therefore, the image kernel must ensure the FRED MSRs have the same values as before hibernation. Since these values depend only on the location of the kernel text and data, they can be recomputed from scratch. The Linux kernel CVE team has assigned CVE-2025-38047 to this issue. Affected and fixed versions =========================== Fixed in 6.12.31 with commit c42f740a07eea4807e98d2d8febc549c957a7b49 Fixed in 6.14.9 with commit e7090fe75a2826363c71ad1fb4e95e58141478df Fixed in 6.15 with commit e5f1e8af9c9e151ecd665f6d2e36fb25fec3b110 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-38047 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: arch/x86/power/cpu.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/c42f740a07eea4807e98d2d8febc549c957a7b49 https://git.kernel.org/stable/c/e7090fe75a2826363c71ad1fb4e95e58141478df https://git.kernel.org/stable/c/e5f1e8af9c9e151ecd665f6d2e36fb25fec3b110