# CVE-2026-138878: ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:49.876Z
- Modified: 2026-11-30T14:17:44.907Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before 0b2a74faca57f3eee030d6bbe73de9b5307550e2; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before 3dade2925a2c827bc882fa786d6f18028d290503; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before 38438672a7568a889a326d8251af834653bc2aae; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before d08e4c84102e314cfdc902749bb8c94a20fc583a; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before c149718773b4291ca8968487a0cb7a3926a79432; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before d37861288c5de3c3041ef1890e22a0fab70d0b8f; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before d68390d9859cc5dc91eb26a1570ce3a86a5d88c0; from bce0d2a80e428aac3b39bf19675f1f57126f9cb6 before 6cf3ab38b0d53d41f00fe594b2986849bdf994ae; 3.10 (not affected: before 3.10; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-138878](https://www.cve.org/CVERecord?id=CVE-2026-138878), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138878](https://nvd.nist.gov/vuln/detail/CVE-2026-138878), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138878 · Whole record: https://cve.day/CVE-2026-138878.json · Rebuilt by cve.day 2026-11-30T14:32:43.657Z
