Skip to content

Commit 332adb9

Browse files
authored
glibc: Fix nscd breakage and patch CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602 (#9051)
This commit does 3 things: address ipv6 breakage with nscd due to previous CVE fix, reformat previous CVE patches, and patch 4 new CVEs The ipv6 w/ nscd breakage was due to CVE-2023-4806's patch and caused wrong results with IPv6 addresses when using nscd. The patch mixes up the variables i and count. Therefore backport the fix (227c903). Additionally, the above fix highlighted that our original patches for CVE-2023-4806 and CVE-2023-5156 were malformed. Specifically, the CVE-2023-4806 patch which updates "/sysdeps/posix/getaddrinfo.c.” to latest from glibc-2.35 (commit 17092c0) did not include the changes to other files (mostly additional tests so impact was low) but did partially include CVE-2023-5156's changes. To fix, regenerate both patches based on commits from upstream stable 2.35. Finally, this PR applies patches for CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602
1 parent ee40780 commit 332adb9

24 files changed

Lines changed: 1780 additions & 234 deletions

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: 22%{?dist}
24+
Release: 23%{?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-6%{?dist}
35+
BuildRequires: glibc-static >= 2.35-7%{?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+
* Mon May 06 2024 Rachel Menge <rachelmenge@microsoft.com> - 1.18.0-23
127+
- Bump release to rebuild against glibc 2.35-7
128+
126129
* Fri Feb 02 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.18.0-22
127130
- Bump release to rebuild with go 1.21.6
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: 9%{?dist}
6+
Release: 10%{?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-6%{?dist}
16+
BuildRequires: glibc-static >= 2.35-7%{?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+
* Mon May 06 2024 Rachel Menge <rachelmenge@microsoft.com> - 0.1.7-10
65+
- Bump release to rebuild against glibc 2.35-7
66+
6467
* Wed Oct 04 2023 Minghe Ren <mingheren@microsoft.com> - 0.1.7-9
6568
- Bump release to rebuild against glibc 2.35-6
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: 11%{?dist}
4+
Release: 12%{?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-6%{?dist}
34+
BuildRequires: glibc-static >= 2.35-7%{?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+
* Mon May 06 2024 Rachel Menge <rachelmenge@microsoft.com> - 10.1.0-12
198+
- Bump release to rebuild against glibc 2.35-7
199+
197200
* Wed Oct 04 2023 Minghe Ren <mingheren@microsoft.com> - 10.1.0-11
198201
- Bump release to rebuild against glibc 2.35-6
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: 19%{?dist}
39+
Release: 20%{?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-6%{?dist}
54+
BuildRequires: glibc-static >= 2.35-7%{?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+
* Mon May 06 2024 Rachel Menge <rachelmenge@microsoft.com> - 4.1.1-20
391+
- Bump release to rebuild against glibc 2.35-7
392+
390393
* Fri Feb 02 2024 Muhammad Falak <mwani@microsoft.com> - 4.1.1-19
391394
- Bump release to rebuild with go 1.21.6
392395
- Bump version of gvproxy to enable build with go1.21

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: 9%{?dist}
4+
Release: 10%{?dist}
55
License: GPLv2
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -18,7 +18,7 @@ Patch5: ash-fix-use-after-free-in-bash-pattern-substitution.patch
1818
Patch6: selinux-copy-file.patch
1919
Patch7: selinux-cp-a.patch
2020
BuildRequires: gcc
21-
BuildRequires: glibc-static >= 2.35-6%{?dist}
21+
BuildRequires: glibc-static >= 2.35-7%{?dist}
2222
BuildRequires: libselinux-devel >= 1.27.7-2
2323
BuildRequires: libsepol-devel
2424
# libbb/hash_md5_sha.c
@@ -96,6 +96,9 @@ install -m 644 docs/busybox.petitboot.1 %{buildroot}/%{_mandir}/man1/busybox.pet
9696
%{_mandir}/man1/busybox.petitboot.1.gz
9797

9898
%changelog
99+
* Mon May 06 2024 Rachel Menge <rachelmenge@microsoft.com> - 1.35.0-10
100+
- Bump release to rebuild against glibc 2.35-7
101+
99102
* Thu Nov 16 2023 Chris PeBenito <chpebeni@microsoft.com> - 1.35.0-9
100103
- Enable SELinux features.
101104
- Improve SELinux behavior for copy funtions.

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: 21%{?dist}
7+
Release: 22%{?dist}
88
License: ASL 2.0
99
Vendor: Microsoft Corporation
1010
Distribution: Mariner
@@ -16,7 +16,7 @@ Patch0: CVE-2021-44716.patch
1616

1717
BuildRequires: gcc
1818
BuildRequires: glibc-devel
19-
BuildRequires: glibc-static >= 2.35-6%{?dist}
19+
BuildRequires: glibc-static >= 2.35-7%{?dist}
2020
BuildRequires: golang >= 1.18.5
2121
BuildRequires: kernel-headers
2222

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

5151
%changelog
52+
* Mon May 06 2024 Rachel Menge <rachelmenge@microsoft.com> - 0.10.0-22
53+
- Bump release to rebuild against glibc 2.35-7
54+
5255
* Mon Feb 05 2024 Osama Esmail <osamaesmail@microsoft.com> - 0.14.0-21
5356
- Patching CVE-2021-44716
5457

0 commit comments

Comments
 (0)