ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn

Summary

CVECVE-2026-138878
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:44 UTC
Updated2026-11-30 14:17:44 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 0b2a74faca57f3eee030d6bbe73de9b5307550e2 git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 3dade2925a2c827bc882fa786d6f18028d290503 git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 38438672a7568a889a326d8251af834653bc2aae git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 d08e4c84102e314cfdc902749bb8c94a20fc583a git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 c149718773b4291ca8968487a0cb7a3926a79432 git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 d37861288c5de3c3041ef1890e22a0fab70d0b8f git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 d68390d9859cc5dc91eb26a1570ce3a86a5d88c0 git Not specified
CNA Linux Linux affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 6cf3ab38b0d53d41f00fe594b2986849bdf994ae git Not specified
CNA Linux Linux affected 3.10 Not specified
CNA Linux Linux unaffected 3.10 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.118 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report