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 39BB63128C6 for ; Thu, 18 Sep 2025 16:05:45 +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=1758211545; cv=none; b=ahwNu+wXGOGiSlrvakAVUIo9SgCqLfeeFnxgI5KRgEPKajqC2E35DYwue0BbeweDF4Uu0eBbseo7rqVAC6DhfpvaU37PhDCs0EU0PxsBwJxrO+BJSBeU/piUisQ8RGzQd9J0kLfbpVDRSUIxVFespDsgwx3mZ5kmvjpux8MZhGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211545; c=relaxed/simple; bh=Ndy0ieiEqJtT89iWT4rduYnVMguO+uH6XTrrV2aHRIc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZfZrm42WzAzBQEXl+eyt8uR16ma+7jSg4ZbgaEPDMbYViDgpUZgit2kAZerx/SCm6StfyAp5Ab9GnGAtoNDd0TQ9KTr5mj+dMoSADBSSaKRD6sfjGsYn7mfxohVReOgbSBEzq3yw1R7QH+esH96S2oticmXaOCpyclh+6ytp9fY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gWEjvIhT; 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="gWEjvIhT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD013C4CEE7; Thu, 18 Sep 2025 16:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211545; bh=Ndy0ieiEqJtT89iWT4rduYnVMguO+uH6XTrrV2aHRIc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gWEjvIhT2EC0xgZKhEgWuvjnaB/hSkVRRIacQRenQJo4AMi6htb5bDn9/hUNui1YI 2amZ5DxmoHRXu1V108h9HLF0+JYiZcKqjoQVVarvVIrjsYDziqEHt5nvb1hGMN8vZo 9yBXO91Au/Sh4WsSIcSm14QdxUwqkY1SljVrby3M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53438: x86/MCE: Always save CS register on AMD Zen IF Poison errors Date: Thu, 18 Sep 2025 18:04:29 +0200 Message-ID: <2025091858-CVE-2023-53438-50e2@gregkh> X-Mailer: git-send-email 2.51.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=2966; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wZu98Ss1Vtx6CWBSVEfUsgqfF5FQ4MWNSo3CoY10dJM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndPP67dYsNJ0TtGlC4c8N0l47f55+KfW6gEno7rlpk 3JT4w0ed8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOloZ5ns8/Fy02XPibNEC hmlmDQWC2qa6sQxzZbd8dtjr1PzrnfJDpfj5tnlfJd40AAA= 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/MCE: Always save CS register on AMD Zen IF Poison errors The Instruction Fetch (IF) units on current AMD Zen-based systems do not guarantee a synchronous #MC is delivered for poison consumption errors. Therefore, MCG_STATUS[EIPV|RIPV] will not be set. However, the microarchitecture does guarantee that the exception is delivered within the same context. In other words, the exact rIP is not known, but the context is known to not have changed. There is no architecturally-defined method to determine this behavior. The Code Segment (CS) register is always valid on such IF unit poison errors regardless of the value of MCG_STATUS[EIPV|RIPV]. Add a quirk to save the CS register for poison consumption from the IF unit banks. This is needed to properly determine the context of the error. Otherwise, the severity grading function will assume the context is IN_KERNEL due to the m->cs value being 0 (the initialized value). This leads to unnecessary kernel panics on data poison errors due to the kernel believing the poison consumption occurred in kernel context. The Linux kernel CVE team has assigned CVE-2023-53438 to this issue. Affected and fixed versions =========================== Fixed in 6.1.53 with commit e6e6a5f50f58fadec397b23064b7e4830292863d Fixed in 6.4.16 with commit 6eac3965901489ae114a664a78cd2d1415d1af5c Fixed in 6.5.3 with commit 2e01bdf7203c383e9d8489d9f963c52d6c81e4db Fixed in 6.6 with commit 4240e2ebe67941ce2c4f5c866c3af4b5ac7a0c67 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-53438 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/kernel/cpu/mce/core.c arch/x86/kernel/cpu/mce/internal.h 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/e6e6a5f50f58fadec397b23064b7e4830292863d https://git.kernel.org/stable/c/6eac3965901489ae114a664a78cd2d1415d1af5c https://git.kernel.org/stable/c/2e01bdf7203c383e9d8489d9f963c52d6c81e4db https://git.kernel.org/stable/c/4240e2ebe67941ce2c4f5c866c3af4b5ac7a0c67