{"id":"CVE-2026-138877","aliases":["CVE-2026-138877"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: hda/hdmi: clamp sad_count in ELD proc write handler","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/hdmi: clamp sad_count in ELD proc write handler\n\nsnd_hdmi_write_eld_info() parses a \"sad_count N\" line from the\nroot-writable ELD proc interface and assigns N directly to\ne->sad_count with no upper bound, unlike the per-index \"sadN_*\" lines\na few lines below which are already bounded to ELD_MAX_SAD.\n\nsnd_hdmi_eld_update_pcm_info() later iterates\n\"for (i = 0; i < e->sad_count; i++)\" over the fixed\ne->sad[ELD_MAX_SAD] array, so an oversized sad_count read from the\nproc file causes it to walk past the array.\n\nReject sad_count values above ELD_MAX_SAD, matching the existing\nper-index guard.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/hdmi: clamp sad_count in ELD proc write handler\n\nsnd_hdmi_write_eld_info() parses a \"sad_count N\" line from the\nroot-writable ELD proc interface and assigns N directly to\ne->sad_count with no upper bound, unlike the per-index \"sadN_*\" lines\na few lines below which are already bounded to ELD_MAX_SAD.\n\nsnd_hdmi_eld_update_pcm_info() later iterates\n\"for (i = 0; i < e->sad_count; i++)\" over the fixed\ne->sad[ELD_MAX_SAD] array, so an oversized sad_count read from the\nproc file causes it to walk past the array.\n\nReject sad_count values above ELD_MAX_SAD, matching the existing\nper-index guard.","source":"cvelist"}],"published":"2026-11-30T13:25:49.342Z","modified":"2026-11-30T14:17:44.770Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"fd72f1b3b57d0591127e2e9a45018705fd4618ec","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"c027b3048ffccc1d3b92afc9f5b45f52e6d16c00","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"19fbb9e447e39bd877901425ab66cb5d43d2366d","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"9abc067fc83711ac417359df3cf613cbe3b0ab77","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"dcdfd7ae6ad12886fbdf8027304a8b38e0a32749","status":"affected"},{"type":"git","introduced":"acb05993881005cdaf5f8291491b4edcb8f60ef3","fixed":"b3e7ddd694f8429217ba509b55b910a0e4361dfb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","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/fd72f1b3b57d0591127e2e9a45018705fd4618ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c027b3048ffccc1d3b92afc9f5b45f52e6d16c00","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19fbb9e447e39bd877901425ab66cb5d43d2366d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9abc067fc83711ac417359df3cf613cbe3b0ab77","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dcdfd7ae6ad12886fbdf8027304a8b38e0a32749","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3e7ddd694f8429217ba509b55b910a0e4361dfb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138877","url":"https://www.cve.org/CVERecord?id=CVE-2026-138877","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:49.342Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138877","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138877","licence":"Public domain","modified":"2026-11-30T14:17:44.770Z"}],"updatedAt":"2026-11-30T14:32:43.803Z","epss":{"score":0.0022,"percentile":0.13412,"date":"2026-12-01T12:00:22.000Z"}}