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 0D7F0152534 for ; Wed, 3 Apr 2024 17:32:34 +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=1712165554; cv=none; b=aODoOk94XKq722NYSYlGZCdwrDgU1swcbKzslKf7ZqmPG+eOQeXc/LVFJ0qQBWltLqJRl3sC1O0/rv9+M2acLqldcpOQf0kCcNB+Of6+9KN3+jkdjcqO9pBO0NeStq00MUOLNqOsWvvkwop1iec0WfO7h6HHmBFJxSiCWMCAJ4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165554; c=relaxed/simple; bh=SaHhIjDMGN2sdtrmTd3Fh8arHAhb6c5UIYH5H/GZZf8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ABegW3Ugjv+tMHOlda5eadaWrZ//BtMtAs0HAMLq4IZ2oz9qmCLNitgzcD5NdvI5YeGzqtBTVAeLDOnR0KfoBfIeEueV9OW7NUQvZjUNIcYIUEB7nBcM19BYWf2QkCKn9jb/mqKotUkH/zAYvTAVRIgmjtmUx0SMLF//GW/qkTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y874WevP; 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="y874WevP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88EE9C433C7; Wed, 3 Apr 2024 17:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165553; bh=SaHhIjDMGN2sdtrmTd3Fh8arHAhb6c5UIYH5H/GZZf8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y874WevPaMpYqe0d5HCvrGS+PV3Spa+5QcPXqROPQ4tWom7MLzVdZ6I1Pd2WiygUq llPzXZCn1GUEmz7aYeT2ZoF+JByCnzk0f19F3S9i5dIfYtsXh4Qyy5LGf0puQ2X8Q/ KvNZ6PBnYCQM+7SuRafdAwBgEhsQyCKnlMYookkA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26761: cxl/pci: Fix disabling memory if DVSEC CXL Range does not match a CFMWS window Date: Wed, 3 Apr 2024 19:31:28 +0200 Message-ID: <2024040305-CVE-2024-26761-0646@gregkh> X-Mailer: git-send-email 2.44.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=3023; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SaHhIjDMGN2sdtrmTd3Fh8arHAhb6c5UIYH5H/GZZf8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8kyI/fF8me4jRN0DuhxojM//OTZMKD3VKTRPa/K803 v7ZzSP8HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARXXGG+cnr07rsElwTFOTY j751/8S9vXzuC4a58vHbz0hqp74WkZj/Wfv1HrewzSIvAA== 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: cxl/pci: Fix disabling memory if DVSEC CXL Range does not match a CFMWS window The Linux CXL subsystem is built on the assumption that HPA == SPA. That is, the host physical address (HPA) the HDM decoder registers are programmed with are system physical addresses (SPA). During HDM decoder setup, the DVSEC CXL range registers (cxl-3.1, 8.1.3.8) are checked if the memory is enabled and the CXL range is in a HPA window that is described in a CFMWS structure of the CXL host bridge (cxl-3.1, 9.18.1.3). Now, if the HPA is not an SPA, the CXL range does not match a CFMWS window and the CXL memory range will be disabled then. The HDM decoder stops working which causes system memory being disabled and further a system hang during HDM decoder initialization, typically when a CXL enabled kernel boots. Prevent a system hang and do not disable the HDM decoder if the decoder's CXL range is not found in a CFMWS window. Note the change only fixes a hardware hang, but does not implement HPA/SPA translation. Support for this can be added in a follow on patch series. The Linux kernel CVE team has assigned CVE-2024-26761 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 34e37b4c432c and fixed in 6.1.80 with commit 031217128990 Issue introduced in 5.19 with commit 34e37b4c432c and fixed in 6.6.19 with commit 2cc1a530ab31 Issue introduced in 5.19 with commit 34e37b4c432c and fixed in 6.7.7 with commit 3a3181a71935 Issue introduced in 5.19 with commit 34e37b4c432c and fixed in 6.8 with commit 0cab68720598 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-26761 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/cxl/core/pci.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/031217128990d7f0ab8c46db1afb3cf1e075fd29 https://git.kernel.org/stable/c/2cc1a530ab31c65b52daf3cb5d0883c8b614ea69 https://git.kernel.org/stable/c/3a3181a71935774bda2398451256d7441426420b https://git.kernel.org/stable/c/0cab687205986491302cd2e440ef1d253031c221