CVE-2026-138877

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

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The bug occurs in the ALSA HDMI driver when user code writes a "sad_count N" line to the writable ELD proc file. The value N is stored directly into the sad_count field without any upper bound check, allowing a value larger than the fixed array size. The driver later iterates from 0 to sad_count and accesses elements of a statically allocated sab array of size ELD_MAX_SAD. If sad_count exceeds that size, the loop indexes past the end of the array, leading to an out‑of‑bounds read that can corrupt the kernel’s memory or trigger a crash. The result is a kernel panic or instability, effectively denying services that rely on the ALSA subsystem.

Affected Systems

This issue affects the Linux kernel’s ALSA HDA/HDMI component. All kernel versions that include the ALSA HDMI code without the committed patch are affected. No specific version constraints are listed in the advisory, so any kernel using the unpatched ALSA code is vulnerable.

Risk and Exploitability

The vulnerability requires access to the writable ELD proc interface, which is available only to root. Therefore an attacker must either have local root privileges or be able to execute code with root rights. No public exploit is documented and the EPSS score is not available, but the potential for a local root attacker to cause a kernel crash makes the risk high. The vulnerability is not listed in CISA’s KEV catalog, indicating no known widespread exploitation yet.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch for the ALSA HDMI sad_count clamping.
  • Restrict write access to the ELD proc interface by removing root write permissions or applying stricter SELinux/AppArmor rules.
  • If HDMI audio is not required, disable the ALSA HDMI subsystem or filter the ELD interface from untrusted users.

Generated by OpenCVE AI on November 30, 2026 at 17:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-129
Type Values Removed Values Added
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.
Title ALSA: hda/hdmi: clamp sad_count in ELD proc write handler
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-129

    Improper Validation of Array Index

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:25 PM