ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn hdmi_add_cvt() stores each converter's NID into the fixed-size spec->cvt_nids[] array (used only by the Intel Haswell pin-connection fixup), but only when spec->num_cvts is still within ARRAY_SIZE(cvt_nids); the num_cvts counter itself is incremented unconditionally regardless of whether the store happened. A codec that reports more converters than cvt_nids[] can hold therefore ends up with num_cvts > ARRAY_SIZE(cvt_nids). hdmi_read_pin_conn(), on the intel_hsw_fixup path, copies num_cvts elements from cvt_nids[] with memcpy(), so once num_cvts exceeds the array size this reads past cvt_nids[] and writes the resulting garbage NIDs into per_pin->mux_nids[]. Clamp the copy length to the actual size of cvt_nids[] instead of trusting num_cvts, which is also used unbounded as the size of the separate, dynamically-sized spec->cvts array and must not be truncated at the source.
References
- https://git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2
- https://git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503
- https://git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae
- https://git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a
- https://git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432
- https://git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f
- https://git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0
- https://git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae
European references
- ENISA EUVD · EUVD-2026-138581
- GCVE · GCVE-0-2026-138878
CERT-FR advisories
- CERTFR-2026-AVI-1679 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < 0b2a74faca57f3eee030d6bbe73de9b5307550e2 affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < 3dade2925a2c827bc882fa786d6f18028d290503 affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < 38438672a7568a889a326d8251af834653bc2aae affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < d08e4c84102e314cfdc902749bb8c94a20fc583a affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < c149718773b4291ca8968487a0cb7a3926a79432 affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < d37861288c5de3c3041ef1890e22a0fab70d0b8f affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < d68390d9859cc5dc91eb26a1570ce3a86a5d88c0 affected : ≥ bce0d2a80e428aac3b39bf19675f1f57126f9cb6 < 6cf3ab38b0d53d41f00fe594b2986849bdf994ae Other versions : unaffected |
| Linux · Linux | affected : 3.10 unaffected : ≥ 0 < 3.10 unaffected : ≥ 5.10.275 ≤ 5.10.* unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.118 ≤ 6.12.* unaffected : ≥ 6.18.63 ≤ 6.18.* unaffected : ≥ 7.3.4 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |