CVE-2026-31529

cxl/region: Fix leakage in __construct_region()

Published Apr 22, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel’s CXL region handling code, where a failure on the first sysfs_update_group() call prevents the associated resource from being freed. This results in a memory resource leak that can accumulate over time and exhaust system memory, thereby disrupting normal operation of the kernel or other applications. The weakness is a classic memory leak (CWE-401) and a failure to release a resource after its effective lifetime (CWE-772).

Affected Systems

All installations of the Linux kernel that include the cxl module are potentially affected, as the issue is logged in the core kernel source and applies to any kernel build before the inclusion of the fix commit. Specific distribution or version information is not provided, so any kernel release before the fix should be considered vulnerable.

Risk and Exploitability

With a CVSS score of 5.5, the severity is moderate; repeated or forced failures of sysfs_update_group() could lead to memory exhaustion and subsequent denial of service. The EPSS score of 0.00024 (<1%) and the fact that it is not listed in CISA’s KEV catalog indicate that the vulnerability has not been widely exploited in public attacks. The most likely attack vector involves an attacker who can trigger the failure condition on a system with active CXL devices or from a privileged context where sysfs updates can misbehave.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade your Linux distribution or kernel to a release that applies commit 77b310bb7b5ff8c017524df83292e0242ba89791, which resolves the leak.
  • If you maintain a custom kernel, merge commit 77b310bb7b5ff8c017524df83292e0242ba89791 into your source tree and rebuild the kernel.
  • If the patch cannot be applied immediately and the device is not required, disable or remove the CXL subsystem modules to eliminate the vulnerable code path until an official fix is available.

Generated by OpenCVE AI on April 28, 2026 at 23:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
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.
Title cxl/region: Fix leakage in __construct_region()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
May 11, 2026, 10:10 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Analyzed
Published
Apr 22, 2026, 2:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Public date
Apr 22, 2026, 12:00 AM