AZL-117286: CVE-2026-139687 affecting package kernel 6.6.161.1-1
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 (targetlist.targetid[]) 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 cxlswitchdecoderinit(). Enumeration is then left with a single check: reject a decoder whose interleave ways exceed the targets it has.
Add a clarifying comment that targetcount is a direct count, not 0-based like decodercount.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
When establishing target_count, reject zero and values exceeding the target-list register capacity; reject switch decoders whose interleave ways exceed the targets available. Treat target_count as a direct count (0-based like decoder_count), and add a clarifying comment stating that it is a direct count.
Event History
Frequently Asked Questions
What condition is required to trigger the vulnerable path?
The issue is in CXL HDM switch-decoder enumeration. It can be triggered when a decoder reports an interleave-way count that is legal as an encoding but exceeds the number of available targets, including 12- or 16-way interleaves.
What malformed hardware capability values are now rejected?
The fix rejects HDM capabilities reporting a target count of zero or a count greater than the target-list register capacity. It also rejects switch-decoder allocations with zero targets and decoders whose interleave ways exceed their available targets.
What is the consequence of successful triggering?
Enumeration can overrun the target ID array, target_list.target_id[]. The remediation bounds the target count when it is established rather than relying on checks at later uses.