Skip to content

Commit 5d1d799

Browse files
committed
Merge branch 'main' into 2.0
2 parents 9519e1f + 2a4a0b2 commit 5d1d799

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2051
-170
lines changed

.github/workflows/go-test-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
permissions: read-all
1313

1414
env:
15-
EXPECTED_GO_VERSION: "1.21"
15+
EXPECTED_GO_VERSION: "1.23"
1616

1717
jobs:
1818
build:

SPECS-SIGNED/hvloader-signed/hvloader-signed.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Summary: Signed HvLoader.efi for %{buildarch} systems
77
Name: hvloader-signed-%{buildarch}
88
Version: 1.0.1
9-
Release: 10%{?dist}
9+
Release: 11%{?dist}
1010
License: MIT
1111
Vendor: Microsoft Corporation
1212
Distribution: Mariner
@@ -69,6 +69,9 @@ popd
6969
/boot/efi/HvLoader.efi
7070

7171
%changelog
72+
* Fri Apr 25 2025 Mayank Singh <[email protected]> - 1.0.1-11
73+
- Bump release for consistency with hvloader spec.
74+
7275
* Wed Mar 26 2025 Tobias Brick <[email protected]> - 1.0.1-10
7376
- Bump release for consistency with hvloader spec.
7477

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 4a1dbe133fb5d26ab4619d082c598527e47887c4 Mon Sep 17 00:00:00 2001
2+
From: Sreenivasulu Malavathula <[email protected]>
3+
Date: Tue, 22 Apr 2025 19:25:27 -0500
4+
Subject: [PATCH] Address CVE-2025-22872
5+
Upstream Patch Reference: https://github.com/golang/net/commit/e1fcd82abba34df74614020343be8eb1fe85f0d9
6+
7+
---
8+
vendor/golang.org/x/net/html/token.go | 18 ++++++++++++++++--
9+
1 file changed, 16 insertions(+), 2 deletions(-)
10+
11+
diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go
12+
index 5c2a1f4..7549c62 100644
13+
--- a/vendor/golang.org/x/net/html/token.go
14+
+++ b/vendor/golang.org/x/net/html/token.go
15+
@@ -839,8 +839,22 @@ func (z *Tokenizer) readStartTag() TokenType {
16+
if raw {
17+
z.rawTag = strings.ToLower(string(z.buf[z.data.start:z.data.end]))
18+
}
19+
- // Look for a self-closing token like "<br/>".
20+
- if z.err == nil && z.buf[z.raw.end-2] == '/' {
21+
+ // Look for a self-closing token (e.g. <br/>).
22+
+ //
23+
+ // Originally, we did this by just checking that the last character of the
24+
+ // tag (ignoring the closing bracket) was a solidus (/) character, but this
25+
+ // is not always accurate.
26+
+ //
27+
+ // We need to be careful that we don't misinterpret a non-self-closing tag
28+
+ // as self-closing, as can happen if the tag contains unquoted attribute
29+
+ // values (i.e. <p a=/>).
30+
+ //
31+
+ // To avoid this, we check that the last non-bracket character of the tag
32+
+ // (z.raw.end-2) isn't the same character as the last non-quote character of
33+
+ // the last attribute of the tag (z.pendingAttr[1].end-1), if the tag has
34+
+ // attributes.
35+
+ nAttrs := len(z.attr)
36+
+ if z.err == nil && z.buf[z.raw.end-2] == '/' && (nAttrs == 0 || z.raw.end-2 != z.attr[nAttrs-1][1].end-1) {
37+
return SelfClosingTagToken
38+
}
39+
return StartTagToken
40+
--
41+
2.45.2
42+

SPECS/cni-plugins/cni-plugins.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Container Network Interface (CNI) plugins
22
Name: cni-plugins
33
Version: 1.3.0
4-
Release: 7%{?dist}
4+
Release: 8%{?dist}
55
License: ASL 2.0
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -12,6 +12,7 @@ URL: https://github.com/containernetworking/plugins
1212
Source0: %{name}-%{version}.tar.gz
1313
Patch0: CVE-2023-3978.patch
1414
Patch1: CVE-2024-45338.patch
15+
Patch2: CVE-2025-22872.patch
1516
%define _default_cni_plugins_dir /opt/cni/bin
1617
BuildRequires: golang
1718
Provides: kubernetes-cni
@@ -41,6 +42,9 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
4142
%{_default_cni_plugins_dir}/*
4243

4344
%changelog
45+
* Tue Apr 22 2025 Sreeniavsulu Malavathula <[email protected]> - 1.3.0-8
46+
- Patch CVE-2025-22872
47+
4448
* Fri Jan 03 2025 Sumedh Sharma <[email protected]> - 1.3.0-7
4549
- Add patch for CVE-2024-45338.
4650

SPECS/crash/crash.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Signatures": {
33
"crash-8.0.1.tar.gz": "233208b1433a49e1d5a063fa88e6fc9772b99fbb7b30ae79a2115d1b8f0dfc52",
4-
"gdb-10.2.tar.gz": "b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350"
4+
"gdb-10.2-3.tar.gz": "0d322f3c3ee75b364eb4f90b394c9ecc17800d2a94d2913a5ea845acead26bd2"
55
}
66
}

SPECS/crash/crash.spec

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
%global gdb_version 10.2
12
Name: crash
23
Version: 8.0.1
3-
Release: 3%{?dist}
4+
Release: 4%{?dist}
45
Summary: kernel crash analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
56
Group: Development/Tools
67
Vendor: Microsoft Corporation
78
Distribution: Mariner
89
URL: https://github.com/crash-utility/crash
910
Source0: https://github.com/crash-utility/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
1011
# crash requires gdb tarball for the build. There is no option to use the host gdb. For crash 8.0.1 the newest supported gdb version is 10.2.
11-
Source1: https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
12+
# '-3' version of the tarball contains fix for CVE-2021-20197, CVE-2022-47673, CVE-2022-47696, CVE-2022-37434 which cannot be applied as a .patch because source1 is only untar'ed during crash make
13+
Source1: gdb-%{gdb_version}-3.tar.gz
1214
# lzo patch sourced from https://src.fedoraproject.org/rpms/crash/blob/rawhide/f/lzo_snappy_zstd.patch
1315
Patch0: lzo_snappy_zstd.patch
1416
License: GPLv3+
@@ -36,7 +38,8 @@ This package contains libraries and header files need for development.
3638

3739
%prep
3840
%autosetup -n %{name}-%{version}
39-
cp %{SOURCE1} .
41+
# make expect the gdb tarball to be named with its version only, gdb-[version].tar.gz, e.g.: gdb-10.2.tar.gz
42+
cp %{SOURCE1} ./gdb-%{gdb_version}.tar.gz
4043

4144
%build
4245
make RPMPKG=%{version}-%{release}
@@ -55,14 +58,17 @@ cp -p defs.h %{buildroot}%{_includedir}/crash
5558
%license COPYING3
5659
%{_bindir}/crash
5760
%{_mandir}/man8/crash.8.gz
58-
%doc COPYING3 README
61+
%doc README
5962

6063
%files devel
6164
%defattr(-,root,root)
6265
%dir %{_includedir}/crash
6366
%{_includedir}/crash/*.h
6467

6568
%changelog
69+
* Mon Apr 21 2025 Kanishk Bansal <[email protected]> - 8.0.1-4
70+
- Update gdb-10.2-3.tar.gz to address CVE-2021-20197, CVE-2022-47673, CVE-2022-47696, CVE-2022-37434
71+
6672
* Mon Oct 09 2023 Chris Co <[email protected]> - 8.0.1-3
6773
- Add patch from Fedora to enable lzo, snappy, zstd compression support
6874
- Remove unused crash printk fix patch

SPECS/fcgi/CVE-2012-6687.patch

Lines changed: 0 additions & 80 deletions
This file was deleted.

SPECS/fcgi/fcgi-EOF.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

SPECS/fcgi/fcgi.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"fcgi-2.4.0.tar.gz": "66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9"
3+
"fcgi-2.4.5.tar.gz": "92b0111a98d8636e06c128444a3d4d7a720bdd54e6ee4dd0c7b67775b1b0abff"
44
}
55
}

SPECS/fcgi/fcgi.spec

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
Summary: FastCGI development kit
22
Name: fcgi
3-
Version: 2.4.0
4-
Release: 7%{?dist}
3+
Version: 2.4.5
4+
Release: 1%{?dist}
55
License: OML
66
# NOTE: below is an archive of FastCGI. The original project web page (http://www.fastcgi.com) is no longer online.
77
URL: https://fastcgi-archives.github.io
8-
Source0: https://src.fedoraproject.org/lookaside/extras/%{name}/%{name}-%{version}.tar.gz/d15060a813b91383a9f3c66faf84867e/%{name}-%{version}.tar.gz
9-
Patch0: fcgi-EOF.patch
10-
Patch1: CVE-2012-6687.patch
8+
Source0: https://github.com/FastCGI-Archives/fcgi2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
119
Group: Development/Libraries/C and C++
1210
Vendor: Microsoft Corporation
1311
Distribution: Mariner
@@ -25,11 +23,10 @@ FastCGI is a language independent, scalable, open extension to CGI that
2523
provides high performance without the limitations of server specific APIs.
2624

2725
%prep
28-
%setup -q
29-
%patch0 -p1
30-
%patch1 -p1
26+
%autosetup -n %{name}2-%{version} -p1
3127

3228
%build
29+
./autogen.sh
3330
%configure \
3431
--disable-static
3532
make
@@ -48,28 +45,44 @@ make check
4845

4946
%files
5047
%defattr(-,root,root)
51-
%license LICENSE.TERMS
48+
%license LICENSE
5249
%{_bindir}/*
5350
%{_libdir}/libfcgi*.so*
51+
%doc %{_mandir}/man1/cgi-fcgi.1*
52+
%doc %{_mandir}/man3/FCGI_Accept.3*
53+
%doc %{_mandir}/man3/FCGI_Finish.3*
54+
%doc %{_mandir}/man3/FCGI_SetExitStatus.3*
55+
%doc %{_mandir}/man3/FCGI_StartFilterData.3*
5456

5557
%files devel
5658
%defattr(-,root,root)
5759
%{_includedir}/*
60+
%{_libdir}/pkgconfig/fcgi*.pc
5861

5962
%changelog
63+
* Tue Apr 22 2025 Kanishk Bansal <[email protected]> - 2.4.5-1
64+
- Upgrade to 2.4.5 to fix CVE-2025-23016
65+
- Remove patch of CVE-2012-6687, fcgi-EOF
66+
- Added missing man pages and pkgconfig files to package
67+
6068
* Sat May 09 2020 Nick Samson <[email protected]> - 2.4.0-7
6169
- Added %%license line automatically
6270

63-
* Mon Apr 27 2020 Pawel Winogrodzki <[email protected]> 2.4.0-6
64-
- Fixed 'Source0' and 'URL' tags.
65-
- License verified.
66-
* Thu Feb 27 2020 Henry Beberman <[email protected]> 2.4.0-5
67-
- Glob to include libfcgi++ as well as libfcgi in RPM
68-
* Tue Sep 03 2019 Mateusz Malisz <[email protected]> 2.4.0-4
69-
- Initial CBL-Mariner import from Photon (license: Apache2).
70-
* Fri Oct 13 2017 Alexey Makhalov <[email protected]> 2.4.0-3
71-
- Use standard configure macros
72-
* Wed May 24 2017 Dheeraj Shetty <[email protected]> 2.4.0-2
73-
- Patch for CVE-2012-6687
74-
* Fri Dec 16 2016 Dheeraj Shetty <[email protected]> 2.4.0-1
75-
- Initial build. First version
71+
* Mon Apr 27 2020 Pawel Winogrodzki <[email protected]> 2.4.0-6
72+
- Fixed 'Source0' and 'URL' tags.
73+
- License verified.
74+
75+
* Thu Feb 27 2020 Henry Beberman <[email protected]> 2.4.0-5
76+
- Glob to include libfcgi++ as well as libfcgi in RPM
77+
78+
* Tue Sep 03 2019 Mateusz Malisz <[email protected]> 2.4.0-4
79+
- Initial CBL-Mariner import from Photon (license: Apache2).
80+
81+
* Fri Oct 13 2017 Alexey Makhalov <[email protected]> 2.4.0-3
82+
- Use standard configure macros
83+
84+
* Wed May 24 2017 Dheeraj Shetty <[email protected]> 2.4.0-2
85+
- Patch for CVE-2012-6687
86+
87+
* Fri Dec 16 2016 Dheeraj Shetty <[email protected]> 2.4.0-1
88+
- Initial build. First version

0 commit comments

Comments
 (0)