Skip to content

Commit 10541d6

Browse files
CBL-Mariner-BotnicogbgNicolas GuibourgePawelWMSliunan-ms
authored
[AUTO-CHERRYPICK] Patch to go related modules to address CVE-2021-44716 - branch main (#7839)
Co-authored-by: nicolas guibourge <nicogbg@gmail.com> Co-authored-by: Nicolas Guibourge <nicolasg@microsoft.com> Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com> Co-authored-by: Nan Liu <liunan@microsoft.com> Co-authored-by: Nan Liu <108544011+liunan-ms@users.noreply.github.com> Co-authored-by: Daniel McIlvaney <damcilva@microsoft.com>
1 parent 20f96bc commit 10541d6

6 files changed

Lines changed: 12 additions & 22 deletions

File tree

SPECS/application-gateway-kubernetes-ingress/application-gateway-kubernetes-ingress.spec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ Source0: %{name}-%{version}.tar.gz
2525
#
2626
Source1: %{name}-%{version}-vendor.tar.gz
2727

28-
# patches for vendored code >= 1000
2928
# If upstream ever upgrades client_goland to 1.11.1, we can get rid of this patch.
30-
Patch1000: CVE-2022-21698.patch
31-
Patch1001: CVE-2023-44487.patch
32-
Patch1002: CVE-2021-44716.patch
29+
Patch0: CVE-2022-21698.patch
30+
Patch1: CVE-2023-44487.patch
31+
Patch2: CVE-2021-44716.patch
3332

3433
BuildRequires: golang >= 1.13
3534
%if %{with_check}

SPECS/cf-cli/cf-cli.spec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ Source0: https://github.com/cloudfoundry/cli/archive/refs/tags/v%{version
2727
# See: https://reproducible-builds.org/docs/archives/
2828
# - For the value of "--mtime" use the date "2021-04-26 00:00Z" to simplify future updates.
2929
Source1: cli-%{version}-vendor.tar.gz
30-
31-
# patches for vendored code >= 1000
32-
Patch1000: CVE-2023-44487.patch
33-
Patch1001: CVE-2021-44716.patch
30+
Patch0: CVE-2023-44487.patch
31+
Patch1: CVE-2021-44716.patch
3432

3533
BuildRequires: golang >= 1.18.3
3634
%global debug_package %{nil}

SPECS/csi-driver-lvm/csi-driver-lvm.spec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Source0: https://github.com/metal-stack/%{name}/archive/refs/tags/v%{vers
2020
# -cf %%{name}-%%{version}-govendor.tar.gz vendor
2121
Source1: %{name}-%{version}-govendor.tar.gz
2222

23-
# patches for vendored code >= 1000
24-
Patch1000: CVE-2021-44716.patch
23+
Patch0: CVE-2021-44716.patch
2524

2625
BuildRequires: golang
2726
Requires: %{name}-csi-lvmplugin-provisioner

SPECS/git-lfs/git-lfs.spec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ Source0: https://github.com/git-lfs/git-lfs/archive/v%{version}.tar.gz#/%{
2828
# See: https://reproducible-builds.org/docs/archives/
2929
# - For the value of "--mtime" use the date "2021-04-26 00:00Z" to simplify future updates.
3030
Source1: %{name}-%{version}-vendor.tar.gz
31-
32-
# patches for vendored code >= 1000
33-
Patch1000: CVE-2023-44487.patch
34-
Patch1001: CVE-2021-44716.patch
31+
Patch0: CVE-2023-44487.patch
32+
Patch1: CVE-2021-44716.patch
3533

3634
BuildRequires: golang
3735
BuildRequires: which

SPECS/jx/jx.spec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ Source0: https://github.com/jenkins-x/jx/archive/v%{version}.tar.gz#/%{na
2727
# See: https://reproducible-builds.org/docs/archives/
2828
# - For the value of "--mtime" use the date "2021-04-26 00:00Z" to simplify future updates.
2929
Source1: %{name}-%{version}-vendor.tar.gz
30-
31-
# patches for vendored code >= 1000
32-
Patch1000: CVE-2023-44487.patch
33-
Patch1001: CVE-2021-44716.patch
30+
Patch0: CVE-2023-44487.patch
31+
Patch1: CVE-2021-44716.patch
3432

3533
BuildRequires: golang >= 1.17.1
3634
%global debug_package %{nil}

SPECS/keda/keda.spec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ Source1: %{name}-%{version}-vendor-v2.tar.gz
2929
# Patches the version of client_golang used in the vendored source. Should be applied before creating the vendored tarball.
3030
# Can be removed if we upgrade keda to 2.6.0 or later.
3131
Patch0: CVE-2022-21698.patch
32-
33-
# patches for vendored code >= 1000
34-
Patch1000: CVE-2023-44487.patch
35-
Patch1001: CVE-2021-44716.patch
32+
Patch1: CVE-2023-44487.patch
33+
Patch2: CVE-2021-44716.patch
3634

3735
BuildRequires: golang >= 1.15
3836

0 commit comments

Comments
 (0)