CVE-2026-138878: ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda/hdmi: clamp numcvts against cvtnids[] in hdmireadpinconn
hdmiaddcvt() stores each converter's NID into the fixed-size spec->cvtnids[] array (used only by the Intel Haswell pin-connection fixup), but only when spec->numcvts is still within ARRAYSIZE(cvtnids); the numcvts counter itself is incremented unconditionally regardless of whether the store happened. A codec that reports more converters than cvtnids[] can hold therefore ends up with numcvts > ARRAYSIZE(cvtnids).
hdmireadpinconn(), on the intelhswfixup path, copies numcvts elements from cvtnids[] with memcpy(), so once numcvts exceeds the array size this reads past cvtnids[] and writes the resulting garbage NIDs into perpin->muxnids[].
Clamp the copy length to the actual size of cvtnids[] instead of trusting numcvts, which is also used unbounded as the size of the separate, dynamically-sized spec->cvts array and must not be truncated at the source.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Compensating control
In Linux kernel ALSA hda/hdmi, clamp the memcpy copy length in hdmi_read_pin_conn() to the actual size of cvt_nids[] (ARRAY_SIZE(cvt_nids)).
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The affected code is in the Linux kernel ALSA HDA HDMI path. The out-of-bounds read occurs only when the Intel Haswell pin-connection fixup path is used and a codec reports more converters than the fixed cvt_nids[] array can hold.
What must occur for the vulnerable copy to be reached?
A codec must report enough converters for spec->num_cvts to exceed the capacity of cvt_nids[]. On the Intel Haswell fixup path, hdmi_read_pin_conn() then uses that oversized counter as the memcpy() length.
What happens if the condition is triggered?
The kernel reads beyond cvt_nids[] and copies garbage converter NIDs into per_pin->mux_nids[]. The provided data does not describe a remote attack vector, required privileges, or a workaround other than applying the resolved fix.