Skip to content

Commit d0e2fb1

Browse files
[CHERRYPICK FROM FASTTRACK/2.0] fix cve-2022-21698 in nmi (#7681) (#7785)
Co-authored-by: jslobodzian <joslobo@microsoft.com>
1 parent 5b876f7 commit d0e2fb1

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

SPECS/nmi/nmi.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Signatures": {
3-
"nmi-1.8.7-vendor.tar.gz": "988259ffbfbf44452e951c0728de4f23db297face908a2c6c8429ac4be21fbad",
4-
"nmi-1.8.7.tar.gz": "37a249105e1e3c6fca6ab6abc64a1af568bc1cf020a0e49bcba2fb485c11346f"
3+
"nmi-1.8.11-vendor-v2.tar.gz": "d8bb79dd73d69ef52a3b0022e27c79b756dd3e31686df409ecd762abe3aebf7b",
4+
"nmi-1.8.11.tar.gz": "0eb3810ff088d9c9252466da4e6df8da9d43d9588e7b9d445c30c0497d3197fa"
55
}
66
}

SPECS/nmi/nmi.spec

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
%global debug_package %{nil}
22
Summary: Node Managed Identity
33
Name: nmi
4-
Version: 1.8.7
5-
Release: 15%{?dist}
4+
Version: 1.8.11
5+
Release: 1%{?dist}
66
License: MIT
77
Vendor: Microsoft Corporation
88
Distribution: Mariner
@@ -12,7 +12,7 @@ URL: https://github.com/Azure/aad-pod-identity
1212
Source0: %{name}-%{version}.tar.gz
1313
# Below is a manually created tarball, no download link.
1414
# We're using pre-populated Go modules from this tarball, since network is disabled during build time.
15-
# How to re-build this file:
15+
# How to re-build this file (note the version number will be -v2, etc):
1616
# 1. wget https://github.com/Azure/aad-pod-identity/archive/refs/tags/v%%{version}.tar.gz -O aad-pod-identity-%%{version}.tar.gz
1717
# 2. tar -xf aad-pod-identity-%%{version}.tar.gz
1818
# 3. cd aad-pod-identity-%%{version}
@@ -23,7 +23,7 @@ Source0: %{name}-%{version}.tar.gz
2323
# --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
2424
# -cf %%{name}-%%{version}-vendor.tar.gz vendor
2525
#
26-
Source1: %{name}-%{version}-vendor.tar.gz
26+
Source1: %{name}-%{version}-vendor-v2.tar.gz
2727
Patch0: modify-go-build-option.patch
2828
BuildRequires: golang >= 1.15
2929

@@ -34,14 +34,12 @@ NMI is the resource that is used when your pods look to use their identity.
3434
%autosetup -c -N -n %{name}-%{version}
3535
pushd aad-pod-identity-%{version}
3636
%patch0 -p1
37+
# create vendor folder from the vendor tarball and set vendor mode
38+
tar -xf %{SOURCE1} --no-same-owner
3739
popd
3840

3941
%build
4042
pushd aad-pod-identity-%{version}
41-
42-
# create vendor folder from the vendor tarball and set vendor mode
43-
tar -xf %{SOURCE1} --no-same-owner
44-
4543
make build-nmi
4644
popd
4745

@@ -63,6 +61,9 @@ popd
6361
%{_bindir}/%{name}
6462

6563
%changelog
64+
* Fri Feb 06 2024 Tobias Brick <tobiasb@microsoft.com> - 1.8.11-1
65+
- Upgrade to version 1.8.11 to CVE-2022-21698
66+
6667
* Mon Oct 16 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.8.7-15
6768
- Bump release to rebuild with go 1.20.9
6869

@@ -111,4 +112,4 @@ popd
111112
- License Verified
112113

113114
* Thu Jun 24 2021 Henry Li <lihl@microsoft.com> - 1.7.0-1
114-
- Original version for CBL-Mariner
115+
- Original version for CBL-Mariner

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14353,8 +14353,8 @@
1435314353
"type": "other",
1435414354
"other": {
1435514355
"name": "nmi",
14356-
"version": "1.8.7",
14357-
"downloadUrl": "https://github.com/Azure/aad-pod-identity/archive/refs/tags/v1.8.7.tar.gz"
14356+
"version": "1.8.11",
14357+
"downloadUrl": "https://github.com/Azure/aad-pod-identity/archive/refs/tags/v1.8.11.tar.gz"
1435814358
}
1435914359
}
1436014360
},

0 commit comments

Comments
 (0)