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

CVE-2026-53306
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 44a01d5ba8a4d543694461cd3e178cfa6b3f221b < 3d3b89e6ab93bdd0efd45828bda6b0e61cc46dff ; affected 44a01d5ba8a4d543694461cd3e178cfa6b3f221b < 484357dff256c816d9466bda35eb765685e4dc86 ; affected 44a01d5ba8a4d543694461cd3e178cfa6b3f221b < 11207e42a332eb8bbcb9fe74df9edd2a807c5607 ; affected 44a01d5ba8a4d543694461cd3e178cfa6b3f221b < fed8b8f33a46db0ee2efdb000f4f630c86ed8ca4 ; affected 44a01d5ba8a4d543694461cd3e178cfa6b3f221b < a76511bc654819425d3b15e77b523d7f9d81f064 ; affected 44a01d5ba8a4d543694461cd3e178cfa6b3f221b < 3104a3f40feb107f77d7116ad9bf6c210ab7babf
Linux · Linuxaffected 2.6.29 ; unaffected 0 < 2.6.29 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.141 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD