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 2496B2F0C5B for ; Tue, 30 Dec 2025 12:37:31 +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=1767098252; cv=none; b=TffZYSpxHSzaXjWRoVzx0R75l6AFIhJn6PPpcmsm+YIb3RTNp9HS7tdZB42cF83DIwjyki6oHE/GovnqC8qUV6exOfHoHk/PO3Yo75eKbgTY2UPIEElh5A+liDC1Cy9KKHAbB/TOq3m7UwKxHfYQRsOd2s7rbu2h1G1gQLnu7ls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767098252; c=relaxed/simple; bh=2H5juwJ7A1Lsg0Vshlt74sCznu0+uo0Abkyu7T72n5w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gA4q4PswmIKxfv3agpLEpHYuSvJe9gcMOQf2F4t4fC+3tqooh4mqOymxDEU62nJjI/yJudNa6UPQMu8tCHAMstr8e1qgKCo3j6pUMG5hs4Qk9+D/UHPYLULziipXQgiNijqMNFYfH7OeER9mU9SYyLdOojJFiU4YcMbIFwsl1WA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=StMCyJkS; 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="StMCyJkS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DC67C4CEFB; Tue, 30 Dec 2025 12:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767098251; bh=2H5juwJ7A1Lsg0Vshlt74sCznu0+uo0Abkyu7T72n5w=; h=From:To:Cc:Subject:Date:Reply-To:From; b=StMCyJkSlT3h1klgbthWWoi7stimlfLt6qeRmd5FAVNWrgLKuSFMli7i3rcGYLi5K bP/7vVLHy7C8FiFEgYqQhKfve0/rj3gIM/BRoEFGLSALlFh4W2m2PI6TxD7SI5Esui p+vP5Po9FceKHMTHYOBIzAd6JsgC4iQFncK3hWXk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54323: cxl/pmem: Fix nvdimm registration races Date: Tue, 30 Dec 2025 13:37:18 +0100 Message-ID: <2025123015-CVE-2023-54323-423a@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GFJ9Ne7ujk53DYqAjO+3OXInGgc+5hQs0GuTSmj8Ph8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBx6vf+UoxdQWpLroUlWLNdkQ/4NMrzqXW09VMfFlkp fV2vubqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn8vMqwYLqGj8n6jzuzpn2v L805oFH7lLn7N8Ncca3EvmfhsbzWSk8K2bM49USTP2cBAA== 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: cxl/pmem: Fix nvdimm registration races A loop of the form: while true; do modprobe cxl_pci; modprobe -r cxl_pci; done ...fails with the following crash signature: BUG: kernel NULL pointer dereference, address: 0000000000000040 [..] RIP: 0010:cxl_internal_send_cmd+0x5/0xb0 [cxl_core] [..] Call Trace: cxl_pmem_ctl+0x121/0x240 [cxl_pmem] nvdimm_get_config_data+0xd6/0x1a0 [libnvdimm] nd_label_data_init+0x135/0x7e0 [libnvdimm] nvdimm_probe+0xd6/0x1c0 [libnvdimm] nvdimm_bus_probe+0x7a/0x1e0 [libnvdimm] really_probe+0xde/0x380 __driver_probe_device+0x78/0x170 driver_probe_device+0x1f/0x90 __device_attach_driver+0x85/0x110 bus_for_each_drv+0x7d/0xc0 __device_attach+0xb4/0x1e0 bus_probe_device+0x9f/0xc0 device_add+0x445/0x9c0 nd_async_device_register+0xe/0x40 [libnvdimm] async_run_entry_fn+0x30/0x130 ...namely that the bottom half of async nvdimm device registration runs after the CXL has already torn down the context that cxl_pmem_ctl() needs. Unlike the ACPI NFIT case that benefits from launching multiple nvdimm device registrations in parallel from those listed in the table, CXL is already marked PROBE_PREFER_ASYNCHRONOUS. So provide for a synchronous registration path to preclude this scenario. The Linux kernel CVE team has assigned CVE-2023-54323 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 21083f51521fb0f60dbac591f175c3ed48435af4 and fixed in 6.1.16 with commit a371788d4f4a7f59eecd22644331d599979fd283 Issue introduced in 5.14 with commit 21083f51521fb0f60dbac591f175c3ed48435af4 and fixed in 6.2.3 with commit 18c65667fa9104780eeaa0dc1bc240f0c2094772 Issue introduced in 5.14 with commit 21083f51521fb0f60dbac591f175c3ed48435af4 and fixed in 6.3 with commit f57aec443c24d2e8e1f3b5b4856aea12ddda4254 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-54323 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/pmem.c drivers/nvdimm/bus.c drivers/nvdimm/dimm_devs.c drivers/nvdimm/nd-core.h include/linux/libnvdimm.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/a371788d4f4a7f59eecd22644331d599979fd283 https://git.kernel.org/stable/c/18c65667fa9104780eeaa0dc1bc240f0c2094772 https://git.kernel.org/stable/c/f57aec443c24d2e8e1f3b5b4856aea12ddda4254