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

tty: hvc_iucv: fix off-by-one in number of supported devices

MAX_HVC_IUCV_LINES == HVC_ALLOC_TTY_ADAPTERS == 8.
This is the number of entries in:
static struct hvc_iucv_private *hvc_iucv_table[MAX_HVC_IUCV_LINES];

Sometimes hvc_iucv_table[] is limited by:
(a) if (num > hvc_iucv_devices) // for error detection
or
(b) for (i = 0; i < hvc_iucv_devices; i++) // in 2 places
(so these 2 don't agree; second one appears to be correct to me.)

hvc_iucv_devices can be 0..8. This is a counter.
(c) if (hvc_iucv_devices > MAX_HVC_IUCV_LINES)

If hvc_iucv_devices == 8, (a) allows the code to access hvc_iucv_table[8].
Oops.
Published: 2026-06-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel contained an off‑by‑one error in the tty hvc_iucv subsystem. The number of supported devices could be set to 8, while the array that stores device pointers only has 8 entries, indexed 0–7. When the code uses the device count as an index, it can read or write past the end of the array. This out‑of‑bounds access can corrupt kernel memory, potentially granting an attacker arbitrary code execution or causing a system crash. The flaw is a classic buffer overrun scenario and, if exploitable, would allow local privilege escalation to root or, if reachable through a service that interacts with hvc_iucv devices, could be leveraged remotely.

Affected Systems

All Linux kernel implementations that contain the unpatched hvc_iucv driver configuration are affected. The issue exists in any release that compiled the hvc_iucv module without the patch. No specific version numbers are supplied, but the bug was addressed in the kernel commits referenced in the advisory and is present in the default kernels shipped with most distributions until the patch is applied.

Risk and Exploitability

The vulnerability has a CVSS score that is not provided, but its nature as an out‑of‑bounds kernel write indicates a high severity. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog. The likely attack vector is local kernel exploitation, requiring the attacker to execute code with kernel privileges or to transition from a user process that can interact with hvc_iucv devices. There is no publicly known exploit at this time, but the potential for arbitrary memory corruption makes it a high‑risk issue that should be mitigated as soon as possible.

Generated by OpenCVE AI on June 26, 2026 at 22:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest available release that includes the hvc_iucv off‑by‑one fix.
  • If an immediate kernel upgrade is not possible and hvc_iucv devices are not required, unload or disable the module and remove any configuration that enables them.
  • Although not officially documented, limiting the maximum number of hvc_iucv devices to 7 by adjusting the kernel configuration or applying a custom patch can mitigate the out‑of‑bounds access.

Generated by OpenCVE AI on June 26, 2026 at 22:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 26 Jun 2026 22:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-193
CWE-787

Fri, 26 Jun 2026 20:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tty: hvc_iucv: fix off-by-one in number of supported devices MAX_HVC_IUCV_LINES == HVC_ALLOC_TTY_ADAPTERS == 8. This is the number of entries in: static struct hvc_iucv_private *hvc_iucv_table[MAX_HVC_IUCV_LINES]; Sometimes hvc_iucv_table[] is limited by: (a) if (num > hvc_iucv_devices) // for error detection or (b) for (i = 0; i < hvc_iucv_devices; i++) // in 2 places (so these 2 don't agree; second one appears to be correct to me.) hvc_iucv_devices can be 0..8. This is a counter. (c) if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) If hvc_iucv_devices == 8, (a) allows the code to access hvc_iucv_table[8]. Oops.
Title tty: hvc_iucv: fix off-by-one in number of supported devices
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-06-26T19:41:01.338Z

Reserved: 2026-06-09T07:44:35.397Z

Link: CVE-2026-53306

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T22:15:06Z

Weaknesses