{"id":"CVE-2026-138878","aliases":["CVE-2026-138878"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn\n\nhdmi_add_cvt() stores each converter's NID into the fixed-size\nspec->cvt_nids[] array (used only by the Intel Haswell pin-connection\nfixup), but only when spec->num_cvts is still within\nARRAY_SIZE(cvt_nids); the num_cvts counter itself is incremented\nunconditionally regardless of whether the store happened. A codec\nthat reports more converters than cvt_nids[] can hold therefore ends\nup with num_cvts > ARRAY_SIZE(cvt_nids).\n\nhdmi_read_pin_conn(), on the intel_hsw_fixup path, copies num_cvts\nelements from cvt_nids[] with memcpy(), so once num_cvts exceeds the\narray size this reads past cvt_nids[] and writes the resulting\ngarbage NIDs into per_pin->mux_nids[].\n\nClamp the copy length to the actual size of cvt_nids[] instead of\ntrusting num_cvts, which is also used unbounded as the size of the\nseparate, dynamically-sized spec->cvts array and must not be\ntruncated at the source.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn\n\nhdmi_add_cvt() stores each converter's NID into the fixed-size\nspec->cvt_nids[] array (used only by the Intel Haswell pin-connection\nfixup), but only when spec->num_cvts is still within\nARRAY_SIZE(cvt_nids); the num_cvts counter itself is incremented\nunconditionally regardless of whether the store happened. A codec\nthat reports more converters than cvt_nids[] can hold therefore ends\nup with num_cvts > ARRAY_SIZE(cvt_nids).\n\nhdmi_read_pin_conn(), on the intel_hsw_fixup path, copies num_cvts\nelements from cvt_nids[] with memcpy(), so once num_cvts exceeds the\narray size this reads past cvt_nids[] and writes the resulting\ngarbage NIDs into per_pin->mux_nids[].\n\nClamp the copy length to the actual size of cvt_nids[] instead of\ntrusting num_cvts, which is also used unbounded as the size of the\nseparate, dynamically-sized spec->cvts array and must not be\ntruncated at the source.","source":"cvelist"}],"published":"2026-11-30T13:25:49.876Z","modified":"2026-11-30T14:17:44.907Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"0b2a74faca57f3eee030d6bbe73de9b5307550e2","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"3dade2925a2c827bc882fa786d6f18028d290503","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"38438672a7568a889a326d8251af834653bc2aae","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"d08e4c84102e314cfdc902749bb8c94a20fc583a","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"c149718773b4291ca8968487a0cb7a3926a79432","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"d37861288c5de3c3041ef1890e22a0fab70d0b8f","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"d68390d9859cc5dc91eb26a1570ce3a86a5d88c0","status":"affected"},{"type":"git","introduced":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","fixed":"6cf3ab38b0d53d41f00fe594b2986849bdf994ae","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138878","url":"https://www.cve.org/CVERecord?id=CVE-2026-138878","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:49.876Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138878","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138878","licence":"Public domain","modified":"2026-11-30T14:17:44.907Z"}],"updatedAt":"2026-11-30T14:32:43.657Z","epss":{"score":0.0022,"percentile":0.13413,"date":"2026-12-01T12:00:22.000Z"}}