Skip to content

Commit 50d764d

Browse files
committed
Merge branch 'main' into 2.0
2 parents 48c6461 + ddc5619 commit 50d764d

52 files changed

Lines changed: 2853 additions & 1580 deletions

Some content is hidden

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

SPECS-SIGNED/kernel-signed/kernel-signed.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
1212
Version: 5.15.173.1
13-
Release: 1%{?dist}
13+
Release: 2%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
1616
Distribution: Mariner
@@ -153,6 +153,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
153153
%exclude /module_info.ld
154154

155155
%changelog
156+
* Thu Jan 09 2025 Rachel Menge <rachelmenge@microsoft.com> - 5.15.173.1-2
157+
- Bump release to match kernel
158+
156159
* Fri Dec 06 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 5.15.173.1-1
157160
- Auto-upgrade to 5.15.173.1
158161

SPECS/cert-manager/CVE-2024-12401.patch

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

SPECS/cert-manager/cert-manager.spec

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Automatically provision and manage TLS certificates in Kubernetes
22
Name: cert-manager
33
Version: 1.11.2
4-
Release: 17%{?dist}
4+
Release: 18%{?dist}
55
License: ASL 2.0
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
@@ -30,6 +30,7 @@ Patch7: CVE-2024-28180.patch
3030
Patch8: CVE-2023-2253.patch
3131
Patch9: CVE-2024-45337.patch
3232
Patch10: CVE-2024-45338.patch
33+
Patch11: CVE-2024-12401.patch
3334
BuildRequires: golang
3435
Requires: %{name}-acmesolver
3536
Requires: %{name}-cainjector
@@ -122,6 +123,9 @@ install -D -m0755 bin/webhook %{buildroot}%{_bindir}/
122123
%{_bindir}/webhook
123124

124125
%changelog
126+
* Tue Jan 21 2025 Kevin Lockwood <v-klockwood@microsoft.com> - 1.11.2-18
127+
- Add patch for CVE-2024-12401.patch
128+
125129
* Fri Jan 03 2025 Sumedh Sharma <sumsharma@microsoft.com> - 1.11.2-17
126130
- Add patch for CVE-2024-45338
127131

@@ -134,7 +138,7 @@ install -D -m0755 bin/webhook %{buildroot}%{_bindir}/
134138
* Wed Aug 21 2024 Cameron Baird <cameronbaird@microsoft.com> - 1.11.2-14
135139
- Patch for CVE-2023-3978, CVE-2024-24786, CVE-2024-28180, CVE-2023-2253
136140

137-
* Mon Aug 19 2023 Bala <balakumaran.kannan@microsoft.com> - 1.11.2-13
141+
* Mon Aug 19 2024 Bala <balakumaran.kannan@microsoft.com> - 1.11.2-13
138142
- Patch for CVE-2024-6104
139143

140144
* Wed Aug 07 2024 Bhagyashri Pathak <bhapathak@microsoft.com> - 1.11.2-12
@@ -152,7 +156,7 @@ install -D -m0755 bin/webhook %{buildroot}%{_bindir}/
152156
* Fri Feb 02 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.11.2-8
153157
- Bump release to rebuild with go 1.21.6
154158

155-
* Fri Jan 18 2024 Tobias Brick <tobiasb@microsoft.com> - 1.11.2-7
159+
* Thu Jan 18 2024 Tobias Brick <tobiasb@microsoft.com> - 1.11.2-7
156160
- Patch for CVE-2023-48795
157161

158162
* Mon Oct 16 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.11.2-6

