CVE-2026-138877

Source
https://cve.org/CVERecord?id=CVE-2026-138877
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138877.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138877
Downstream
Published
2026-11-30T13:25:49Z
Modified
2026-11-30T15:01:13Z
Summary
ALSA: hda/hdmi: clamp sad_count in ELD proc write handler
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138877.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
acb05993881005cdaf5f8291491b4edcb8f60ef3
Fixed
fd72f1b3b57d0591127e2e9a45018705fd4618ec
Fixed
c027b3048ffccc1d3b92afc9f5b45f52e6d16c00
Fixed
0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd
Fixed
19fbb9e447e39bd877901425ab66cb5d43d2366d
Fixed
9abc067fc83711ac417359df3cf613cbe3b0ab77
Fixed
4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3
Fixed
dcdfd7ae6ad12886fbdf8027304a8b38e0a32749
Fixed
b3e7ddd694f8429217ba509b55b910a0e4361dfb

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138877.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.29
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.118
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138877.json"