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 0D9C2274FDB for ; Wed, 1 Oct 2025 11:56:29 +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=1759319789; cv=none; b=aY+fIA/VxrJz5VTYiLIUcMVzLeFaff9weHYDE1Ak1iA6J2MpD1uTaRSKd5zEXF3gF0J65vMUgCY20LSV7+KRkfexcP907fglK5p4HSxmCv1ashkQ0rgsTLikxYAS2ujZbBuJ+yzd89PnRXjb19Nspo8OI2B6OmyBRVv5sogVR20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319789; c=relaxed/simple; bh=kKi8H/Bamvk3jqnc/KUnPg0/o6oDEFueEP//iZJv6E0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r2WEtRIxOfXCBGZzU3DOXo1fjLPVBlRbITnS3Hu03uMROK9omI8HOtXOndIc8tem/B2MiDRw//9VK7pUxySC5LK2xWhB39MJYj6szn77LBHBh6wP5ugJkxHrFLxnJmW5YU2WdwE3vq0/rqIrELkX6EByF9uTHtUwXdpREzfSTkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=adj7M59A; 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="adj7M59A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67A41C4CEF4; Wed, 1 Oct 2025 11:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319788; bh=kKi8H/Bamvk3jqnc/KUnPg0/o6oDEFueEP//iZJv6E0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=adj7M59AeveaJWxMuplNAsF8sC18QMGX6rzTnirJ+AeTSsxd7ghdNE8MhP4MYFuat tXwvcrU36z1oqfF+Ld4z0jUHr0jLWh3BaMLE8kJ8/O1xO/Mw8HnwDY2/PhnYk5ytn1 A7ahslu1QxG2uRRgBcoTORINKRUIMGyb9Zla0DFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53496: x86/platform/uv: Use alternate source for socket to node data Date: Wed, 1 Oct 2025 13:45:48 +0200 Message-ID: <2025100125-CVE-2023-53496-b145@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=2625; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0Wbovav56U2yZDx5vOa6kb/U9E9Zsx19vvOCYZ8iZ1k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RULvr/Gfxfutbrf5/tNhU89+nvTh95XQdZfC7q1cq RoYeP7U8Y5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYyMplDPPDOJ7f1Tr0XKdR 5m+fmPTt4+7tm2UZFmyu+5PYPj9k1brvcy42NR8tvNzRXQMA 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/platform/uv: Use alternate source for socket to node data The UV code attempts to build a set of tables to allow it to do bidirectional socket<=>node lookups. But when nr_cpus is set to a smaller number than actually present, the cpu_to_node() mapping information for unused CPUs is not available to build_socket_tables(). This results in skipping some nodes or sockets when creating the tables and leaving some -1's for later code to trip. over, causing oopses. The problem is that the socket<=>node lookups are created by doing a loop over all CPUs, then looking up the CPU's APICID and socket. But if a CPU is not present, there is no way to start this lookup. Instead of looping over all CPUs, take CPUs out of the equation entirely. Loop over all APICIDs which are mapped to a valid NUMA node. Then just extract the socket-id from the APICID. This avoid tripping over disabled CPUs. The Linux kernel CVE team has assigned CVE-2023-53496 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 6.5.5 with commit 0d01a0c3046d1545391ef7bb1f114743d00e3793 Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 6.6 with commit 5290e88ba2c742ca77c5f5b690e5af549cfd8591 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-53496 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/apic/x2apic_uv_x.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/0d01a0c3046d1545391ef7bb1f114743d00e3793 https://git.kernel.org/stable/c/5290e88ba2c742ca77c5f5b690e5af549cfd8591