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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxacb05993881005cdaf5f8291491b4edcb8f60ef3 to before fd72f1b3b57d0591127e2e9a45018705fd4618ec Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before c027b3048ffccc1d3b92afc9f5b45f52e6d16c00 Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before 0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before 19fbb9e447e39bd877901425ab66cb5d43d2366d Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before 9abc067fc83711ac417359df3cf613cbe3b0ab77 Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before 4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3 Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before dcdfd7ae6ad12886fbdf8027304a8b38e0a32749 Affectedacb05993881005cdaf5f8291491b4edcb8f60ef3 to before b3e7ddd694f8429217ba509b55b910a0e4361dfb Affected
Linux Linux2.6.29 Affectedbefore 2.6.29 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.