Description
In the Linux kernel, the following vulnerability has been resolved:

s390/vfio_ccw: Fix out of bounds check on CCW array

The routine ccwchain_calc_length() counts the number of channel
command words (CCWs) that are chained together in a single channel
program, and rejects anything larger than CCWCHAIN_LEN_MAX (256) CCWs.

The loop itself is "do..while (count < 257)", and while the logic in
is_cpa_within_range() correctly adjusts between the 0-index array of
CCWs and the count of CCWs starting at 1, this means it would look
at a possible 257th CCW before ending the loop and (correctly)
returning an error.

Fix this by restructuring the loop to break as soon as 256 CCWs
(thus indexes 0-255) are examined, without looking at memory
outside the range.
Published: 2026-08-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The s390/vfio_ccw driver in the Linux kernel contains an off‑by‑one loop in ccwchain_calc_length() that reads a 257th channel command word outside the bounds of the CCW array. This out‑of-bounds read can expose kernel memory contents or cause a crash, representing an information‑disclosure or denial‑of‑service flaw.

Affected Systems

All Linux kernel builds that include the s390/vfio_ccw driver and run on IBM Z (s390) hardware are affected until the commit that restructures the loop is applied. No specific release numbers are given, so any configuration containing the vulnerable driver code, regardless of kernel version, is impacted.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable; the vulnerability is not listed in the CISA KEV catalog. The flaw requires local or device-level access to supply malformed channel programs to the vfio_ccw interface, so an attacker who can execute code in that context could trigger the out-of-bounds read and potentially leak kernel data. Because the attack vector is limited to privileged users or system administrators, the immediate risk is moderate pending a patch, but elevated if the driver is exposed to untrusted code.

Generated by OpenCVE AI on August 26, 2026 at 18:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the vfio_ccw patch or apply the upstream patch that restructures the loop.
  • If an upgrade is not feasible, disable or unload the vfio_ccw driver to prevent the vulnerable functionality from being used.
  • Restrict access to the vfio_ccw interface by limiting capabilities or preventing untrusted applications from loading the driver, and monitor for abnormal kernel read errors.

Generated by OpenCVE AI on August 26, 2026 at 18:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125

Wed, 26 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: s390/vfio_ccw: Fix out of bounds check on CCW array The routine ccwchain_calc_length() counts the number of channel command words (CCWs) that are chained together in a single channel program, and rejects anything larger than CCWCHAIN_LEN_MAX (256) CCWs. The loop itself is "do..while (count < 257)", and while the logic in is_cpa_within_range() correctly adjusts between the 0-index array of CCWs and the count of CCWs starting at 1, this means it would look at a possible 257th CCW before ending the loop and (correctly) returning an error. Fix this by restructuring the loop to break as soon as 256 CCWs (thus indexes 0-255) are examined, without looking at memory outside the range.
Title s390/vfio_ccw: Fix out of bounds check on CCW array
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-26T14:37:19.956Z

Reserved: 2026-08-26T14:34:25.766Z

Link: CVE-2026-80550

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:17:09.477

Modified: 2026-08-26T15:17:09.477

Link: CVE-2026-80550

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T18:15:08Z

Weaknesses