Skip to content

Commit 9ebde45

Browse files
azurelinux-securityKanishk-Bansalv-aaditya
authored
[AutoPR- Security] Patch alsa-lib for CVE-2026-25068 [MEDIUM] (#15758)
Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: Aditya Singh <v-aditysing@microsoft.com>
1 parent 361b915 commit 9ebde45

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From a5eb94d680ffae07cf1ea0068883f9276d3bce1a Mon Sep 17 00:00:00 2001
2+
From: Jaroslav Kysela <perex@perex.cz>
3+
Date: Thu, 29 Jan 2026 16:51:09 +0100
4+
Subject: [PATCH] topology: decoder - add boundary check for channel mixer
5+
count
6+
7+
Malicious binary topology file may cause heap corruption.
8+
9+
CVE: CVE-2026-25068
10+
11+
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
12+
Signed-off-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
13+
Upstream-reference: https://github.com/alsa-project/alsa-lib/commit/5f7fe33002d2d98d84f72e381ec2cccc0d5d3d40.patch
14+
---
15+
src/topology/ctl.c | 5 +++++
16+
1 file changed, 5 insertions(+)
17+
18+
diff --git a/src/topology/ctl.c b/src/topology/ctl.c
19+
index dd05424..311dd05 100644
20+
--- a/src/topology/ctl.c
21+
+++ b/src/topology/ctl.c
22+
@@ -1246,6 +1246,11 @@ int tplg_decode_control_mixer1(snd_tplg_t *tplg,
23+
if (mc->num_channels > 0) {
24+
map = tplg_calloc(heap, sizeof(*map));
25+
map->num_channels = mc->num_channels;
26+
+ if (map->num_channels > SND_TPLG_MAX_CHAN ||
27+
+ map->num_channels > SND_SOC_TPLG_MAX_CHAN) {
28+
+ SNDERR("mixer: unexpected channel count %d", map->num_channels);
29+
+ return -EINVAL;
30+
+ }
31+
for (i = 0; i < map->num_channels; i++) {
32+
map->channel[i].reg = mc->channel[i].reg;
33+
map->channel[i].shift = mc->channel[i].shift;
34+
--
35+
2.45.4
36+

SPECS/alsa-lib/alsa-lib.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Summary: ALSA library
22
Name: alsa-lib
33
Version: 1.2.6.1
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
License: LGPLv2+
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
88
Group: Applications/Internet
99
URL: https://alsa-project.org
1010
Source0: https://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2
11+
Patch0: CVE-2026-25068.patch
1112
BuildRequires: python3-devel
1213
BuildRequires: python3-libs
1314
Requires: python3
@@ -24,7 +25,7 @@ Requires: %{name} = %{version}
2425
It contains the libraries and header files to create applications
2526

2627
%prep
27-
%setup -q
28+
%autosetup -p1
2829

2930
%build
3031
%configure
@@ -46,6 +47,9 @@ make DESTDIR=%{buildroot} install
4647
%{_includedir}/*
4748

4849
%changelog
50+
* Mon Feb 09 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 1.2.6.1-3
51+
- Patch for CVE-2026-25068
52+
4953
* Wed Sep 20 2023 Jon Slobodzian <joslobo@microsoft.com> - 1.2.6.1-2
5054
- Recompile with stack-protection fixed gcc version (CVE-2023-4039)
5155

0 commit comments

Comments
 (0)