Skip to content

Commit 3135a94

Browse files
azurelinux-securityKanishk Bansal
andauthored
[AutoPR- Security] Patch glibc for CVE-2025-0395 [LOW] (#15598)
Signed-off-by: Kanishk Bansal <kanbansal@microsoft.com> Co-authored-by: Kanishk Bansal <kanbansal@microsoft.com>
1 parent 37c6159 commit 3135a94

File tree

19 files changed

+182
-69
lines changed

19 files changed

+182
-69
lines changed

SPECS-EXTENDED/buildah/buildah.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Summary: A command line tool used for creating OCI Images
2222
Name: buildah
2323
Version: 1.18.0
24-
Release: 27%{?dist}
24+
Release: 28%{?dist}
2525
License: ASL 2.0
2626
Vendor: Microsoft Corporation
2727
Distribution: Mariner
@@ -32,7 +32,7 @@ BuildRequires: btrfs-progs-devel
3232
BuildRequires: device-mapper-devel
3333
BuildRequires: git
3434
BuildRequires: glib2-devel
35-
BuildRequires: glibc-static >= 2.35-8%{?dist}
35+
BuildRequires: glibc-static >= 2.35-9%{?dist}
3636
BuildRequires: go-md2man
3737
BuildRequires: go-rpm-macros
3838
BuildRequires: golang
@@ -123,6 +123,9 @@ cp imgtype %{buildroot}/%{_bindir}/%{name}-imgtype
123123
%{_datadir}/%{name}/test
124124

125125
%changelog
126+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.18.0-28
127+
- Bump to rebuild with updated glibc
128+
126129
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.18.0-27
127130
- Bump to rebuild with updated glibc
128131

SPECS-EXTENDED/catatonit/catatonit.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Distribution: Mariner
33

44
Name: catatonit
55
Version: 0.1.7
6-
Release: 11%{?dist}
6+
Release: 12%{?dist}
77
Summary: A signal-forwarding process manager for containers
88
License: GPLv3+
99
URL: https://github.com/openSUSE/catatonit
@@ -13,7 +13,7 @@ BuildRequires: automake
1313
BuildRequires: file
1414
BuildRequires: gcc
1515
BuildRequires: git
16-
BuildRequires: glibc-static >= 2.35-8%{?dist}
16+
BuildRequires: glibc-static >= 2.35-9%{?dist}
1717
BuildRequires: libtool
1818
BuildRequires: make
1919

@@ -61,6 +61,9 @@ ln -s %{_libexecdir}/%{name}/%{name} %{buildroot}%{_libexecdir}/podman/%{name}
6161
%{_libexecdir}/podman/%{name}
6262

6363
%changelog
64+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 0.1.7-12
65+
- Bump to rebuild with updated glibc
66+
6467
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 0.1.7-11
6568
- Bump to rebuild with updated glibc
6669

SPECS-EXTENDED/dyninst/dyninst.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: An API for Run-time Code Generation
22
License: LGPLv2+
33
Name: dyninst
4-
Release: 13%{?dist}
4+
Release: 14%{?dist}
55
Vendor: Microsoft Corporation
66
Distribution: Mariner
77
URL: http://www.dyninst.org
@@ -31,7 +31,7 @@ BuildRequires: tbb tbb-devel
3131

3232
# Extra requires just for the testsuite
3333
BuildRequires: gcc-gfortran libstdc++-static libxml2-devel
34-
BuildRequires: glibc-static >= 2.35-8%{?dist}
34+
BuildRequires: glibc-static >= 2.35-9%{?dist}
3535

3636
# Testsuite files should not provide/require anything
3737
%{?filter_setup:
@@ -194,6 +194,9 @@ echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
194194
%attr(644,root,root) %{_libdir}/dyninst/testsuite/*.a
195195

196196
%changelog
197+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 10.1.0-14
198+
- Bump to rebuild with updated glibc
199+
197200
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 10.1.0-13
198201
- Bump to rebuild with updated glibc
199202

SPECS-EXTENDED/podman/podman.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
Name: podman
3838
Version: 4.1.1
39-
Release: 24%{?dist}
39+
Release: 25%{?dist}
4040
License: ASL 2.0 and BSD and ISC and MIT and MPLv2.0
4141
Summary: Manage Pods, Containers and Container Images
4242
Vendor: Microsoft Corporation
@@ -51,7 +51,7 @@ BuildRequires: go-md2man
5151
BuildRequires: golang
5252
BuildRequires: gcc
5353
BuildRequires: glib2-devel
54-
BuildRequires: glibc-static >= 2.35-8%{?dist}
54+
BuildRequires: glibc-static >= 2.35-9%{?dist}
5555
BuildRequires: git
5656
BuildRequires: go-rpm-macros
5757
BuildRequires: gpgme-devel
@@ -387,6 +387,9 @@ cp -pav test/system %{buildroot}/%{_datadir}/%{name}/test/
387387

388388
# rhcontainerbot account currently managed by lsm5
389389
%changelog
390+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 4.1.1-25
391+
- Bump to rebuild with updated glibc
392+
390393
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 4.1.1-24
391394
- Bump to rebuild with updated glibc
392395

SPECS/busybox/busybox.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Statically linked binary providing simplified versions of system commands
22
Name: busybox
33
Version: 1.35.0
4-
Release: 15%{?dist}
4+
Release: 16%{?dist}
55
License: GPLv2
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -25,7 +25,7 @@ Patch11: CVE-2023-42366.patch
2525
Patch12: CVE-2022-48174.patch
2626
Patch13: CVE-2023-39810.patch
2727
BuildRequires: gcc
28-
BuildRequires: glibc-static >= 2.35-8%{?dist}
28+
BuildRequires: glibc-static >= 2.35-9%{?dist}
2929
BuildRequires: libselinux-devel >= 1.27.7-2
3030
BuildRequires: libsepol-devel
3131
# libbb/hash_md5_sha.c
@@ -103,6 +103,9 @@ install -m 644 docs/busybox.petitboot.1 %{buildroot}/%{_mandir}/man1/busybox.pet
103103
%{_mandir}/man1/busybox.petitboot.1.gz
104104

105105
%changelog
106+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.35.0-16
107+
- Bump to rebuild with updated glibc
108+
106109
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.35.0-15
107110
- Bump to rebuild with updated glibc
108111

SPECS/flannel/flannel.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: Simple and easy way to configure a layer 3 network fabric designed for Kubernetes
55
Name: flannel
66
Version: 0.14.0
7-
Release: 28%{?dist}
7+
Release: 29%{?dist}
88
License: ASL 2.0
99
Vendor: Microsoft Corporation
1010
Distribution: Mariner
@@ -17,7 +17,7 @@ Patch1: CVE-2025-65637.patch
1717

1818
BuildRequires: gcc
1919
BuildRequires: glibc-devel
20-
BuildRequires: glibc-static >= 2.35-8%{?dist}
20+
BuildRequires: glibc-static >= 2.35-9%{?dist}
2121
BuildRequires: golang
2222
BuildRequires: kernel-headers
2323

@@ -50,6 +50,9 @@ install -p -m 755 -t %{buildroot}%{_bindir} ./dist/flanneld
5050
%{_bindir}/flanneld
5151

5252
%changelog
53+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 0.14.0-29
54+
- Bump to rebuild with updated glibc
55+
5356
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 0.14.0-28
5457
- Bump to rebuild with updated glibc
5558

SPECS/glibc/CVE-2025-0395.patch

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
From 39831529db8f5b989f8e5c029118af68c32008fd Mon Sep 17 00:00:00 2001
2+
From: Florian Weimer <fweimer@redhat.com>
3+
Date: Wed, 22 Jan 2025 17:22:02 +0100
4+
Subject: [PATCH] Fix underallocation of abort_msg_s struct (CVE-2025-0395)
5+
6+
Include the space needed to store the length of the message itself, in
7+
addition to the message string. This resolves BZ #32582.
8+
9+
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
10+
Reviewed: Adhemerval Zanella <adhemerval.zanella@linaro.org>
11+
(cherry picked from commit 68ee0f704cb81e9ad0a78c644a83e1e9cd2ee578)
12+
13+
Conflict in sysdeps/posix/libc_fatal.c due to missing cleanup after
14+
backtrace removal.
15+
16+
Signed-off-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
17+
Upstream-reference: https://github.com/bminor/glibc/commit/8b5d4be762419c4f6176261c6fea40ac559b88dc.patch
18+
---
19+
assert/assert.c | 4 +++-
20+
sysdeps/posix/libc_fatal.c | 5 +++--
21+
2 files changed, 6 insertions(+), 3 deletions(-)
22+
23+
diff --git a/assert/assert.c b/assert/assert.c
24+
index 133a183b..9e55eeb4 100644
25+
--- a/assert/assert.c
26+
+++ b/assert/assert.c
27+
@@ -18,6 +18,7 @@
28+
#include <assert.h>
29+
#include <atomic.h>
30+
#include <ldsodefs.h>
31+
+#include <libc-pointer-arith.h>
32+
#include <libintl.h>
33+
#include <stdio.h>
34+
#include <stdlib.h>
35+
@@ -64,7 +65,8 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file,
36+
(void) __fxprintf (NULL, "%s", str);
37+
(void) fflush (stderr);
38+
39+
- total = (total + 1 + GLRO(dl_pagesize) - 1) & ~(GLRO(dl_pagesize) - 1);
40+
+ total = ALIGN_UP (total + sizeof (struct abort_msg_s) + 1,
41+
+ GLRO(dl_pagesize));
42+
struct abort_msg_s *buf = __mmap (NULL, total, PROT_READ | PROT_WRITE,
43+
MAP_ANON | MAP_PRIVATE, -1, 0);
44+
if (__glibc_likely (buf != MAP_FAILED))
45+
diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c
46+
index 2ee0010b..dfa07805 100644
47+
--- a/sysdeps/posix/libc_fatal.c
48+
+++ b/sysdeps/posix/libc_fatal.c
49+
@@ -20,6 +20,7 @@
50+
#include <errno.h>
51+
#include <fcntl.h>
52+
#include <ldsodefs.h>
53+
+#include <libc-pointer-arith.h>
54+
#include <paths.h>
55+
#include <stdarg.h>
56+
#include <stdbool.h>
57+
@@ -125,8 +126,8 @@ __libc_message (enum __libc_message_action action, const char *fmt, ...)
58+
59+
if ((action & do_abort))
60+
{
61+
- total = ((total + 1 + GLRO(dl_pagesize) - 1)
62+
- & ~(GLRO(dl_pagesize) - 1));
63+
+ total = ALIGN_UP (total + sizeof (struct abort_msg_s) + 1,
64+
+ GLRO(dl_pagesize));
65+
struct abort_msg_s *buf = __mmap (NULL, total,
66+
PROT_READ | PROT_WRITE,
67+
MAP_ANON | MAP_PRIVATE, -1, 0);
68+
--
69+
2.45.4
70+

SPECS/glibc/glibc.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Summary: Main C library
88
Name: glibc
99
Version: 2.35
10-
Release: 8%{?dist}
10+
Release: 9%{?dist}
1111
License: BSD AND GPLv2+ AND Inner-Net AND ISC AND LGPLv2+ AND MIT
1212
Vendor: Microsoft Corporation
1313
Distribution: Mariner
@@ -37,6 +37,7 @@ Patch11: CVE-2024-33600.patch
3737
Patch12: CVE-2024-33601.patch
3838
Patch13: CVE-2026-0861.patch
3939
Patch14: CVE-2026-0915.patch
40+
Patch15: CVE-2025-0395.patch
4041
BuildRequires: bison
4142
BuildRequires: gawk
4243
BuildRequires: gettext
@@ -329,6 +330,9 @@ grep "^FAIL: nptl/tst-eintr1" tests.sum >/dev/null && n=$((n+1)) ||:
329330
%defattr(-,root,root)
330331

331332
%changelog
333+
* Wed Jan 28 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 2.35-9
334+
- Patch for CVE-2025-0395
335+
332336
* Wed Jan 21 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 2.35-8
333337
- Patch for CVE-2026-0915, CVE-2026-0861
334338

SPECS/kubernetes/kubernetes.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Summary: Microsoft Kubernetes
1111
Name: kubernetes
1212
Version: 1.28.4
13-
Release: 22%{?dist}
13+
Release: 23%{?dist}
1414
License: ASL 2.0
1515
Vendor: Microsoft Corporation
1616
Distribution: Mariner
@@ -36,7 +36,7 @@ Patch14: CVE-2025-31133.patch
3636
Patch15: CVE-2025-13281.patch
3737
Patch16: CVE-2025-65637.patch
3838
BuildRequires: flex-devel
39-
BuildRequires: glibc-static >= 2.35-8%{?dist}
39+
BuildRequires: glibc-static >= 2.35-9%{?dist}
4040
BuildRequires: golang
4141
BuildRequires: rsync
4242
BuildRequires: systemd-devel
@@ -280,6 +280,9 @@ fi
280280
%{_exec_prefix}/local/bin/pause
281281

282282
%changelog
283+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.28.4-23
284+
- Bump to rebuild with updated glibc
285+
283286
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 1.28.4-22
284287
- Bump to rebuild with updated glibc
285288

SPECS/kubevirt/kubevirt.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Summary: Container native virtualization
2020
Name: kubevirt
2121
Version: 0.59.0
22-
Release: 34%{?dist}
22+
Release: 35%{?dist}
2323
License: ASL 2.0
2424
Vendor: Microsoft Corporation
2525
Distribution: Mariner
@@ -55,7 +55,7 @@ Patch22: CVE-2025-64437.patch
5555

5656
%global debug_package %{nil}
5757
BuildRequires: glibc-devel
58-
BuildRequires: glibc-static >= 2.35-8%{?dist}
58+
BuildRequires: glibc-static >= 2.35-9%{?dist}
5959
BuildRequires: golang
6060
BuildRequires: golang-packaging
6161
BuildRequires: pkgconfig
@@ -232,6 +232,9 @@ install -p -m 0644 cmd/virt-handler/nsswitch.conf %{buildroot}%{_datadir}/kube-v
232232
%{_bindir}/virt-tests
233233

234234
%changelog
235+
* Wed Jan 28 2026 Kanishk Bansal <kanbansal@microsoft.com> - 0.59.0-35
236+
- Bump to rebuild with updated glibc
237+
235238
* Mon Jan 19 2026 Kanishk Bansal <kanbansal@microsoft.com> - 0.59.0-34
236239
- Bump to rebuild with updated glibc
237240

0 commit comments

Comments
 (0)