# CVE-2026-138877: ALSA: hda/hdmi: clamp sad_count in ELD proc write handler

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:49.342Z
- Modified: 2026-11-30T14:17:44.770Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ALSA: hda/hdmi: clamp sad_count in ELD proc write handler

snd_hdmi_write_eld_info() parses a "sad_count N" line from the
root-writable ELD proc interface and assigns N directly to
e->sad_count with no upper bound, unlike the per-index "sadN_*" lines
a few lines below which are already bounded to ELD_MAX_SAD.

snd_hdmi_eld_update_pcm_info() later iterates
"for (i = 0; i < e->sad_count; i++)" over the fixed
e->sad[ELD_MAX_SAD] array, so an oversized sad_count read from the
proc file causes it to walk past the array.

Reject sad_count values above ELD_MAX_SAD, matching the existing
per-index guard.

(As written by CVE List.)

## Affected

- Linux Linux: from acb05993881005cdaf5f8291491b4edcb8f60ef3 before fd72f1b3b57d0591127e2e9a45018705fd4618ec; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before c027b3048ffccc1d3b92afc9f5b45f52e6d16c00; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before 0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before 19fbb9e447e39bd877901425ab66cb5d43d2366d; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before 9abc067fc83711ac417359df3cf613cbe3b0ab77; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before 4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before dcdfd7ae6ad12886fbdf8027304a8b38e0a32749; from acb05993881005cdaf5f8291491b4edcb8f60ef3 before b3e7ddd694f8429217ba509b55b910a0e4361dfb; 2.6.29 (not affected: before 2.6.29; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/fd72f1b3b57d0591127e2e9a45018705fd4618ec>
- <https://git.kernel.org/stable/c/c027b3048ffccc1d3b92afc9f5b45f52e6d16c00>
- <https://git.kernel.org/stable/c/0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd>
- <https://git.kernel.org/stable/c/19fbb9e447e39bd877901425ab66cb5d43d2366d>
- <https://git.kernel.org/stable/c/9abc067fc83711ac417359df3cf613cbe3b0ab77>
- <https://git.kernel.org/stable/c/4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3>
- <https://git.kernel.org/stable/c/dcdfd7ae6ad12886fbdf8027304a8b38e0a32749>
- <https://git.kernel.org/stable/c/b3e7ddd694f8429217ba509b55b910a0e4361dfb>

## Sources

- CVE List: [CVE-2026-138877](https://www.cve.org/CVERecord?id=CVE-2026-138877), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138877](https://nvd.nist.gov/vuln/detail/CVE-2026-138877), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138877 · Whole record: https://cve.day/CVE-2026-138877.json · Rebuilt by cve.day 2026-11-30T14:32:43.803Z
