CVE-2026-74275

cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach()

Published Aug 15, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach()

In cxl_cancel_auto_attach(), it assumes cxled->pos is a valid index for
accessing p->targets[]. However, cxled->pos can be set to negative errno
in cxl_region_sort_targets() if cxl_calc_interleave_pos() fails. This
causes the driver to use a negative index to access p->targets[],
resulting in out-of-bounds access.

Fix it by walking p->targets[] instead of using cxled->pos directly.

Analysis

AI-generated

Technical impact

In the Linux kernel a flaw in the CXL region driver allows an out‑of‑bounds array access when the driver assumes a valid target index. The index may be set to a negative error code during interleave calculation, causing the code to read through a kernel pointer. This memory corruption can lead to undefined behaviour, potentially enabling an attacker to modify kernel memory or crash the system. The weakness is a classic out‑of‑bounds read, which can be used to elevate privileges or crash services if an attacker can influence the values passed to the driver.

Affected Systems

The vulnerability resides in the generic Linux kernel CXL region driver. No specific kernel version range is listed in the CNA data, so any kernel build that includes the affected code path before the patch may be vulnerable.

Risk and Exploitability

The CVSS score is 8.4, indicating high severity. The EPSS score is less than 1%, suggesting a low probability of exploitation under current conditions. Based on the description, it is inferred that the likely attack vector is local or privileged‑level, as exploitation would require local privilege or the ability to load and configure the driver. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, indicating that no public exploit has yet been seen, but the high CVSS score and kernel impact mean it remains a serious risk where an attacker can potentially gain elevated privileges or crash the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that updates cxl_cancel_auto_attach() to iterate over p->targets[] safely
  • Reboot the system after the kernel update to ensure the patch is active
  • Disable or unload the CXL driver if CXL functionality is not required, or restrict kernel module loading rights to privileged users

Generated by OpenCVE AI on August 22, 2026 at 03:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-129
Type Values Removed Values Added
Weaknesses CWE-129
Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach() In cxl_cancel_auto_attach(), it assumes cxled->pos is a valid index for accessing p->targets[]. However, cxled->pos can be set to negative errno in cxl_region_sort_targets() if cxl_calc_interleave_pos() fails. This causes the driver to use a negative index to access p->targets[], resulting in out-of-bounds access. Fix it by walking p->targets[] instead of using cxled->pos directly.
Title cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1285

    Improper Validation of Specified Index, Position, or Offset in Input

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:45 AM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Aug 17, 2026, 6:19 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM