CVE-2026-139687

cxl/hdm: Reject switch decoder interleave ways that overflow targets

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

cxl/hdm: Reject switch decoder interleave ways that overflow targets

Switch decoder enumeration validates that the interleave ways encoding
is legal, but not that the resulting number of ways fits the available
targets. This can overrun the target array (target_list.target_id[])
during enumeration of 12 or 16 way interleaves.

Bound the target count where it is established rather than at each use.
Reject an HDM capability whose reported target count is zero or exceeds
the target list register capacity, and reject a zero target switch
decoder allocation in cxl_switch_decoder_init(). Enumeration is then
left with a single check: reject a decoder whose interleave ways exceed
the targets it has.

Add a clarifying comment that target_count is a direct count, not
0-based like decoder_count.

Analysis

AI-generated

Technical impact

The flaw lies in the Linux kernel’s CXL HMD subsystem. During switch decoder enumeration the code validates only that the interleave‑ways encoding is syntactically correct, but it does not check that the resulting number of interleave ways fits within the target list array. When an attacker supplies a 12‑ or 16‑way interleave configuration that exceeds the target list capacity, the kernel writes past the end of the target_list.target_id[] buffer, corrupting adjacent kernel memory. This buffer overrun can cause the system to crash or exhibit unpredictable behavior.

Affected Systems

All Linux kernel builds that include the unpatched cxl/hdm code path are affected. The advisory does not list specific kernel versions, so any kernel containing the referenced functionality is potentially impacted.

Risk and Exploitability

No CVSS score or EPSS value is provided, and the vulnerability is not listed in CISA KEV, so a quantitative risk assessment is unavailable. The flaw requires interaction with a CXL device that triggers switch decoder enumeration, implying a local or device‑access threat with the potential for memory corruption. Because the kernel simply overwrites memory, an attacker would need elevated privileges or direct device control to exploit it or cause a crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the patch commits referenced in the advisory.
  • If an update cannot be applied immediately, disable CXL hotplug support or unload the cxl/hmd driver to eliminate execution of the vulnerable code path.
  • Verify the configuration of CXL devices to ensure that their interleave ways do not exceed the target list capacity; reject or constrain any configuration that would overflow the array.

Generated by OpenCVE AI on December 1, 2026 at 01:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cxl/hdm: Reject switch decoder interleave ways that overflow targets Switch decoder enumeration validates that the interleave ways encoding is legal, but not that the resulting number of ways fits the available targets. This can overrun the target array (target_list.target_id[]) during enumeration of 12 or 16 way interleaves. Bound the target count where it is established rather than at each use. Reject an HDM capability whose reported target count is zero or exceeds the target list register capacity, and reject a zero target switch decoder allocation in cxl_switch_decoder_init(). Enumeration is then left with a single check: reject a decoder whose interleave ways exceed the targets it has. Add a clarifying comment that target_count is a direct count, not 0-based like decoder_count.
Title cxl/hdm: Reject switch decoder interleave ways that overflow targets
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM