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

Published Nov 30, 2026
·
Updated

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

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

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

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

Reject sadcount values above ELDMAXSAD, matching the existing per-index guard.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the ALSA HDA/HDMI ELD proc write handler, reject sad_count values above ELD_MAX_SAD before iterating over e->sad.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Who can trigger the out-of-bounds access?

An attacker needs root-level write access to the ELD proc interface. The vulnerable handler is described as root-writable, so unprivileged users are not shown to be able to trigger it directly.

2

What input causes the issue?

Writing a "sad_count N" value greater than ELD_MAX_SAD causes the handler to store an oversized count. A later PCM-information update then iterates beyond the fixed e->sad[ELD_MAX_SAD] array.

3

How can exposure be reduced before applying the fix?

Prevent untrusted parties from obtaining root-level access or writing to the ELD proc interface. The issue depends on supplying an oversized sad_count through that interface.

4

How does the fix prevent exploitation?

The resolved change rejects sad_count values above ELD_MAX_SAD. This makes the count consistent with the existing bounds checks for per-index sadN entries and prevents iteration past the fixed SAD array.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203