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 BEDD21494DF for ; Thu, 27 Mar 2025 16:45:24 +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=1743093924; cv=none; b=AMgvlxv7Kq4NVUotDReWS6QpgE+ca9j2w4N9dJ8blsDkUOcwo8nYAdW6GD1SaDuVhk2B6zXijTfnPUEF1vGhg3BFrA0QS1Hi4mOXHpFFYMQf+S4RgmejnKKvQcgn2jar9uyDNUxPRSWCpEXBq84A3Ibo4eTOm6a63m75hm7rLlk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093924; c=relaxed/simple; bh=wNR7rbmedaoVPblOT/Iv/kLq+8y++O8zxCtvGvvFYPg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bosn8hx7K0cy09TKLa/yWkwbSYDDmt+KopNdLKxgt53vPfGiVpPgtiWQq+bdoKQHk0czR2s9rwv2vn9qQzRqotr8ezTJwOBHP6GWTPH3GbbO/C7SHlbcUu4UbY63Yp1Q3Cmo8Yc07Q4Oe99zLIoaTSH/4Zq17ZV6RiuJsxFuhDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HqYQgKAD; 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="HqYQgKAD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9149C4CEDD; Thu, 27 Mar 2025 16:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093924; bh=wNR7rbmedaoVPblOT/Iv/kLq+8y++O8zxCtvGvvFYPg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HqYQgKAD1OQuG4O01ZuYKSIMHFLwonupnKInkMPHJRncFVg5wYQyUeRH/7yb6C96U jPA07lYFVN6YXbnZHqRNhM21ppusAwL0MLK482M1kO4V8MdhCvud6CqC061stJQ+fe LGF2VW9J13Xswq4W/0HI3wV24TkH/R+uCG6US8/o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52994: acpi: Fix suspend with Xen PV Date: Thu, 27 Mar 2025 17:43:41 +0100 Message-ID: <2025032710-CVE-2023-52994-5336@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=3109; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wNR7rbmedaoVPblOT/Iv/kLq+8y++O8zxCtvGvvFYPg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG+Q+821y4TOak6tU37XBncmSWWmLcY6jws7GNVETf xdyb9jSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMxbGRYMO+V7Bzd79vNf6VU zppo8sjU4IpdA8M8/e9CjCkPevKk57d43/h7dIZOQbESAA== 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: acpi: Fix suspend with Xen PV Commit f1e525009493 ("x86/boot: Skip realmode init code when running as Xen PV guest") missed one code path accessing real_mode_header, leading to dereferencing NULL when suspending the system under Xen: [ 348.284004] PM: suspend entry (deep) [ 348.289532] Filesystems sync: 0.005 seconds [ 348.291545] Freezing user space processes ... (elapsed 0.000 seconds) done. [ 348.292457] OOM killer disabled. [ 348.292462] Freezing remaining freezable tasks ... (elapsed 0.104 seconds) done. [ 348.396612] printk: Suspending console(s) (use no_console_suspend to debug) [ 348.749228] PM: suspend devices took 0.352 seconds [ 348.769713] ACPI: EC: interrupt blocked [ 348.816077] BUG: kernel NULL pointer dereference, address: 000000000000001c [ 348.816080] #PF: supervisor read access in kernel mode [ 348.816081] #PF: error_code(0x0000) - not-present page [ 348.816083] PGD 0 P4D 0 [ 348.816086] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 348.816089] CPU: 0 PID: 6764 Comm: systemd-sleep Not tainted 6.1.3-1.fc32.qubes.x86_64 #1 [ 348.816092] Hardware name: Star Labs StarBook/StarBook, BIOS 8.01 07/03/2022 [ 348.816093] RIP: e030:acpi_get_wakeup_address+0xc/0x20 Fix that by adding an optional acpi callback allowing to skip setting the wakeup address, as in the Xen PV case this will be handled by the hypervisor anyway. The Linux kernel CVE team has assigned CVE-2023-52994 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.2 with commit b1898793777fe10a31c160bb8bc385d6eea640c6 and fixed in 6.1.9 with commit b96903b7fc8c82ddfd92df4cdd83db3e567da0a5 Issue introduced in 6.0.16 with commit 3414632beaadf635a4affd4ae278297978640965 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-52994 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/include/asm/acpi.h drivers/acpi/sleep.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/b96903b7fc8c82ddfd92df4cdd83db3e567da0a5 https://git.kernel.org/stable/c/fe0ba8c23f9a35b0307eb662f16dd3a75fcdae41