CVE-2026-31542: x86/platform/uv: Handle deconfigured sockets
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
x86/platform/uv: Handle deconfigured sockets
When a socket is deconfigured, it's mapped to SOCK_EMPTY (0xffff). This causes a panic while allocating UV hub info structures.
Fix this by using NUMA_NO_NODE, allowing UV hub info structures to be allocated on valid nodes.
The Linux kernel CVE team has assigned CVE-2026-31542 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 6.6.130 with commit c51957601d32c0d195bce0b9345dfe93ef5728cc Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 6.12.78 with commit 9956d4892e78812246336c7ea51f5aa62018049e Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 6.18.20 with commit 79f0faf81d3bbbe5f07bf6892450d3740a1b290d Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 6.19.10 with commit c1cf2218d2fa40a49921a7460981e5faab26f04e Issue introduced in 6.5 with commit 8a50c58519271dd24ba760bb282875f6ad66ee71 and fixed in 7.0 with commit 1f6aa5bbf1d0f81a8a2aafc16136e7dd9a609ff3
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-2026-31542
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/c51957601d32c0d195bce0b9345dfe93ef5728cc https://git.kernel.org/stable/c/9956d4892e78812246336c7ea51f5aa62018049e https://git.kernel.org/stable/c/79f0faf81d3bbbe5f07bf6892450d3740a1b290d https://git.kernel.org/stable/c/c1cf2218d2fa40a49921a7460981e5faab26f04e https://git.kernel.org/stable/c/1f6aa5bbf1d0f81a8a2aafc16136e7dd9a609ff3