SPECS/cmake/CVE-2024-9681.patch

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
From 35badf22978cf2ead330d9cce3c2ddb825184b48 Mon Sep 17 00:00:00 2001
2+
From: jykanase <v-jykanase@microsoft.com>
3+
Date: Wed, 22 Jan 2025 10:42:04 +0000
4+
Subject: [PATCH] CVE-2024-9681.patch
5+
6+
Backported form: https://github.com/curl/curl/commit/a94973805df96269bf3f3bf0a20ccb9887313316
7+
---
8+
Utilities/cmcurl/lib/hsts.c | 14 ++++++++++----
9+
1 file changed, 10 insertions(+), 4 deletions(-)
10+
11+
diff --git a/Utilities/cmcurl/lib/hsts.c b/Utilities/cmcurl/lib/hsts.c
12+
index 97a07ec4..bd2b3ce7 100644
13+
--- a/Utilities/cmcurl/lib/hsts.c
14+
+++ b/Utilities/cmcurl/lib/hsts.c
15+
@@ -232,11 +232,13 @@ CURLcode Curl_hsts_parse(struct hsts *h, const char *hostname,
16+
struct stsentry *Curl_hsts(struct hsts *h, const char *hostname,
17+
bool subdomain)
18+
{
19+
+ struct stsentry *bestsub = NULL;
20+
if(h) {
21+
time_t now = time(NULL);
22+
size_t hlen = strlen(hostname);
23+
struct Curl_llist_element *e;
24+
struct Curl_llist_element *n;
25+
+ size_t blen = 0;
26+
for(e = h->list.head; e; e = n) {
27+
struct stsentry *sts = e->ptr;
28+
n = e->next;
29+
@@ -251,15 +253,19 @@ struct stsentry *Curl_hsts(struct hsts *h, const char *hostname,
30+
if(ntail < hlen) {
31+
size_t offs = hlen - ntail;
32+
if((hostname[offs-1] == '.') &&
33+
- Curl_strncasecompare(&hostname[offs], sts->host, ntail))
34+
- return sts;
35+
+ Curl_strncasecompare(&hostname[offs], sts->host, ntail) &&
36+
+ (ntail > blen)) {
37+
+ /* save the tail match with the longest tail */
38+
+ bestsub = sts;
39+
+ blen = ntail;
40+
+ }
41+
}
42+
}
43+
if(Curl_strcasecompare(hostname, sts->host))
44+
return sts;
45+
}
46+
}
47+
- return NULL; /* no match */
48+
+ return bestsub;
49+
}
50+
51+
/*
52+
@@ -412,7 +418,7 @@ static CURLcode hsts_add(struct hsts *h, char *line)
53+
e = Curl_hsts(h, p, subdomain);
54+
if(!e)
55+
result = hsts_create(h, p, subdomain, expires);
56+
- else {
57+
+ else if(strcasecompare(p, e->host)) {
58+
/* the same host name, use the largest expire time */
59+
if(expires > e->expires)
60+
e->expires = expires;
61+
--
62+
2.45.2
63+

