Bug 2493725 (CVE-2026-53306) - CVE-2026-53306 kernel: tty: hvc_iucv: fix off-by-one in number of supported devices
Summary: CVE-2026-53306 kernel: tty: hvc_iucv: fix off-by-one in number of supported d...
Keywords:
Status: NEW
Alias: CVE-2026-53306
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-26 21:03 UTC by OSIDB Bzimport
Modified: 2026-06-29 09:50 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-26 21:03:21 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-06-29 09:49:17 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062619-CVE-2026-53306-02d7@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.