CVE-2026-138878
publishedALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 0b2a74faca57f3eee030d6bbe73de9b5307550e2 · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 3dade2925a2c827bc882fa786d6f18028d290503 · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 38438672a7568a889a326d8251af834653bc2aae · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < d08e4c84102e314cfdc902749bb8c94a20fc583a · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < c149718773b4291ca8968487a0cb7a3926a79432 · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < d37861288c5de3c3041ef1890e22a0fab70d0b8f · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < d68390d9859cc5dc91eb26a1570ce3a86a5d88c0 · bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 6cf3ab38b0d53d41f00fe594b2986849bdf994ae · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.10 (affected) · 0 to < 3.10 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 0b2a74faca57f3eee030d6bbe73de9b5307550e2 (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 3dade2925a2c827bc882fa786d6f18028d290503 (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 38438672a7568a889a326d8251af834653bc2aae (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < d08e4c84102e314cfdc902749bb8c94a20fc583a (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < c149718773b4291ca8968487a0cb7a3926a79432 (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < d37861288c5de3c3041ef1890e22a0fab70d0b8f (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < d68390d9859cc5dc91eb26a1570ce3a86a5d88c0 (affected · git)bce0d2a80e428aac3b39bf19675f1f57126f9cb6 to < 6cf3ab38b0d53d41f00fe594b2986849bdf994ae (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.10 (affected)0 to < 3.10 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2
- https://git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae
- https://git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503
- https://git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae
- https://git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432
- https://git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a
- https://git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f
- https://git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0
Provider assertions
1Linux · cna
ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 292412d22104902784e17f9c687a26a3b8035ad10626cb33e582d0e9f64b1051
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record