Improper Validation of Array Index Affecting alsa-lib package, versions <1.2.15.3-1ubuntu1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2604-ALSALIB-16237608
  • published24 Apr 2026
  • disclosed29 Jan 2026

Introduced: 29 Jan 2026

CVE-2026-25068  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade Ubuntu:26.04 alsa-lib to version 1.2.15.3-1ubuntu1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream alsa-lib package and not the alsa-lib package as distributed by Ubuntu. See How to fix? for Ubuntu:26.04 relevant fixed versions and status.

alsa-lib versions 1.2.2 up to and including 1.2.15.2, prior to commit 5f7fe33, contain a heap-based buffer overflow in the topology mixer control decoder. The tplg_decode_control_mixer1() function reads the num_channels field from untrusted .tplg data and uses it as a loop bound without validating it against the fixed-size channel array (SND_TPLG_MAX_CHAN). A crafted topology file with an excessive num_channels value can cause out-of-bounds heap writes, leading to a crash.

CVSS Base Scores

version 3.1