{"api_version":"1","generated_at":"2026-11-30T18:30:36+00:00","cve":"CVE-2026-138878","urls":{"html":"https://cve.report/CVE-2026-138878","api":"https://cve.report/api/cve/CVE-2026-138878.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138878","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138878"},"summary":{"title":"ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:44","updated_at":"2026-11-30 14:17:44"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae","name":"https://git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503","name":"https://git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f","name":"https://git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432","name":"https://git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0","name":"https://git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a","name":"https://git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2","name":"https://git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae","name":"https://git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138878","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138878","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 0b2a74faca57f3eee030d6bbe73de9b5307550e2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 3dade2925a2c827bc882fa786d6f18028d290503 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 38438672a7568a889a326d8251af834653bc2aae git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 d08e4c84102e314cfdc902749bb8c94a20fc583a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 c149718773b4291ca8968487a0cb7a3926a79432 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 d37861288c5de3c3041ef1890e22a0fab70d0b8f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 d68390d9859cc5dc91eb26a1570ce3a86a5d88c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bce0d2a80e428aac3b39bf19675f1f57126f9cb6 6cf3ab38b0d53d41f00fe594b2986849bdf994ae git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["sound/hda/codecs/hdmi/hdmi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"0b2a74faca57f3eee030d6bbe73de9b5307550e2","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"3dade2925a2c827bc882fa786d6f18028d290503","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"38438672a7568a889a326d8251af834653bc2aae","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"d08e4c84102e314cfdc902749bb8c94a20fc583a","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"c149718773b4291ca8968487a0cb7a3926a79432","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"d37861288c5de3c3041ef1890e22a0fab70d0b8f","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"d68390d9859cc5dc91eb26a1570ce3a86a5d88c0","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"},{"lessThan":"6cf3ab38b0d53d41f00fe594b2986849bdf994ae","status":"affected","version":"bce0d2a80e428aac3b39bf19675f1f57126f9cb6","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["sound/hda/codecs/hdmi/hdmi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.10"},{"lessThan":"3.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"3.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:49.876Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/0b2a74faca57f3eee030d6bbe73de9b5307550e2"},{"url":"https://git.kernel.org/stable/c/3dade2925a2c827bc882fa786d6f18028d290503"},{"url":"https://git.kernel.org/stable/c/38438672a7568a889a326d8251af834653bc2aae"},{"url":"https://git.kernel.org/stable/c/d08e4c84102e314cfdc902749bb8c94a20fc583a"},{"url":"https://git.kernel.org/stable/c/c149718773b4291ca8968487a0cb7a3926a79432"},{"url":"https://git.kernel.org/stable/c/d37861288c5de3c3041ef1890e22a0fab70d0b8f"},{"url":"https://git.kernel.org/stable/c/d68390d9859cc5dc91eb26a1570ce3a86a5d88c0"},{"url":"https://git.kernel.org/stable/c/6cf3ab38b0d53d41f00fe594b2986849bdf994ae"}],"title":"ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_pin_conn","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138878","datePublished":"2026-11-30T13:25:49.876Z","dateReserved":"2026-11-30T13:22:15.900Z","dateUpdated":"2026-11-30T13:25:49.876Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:44","lastModifiedDate":"2026-11-30 14:17:44","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138878","Ordinal":"1","Title":"ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_p","CVE":"CVE-2026-138878","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138878","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ALSA: hda/hdmi: clamp num_cvts against cvt_nids[] in hdmi_read_p"}]}}}