SPECS/cmake/cmake.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Summary: Cmake
33
Name: cmake
44
Version: 3.21.4
5-
Release: 15%{?dist}
5+
Release: 16%{?dist}
66
License: BSD AND LGPLv2+
77
Vendor: Microsoft Corporation
88
Distribution: Mariner
@@ -33,6 +33,7 @@ Patch18: CVE-2024-2398.patch
3333
Patch19: CVE-2024-28182.patch
3434
Patch20: CVE-2024-7264.patch
3535
Patch21: CVE-2024-11053.patch
36+
Patch22: CVE-2024-9681.patch
3637
BuildRequires: bzip2
3738
BuildRequires: bzip2-devel
3839
BuildRequires: curl
@@ -98,6 +99,9 @@ bin/ctest --force-new-ctest-process --rerun-failed --output-on-failure
9899
%{_prefix}/doc/%{name}-*/*
99100

100101
%changelog
102+
* Thu Jan 23 2025 Jyoti Kanase <v-jykanase@microsoft.com> - 3.21.4-16
103+
- Fix CVE-2024-9681
104+
101105
* Tue Jan 14 2025 Henry Beberman <henry.beberman@microsoft.com> - 3.21.4-15
102106
- Patch vendored curl for CVE-2024-11053
103107

SPECS/fluent-bit/CVE-2024-26455.patch

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
diff --git a/lib/nghttp2/lib/includes/nghttp2/nghttp2.h b/lib/nghttp2/lib/includes/nghttp2/nghttp2.h
2+
index 66ea3c63c..5378daf43 100644
3+
--- a/lib/nghttp2/lib/includes/nghttp2/nghttp2.h
4+
+++ b/lib/nghttp2/lib/includes/nghttp2/nghttp2.h
5+
@@ -440,7 +440,12 @@ typedef enum {
6+
* exhaustion on server side to send these frames forever and does
7+
* not read network.
8+
*/
9+
- NGHTTP2_ERR_FLOODED = -904
10+
+ NGHTTP2_ERR_FLOODED = -904,
11+
+ /**
12+
+ * When a local endpoint receives too many CONTINUATION frames
13+
+ * following a HEADER frame.
14+
+ */
15+
+ NGHTTP2_ERR_TOO_MANY_CONTINUATIONS = -905,
16+
} nghttp2_error;
17+
18+
/**
19+
diff --git a/lib/nghttp2/lib/nghttp2_helper.c b/lib/nghttp2/lib/nghttp2_helper.c
20+
index 93dd4754b..b3563d98e 100644
21+
--- a/lib/nghttp2/lib/nghttp2_helper.c
22+
+++ b/lib/nghttp2/lib/nghttp2_helper.c
23+
@@ -336,6 +336,8 @@ const char *nghttp2_strerror(int error_code) {
24+
"closed";
25+
case NGHTTP2_ERR_TOO_MANY_SETTINGS:
26+
return "SETTINGS frame contained more than the maximum allowed entries";
27+
+ case NGHTTP2_ERR_TOO_MANY_CONTINUATIONS:
28+
+ return "Too many CONTINUATION frames following a HEADER frame";
29+
default:
30+
return "Unknown error code";
31+
}
32+
diff --git a/lib/nghttp2/lib/nghttp2_session.c b/lib/nghttp2/lib/nghttp2_session.c
33+
index c0d86026a..51ed4494e 100644
34+
--- a/lib/nghttp2/lib/nghttp2_session.c
35+
+++ b/lib/nghttp2/lib/nghttp2_session.c
36+
@@ -496,6 +496,7 @@ static int session_new(nghttp2_session **session_ptr,
37+
(*session_ptr)->max_send_header_block_length = NGHTTP2_MAX_HEADERSLEN;
38+
(*session_ptr)->max_outbound_ack = NGHTTP2_DEFAULT_MAX_OBQ_FLOOD_ITEM;
39+
(*session_ptr)->max_settings = NGHTTP2_DEFAULT_MAX_SETTINGS;
40+
+ (*session_ptr)->max_continuations = NGHTTP2_DEFAULT_MAX_CONTINUATIONS;
41+
42+
if (option) {
43+
if ((option->opt_set_mask & NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE) &&
44+
@@ -6778,6 +6779,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, const uint8_t *in,
45+
}
46+
}
47+
session_inbound_frame_reset(session);
48+
+
49+
+ session->num_continuations = 0;
50+
}
51+
break;
52+
}
53+
@@ -6899,6 +6902,10 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, const uint8_t *in,
54+
}
55+
#endif /* DEBUGBUILD */
56+
57+
+ if (++session->num_continuations > session->max_continuations) {
58+
+ return NGHTTP2_ERR_TOO_MANY_CONTINUATIONS;
59+
+ }
60+
+
61+
readlen = inbound_frame_buf_read(iframe, in, last);
62+
in += readlen;
63+
64+
diff --git a/lib/nghttp2/lib/nghttp2_session.h b/lib/nghttp2/lib/nghttp2_session.h
65+
index b119329a0..ef8f7b27d 100644
66+
--- a/lib/nghttp2/lib/nghttp2_session.h
67+
+++ b/lib/nghttp2/lib/nghttp2_session.h
68+
@@ -110,6 +110,10 @@ typedef struct {
69+
#define NGHTTP2_DEFAULT_STREAM_RESET_BURST 1000
70+
#define NGHTTP2_DEFAULT_STREAM_RESET_RATE 33
71+
72+
+/* The default max number of CONTINUATION frames following an incoming
73+
+ HEADER frame. */
74+
+#define NGHTTP2_DEFAULT_MAX_CONTINUATIONS 8
75+
+
76+
/* Internal state when receiving incoming frame */
77+
typedef enum {
78+
/* Receiving frame header */
79+
@@ -290,6 +294,12 @@ struct nghttp2_session {
80+
size_t max_send_header_block_length;
81+
/* The maximum number of settings accepted per SETTINGS frame. */
82+
size_t max_settings;
83+
+ /* The maximum number of CONTINUATION frames following an incoming
84+
+ HEADER frame. */
85+
+ size_t max_continuations;
86+
+ /* The number of CONTINUATION frames following an incoming HEADER
87+
+ frame. This variable is reset when END_HEADERS flag is seen. */
88+
+ size_t num_continuations;
89+
/* Next Stream ID. Made unsigned int to detect >= (1 << 31). */
90+
uint32_t next_stream_id;
91+
/* The last stream ID this session initiated. For client session,

0 commit comments

Comments
 (0)