CVE-2026-31529: cxl/region: Fix leakage in __construct_region()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
cxl/region: Fix leakage in __construct_region()
Failing the first sysfs_update_group() needs to explicitly kfree the resource as it is too early for cxl_region_iomem_release() to do so.
The Linux kernel CVE team has assigned CVE-2026-31529 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit d6602e25819dea2c239972e98e09ba5db4aebd22 and fixed in 6.19.11 with commit f1b4741adf08b0063291ec1b0dfa9c3d55644933 Issue introduced in 6.19 with commit d6602e25819dea2c239972e98e09ba5db4aebd22 and fixed in 7.0 with commit 77b310bb7b5ff8c017524df83292e0242ba89791
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-31529
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/region.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/f1b4741adf08b0063291ec1b0dfa9c3d55644933 https://git.kernel.org/stable/c/77b310bb7b5ff8c017524df83292e0242ba89791