Skip to content

Commit 120a9eb

Browse files
committed
Merge branch 'main' into sammeluch/2.0-merge-june25
2 parents 52667b2 + 42590a9 commit 120a9eb

File tree

120 files changed

+10529
-1496
lines changed

Some content is hidden

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

120 files changed

+10529
-1496
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
name: Check Package Update Gate
5+
6+
on:
7+
push:
8+
branches: [main, 2.0*, 3.0*, fasttrack/*]
9+
pull_request:
10+
branches: [main, 2.0*, 3.0*, fasttrack/*]
11+
12+
jobs:
13+
14+
build:
15+
name: Check Package Update Gate
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: Check out code
20+
uses: actions/checkout@v4
21+
22+
- name: Get base commit for PRs
23+
if: ${{ github.event_name == 'pull_request' }}
24+
run: |
25+
git fetch origin ${{ github.base_ref }}
26+
echo "base_sha=$(git rev-parse origin/${{ github.base_ref }})" >> $GITHUB_ENV
27+
echo "Merging ${{ github.sha }} into ${{ github.base_ref }}"
28+
29+
- name: Get base commit for Pushes
30+
if: ${{ github.event_name == 'push' }}
31+
run: |
32+
git fetch origin ${{ github.event.before }}
33+
echo "base_sha=${{ github.event.before }}" >> $GITHUB_ENV
34+
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"
35+
36+
- name: Get the changed files
37+
run: |
38+
echo "Files changed: '$(git diff-tree --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }})'"
39+
changed_specs=$(git diff-tree --diff-filter=d --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }} | { grep "SPECS.*/.*\.spec$" || test $? = 1; })
40+
echo "Files to validate: '${changed_specs}'"
41+
echo "updated-specs=$(echo ${changed_specs})" >> $GITHUB_ENV
42+
43+
- name: Check each spec
44+
run: |
45+
46+
if [[ -z "${{ env.updated-specs }}" ]]; then
47+
echo "No spec files to validate. Exiting."
48+
exit 0
49+
fi
50+
51+
for spec in ${{ env.updated-specs }}
52+
do
53+
echo "Checking '$spec'."
54+
# Expand macros if present
55+
name=$(rpmspec --parse "$spec" | grep -E "^Name:\s*(.*)" | awk '{print $2}')
56+
version=$(rpmspec --parse "$spec" | grep -E "^Version:\s*(.*)" | awk '{print $2}')
57+
58+
# Read from packagelist-gate.csv and iterate each row
59+
# 1st column: package name
60+
# 2nd column: condition (>=, =,'')
61+
# 3rd column: version number
62+
63+
while IFS=, read -r package_name condition version_number; do
64+
if [[ "$name" == "$package_name" ]]; then
65+
case "$condition" in
66+
">=" | "=" )
67+
if [[ ("$condition" == ">=" && "$(printf '%s\n' "$version" "$version_number" | sort -V | head -n1)" == "$version_number") ||
68+
("$condition" == "=" && "$version" == "$version_number") ]]; then
69+
1>&2 echo "**** ERROR ****"
70+
1>&2 echo "Spec '$spec' version '$version' is not allowed in Azure Linux. Error:'$spec $condition $version_number'."
71+
1>&2 echo "**** ERROR ****"
72+
error_found=1
73+
fi
74+
;;
75+
*)
76+
1>&2 echo "**** ERROR ****"
77+
1>&2 echo "Spec $spec is not allowed in Azure Linux"
78+
1>&2 echo "**** ERROR ****"
79+
error_found=1
80+
;;
81+
esac
82+
fi
83+
done < .github/workflows/packagelist-gate.csv
84+
done
85+
86+
if [[ -n $error_found ]]
87+
then
88+
exit 1
89+
fi
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fdk-aac-free,,
2+
opus,,
3+
opus-file,,
4+
packer,>=,1.10.0
5+
redis,>=,7.4
6+
terraform,>=,1.6.0

SPECS-SIGNED/grub2-efi-binary-signed/grub2-efi-binary-signed.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Summary: Signed GRand Unified Bootloader for %{buildarch} systems
1313
Name: grub2-efi-binary-signed-%{buildarch}
1414
Version: 2.06
15-
Release: 13%{?dist}
15+
Release: 14%{?dist}
1616
License: GPLv3+
1717
Vendor: Microsoft Corporation
1818
Distribution: Mariner
@@ -77,6 +77,9 @@ cp %{SOURCE3} %{buildroot}/boot/efi/EFI/BOOT/%{grubpxeefiname}
7777
/boot/efi/EFI/BOOT/%{grubpxeefiname}
7878

7979
%changelog
80+
* Mon Jun 02 2025 Jyoti Kanase <[email protected]> - 2.06-14
81+
- Bump release number to match grub release
82+
8083
* Thu Feb 15 2024 Dan Streetman <[email protected]> - 2.06-13
8184
- match grub2 version
8285

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%define uname_r %{version}-%{release}
1010
Summary: Signed Linux Kernel for Azure
1111
Name: kernel-azure-signed-%{buildarch}
12-
Version: 5.15.182.1
12+
Version: 5.15.184.1
1313
Release: 1%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
@@ -153,6 +153,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
153153
%exclude /module_info.ld
154154

155155
%changelog
156+
* Fri May 30 2025 CBL-Mariner Servicing Account <[email protected]> - 5.15.184.1-1
157+
- Auto-upgrade to 5.15.184.1
158+
156159
* Sat May 17 2025 CBL-Mariner Servicing Account <[email protected]> - 5.15.182.1-1
157160
- Auto-upgrade to 5.15.182.1
158161

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%define uname_r %{version}-%{release}
55
Summary: Signed Linux Kernel for HCI
66
Name: kernel-hci-signed-%{buildarch}
7-
Version: 5.15.182.1
7+
Version: 5.15.184.1
88
Release: 1%{?dist}
99
License: GPLv2
1010
Vendor: Microsoft Corporation
@@ -149,6 +149,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
149149
%exclude /module_info.ld
150150

151151
%changelog
152+
* Fri May 30 2025 CBL-Mariner Servicing Account <[email protected]> - 5.15.184.1-1
153+
- Auto-upgrade to 5.15.184.1
154+
152155
* Sat May 17 2025 CBL-Mariner Servicing Account <[email protected]> - 5.15.182.1-1
153156
- Auto-upgrade to 5.15.182.1
154157

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%define uname_r %{version}-%{release}
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
12-
Version: 5.15.182.1
12+
Version: 5.15.184.1
1313
Release: 1%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
@@ -153,6 +153,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
153153
%exclude /module_info.ld
154154

155155
%changelog
156+
* Fri May 30 2025 CBL-Mariner Servicing Account <[email protected]> - 5.15.184.1-1
157+
- Auto-upgrade to 5.15.184.1
158+
156159
* Sat May 17 2025 CBL-Mariner Servicing Account <[email protected]> - 5.15.182.1-1
157160
- Auto-upgrade to 5.15.182.1
158161

SPECS/binutils/CVE-2025-5244.patch

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 29477093469001a51d96b82a032ce17183c9ea7b Mon Sep 17 00:00:00 2001
2+
From: AkarshHCL <[email protected]>
3+
Date: Mon, 9 Jun 2025 17:30:02 +0000
4+
Subject: [PATCH] Address CVE-2025-5244
5+
6+
Upstream Patch reference: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1458933830456e54223d9fc61f0d9b3a19256f5
7+
8+
---
9+
bfd/elflink.c | 3 ++-
10+
1 file changed, 2 insertions(+), 1 deletion(-)
11+
12+
diff --git a/bfd/elflink.c b/bfd/elflink.c
13+
index d838cd9f..51790953 100644
14+
--- a/bfd/elflink.c
15+
+++ b/bfd/elflink.c
16+
@@ -13831,7 +13831,8 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info)
17+
if (o->flags & SEC_GROUP)
18+
{
19+
asection *first = elf_next_in_group (o);
20+
- o->gc_mark = first->gc_mark;
21+
+ if (first != NULL)
22+
+ o->gc_mark = first->gc_mark;
23+
}
24+
25+
if (o->gc_mark)
26+
--
27+
2.45.2
28+

SPECS/binutils/CVE-2025-5245.patch

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
From 1d28410b1def74897f1df8d95473409aa076813e Mon Sep 17 00:00:00 2001
2+
From: AkarshHCL <[email protected]>
3+
Date: Mon, 9 Jun 2025 14:37:38 +0000
4+
Subject: [PATCH] Address CVE-2025-5245
5+
6+
Upstream Patch reference: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6c3458a8b7ee7d39f070c7b2350851cb2110c65a
7+
8+
---
9+
binutils/debug.c | 9 +++------
10+
1 file changed, 3 insertions(+), 6 deletions(-)
11+
12+
diff --git a/binutils/debug.c b/binutils/debug.c
13+
index 93887374..404813fa 100644
14+
--- a/binutils/debug.c
15+
+++ b/binutils/debug.c
16+
@@ -2545,9 +2545,6 @@ debug_write_type (struct debug_handle *info,
17+
case DEBUG_KIND_UNION_CLASS:
18+
return debug_write_class_type (info, fns, fhandle, type, tag);
19+
case DEBUG_KIND_ENUM:
20+
- if (type->u.kenum == NULL)
21+
- return (*fns->enum_type) (fhandle, tag, (const char **) NULL,
22+
- (bfd_signed_vma *) NULL);
23+
return (*fns->enum_type) (fhandle, tag, type->u.kenum->names,
24+
type->u.kenum->values);
25+
case DEBUG_KIND_POINTER:
26+
@@ -3089,9 +3086,9 @@ debug_type_samep (struct debug_handle *info, struct debug_type_s *t1,
27+
break;
28+
29+
case DEBUG_KIND_ENUM:
30+
- if (t1->u.kenum == NULL)
31+
- ret = t2->u.kenum == NULL;
32+
- else if (t2->u.kenum == NULL)
33+
+ if (t1->u.kenum->names == NULL)
34+
+ ret = t2->u.kenum->names == NULL;
35+
+ else if (t2->u.kenum->names == NULL)
36+
ret = false;
37+
else
38+
{
39+
--
40+
2.45.2
41+

SPECS/binutils/binutils.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Summary: Contains a linker, an assembler, and other tools
2222
Name: binutils
2323
Version: 2.37
24-
Release: 14%{?dist}
24+
Release: 15%{?dist}
2525
License: GPLv2+
2626
Vendor: Microsoft Corporation
2727
Distribution: Mariner
@@ -51,6 +51,8 @@ Patch16: CVE-2025-1181.patch
5151
Patch17: CVE-2025-1182.patch
5252
Patch18: CVE-2025-1178.patch
5353
Patch19: CVE-2025-1744.patch
54+
Patch20: CVE-2025-5245.patch
55+
Patch21: CVE-2025-5244.patch
5456
Provides: bundled(libiberty)
5557

5658
# Moving macro before the "SourceX" tags breaks PR checks parsing the specs.
@@ -307,6 +309,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
307309
%do_files aarch64-linux-gnu %{build_aarch64}
308310

309311
%changelog
312+
* Mon Jun 9 2025 Akarsh Chaudhary <[email protected]>- 2.37-15
313+
- Patch CVE-2025-5245 ,CVE-2025-5244
314+
310315
* Tue Mar 11 2025 Kavya Sree Kaitepalli <[email protected]> - 2.37-14
311316
- Fix CVE-2025-1744
312317

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 0e7a1fa0b7d23464ad2102424d1c9af0f1b576d7 Mon Sep 17 00:00:00 2001
2+
From: Kevin Lockwood <[email protected]>
3+
Date: Wed, 21 May 2025 13:55:14 -0700
4+
Subject: [PATCH] Patch CVE-2025-22872
5+
6+
Upstream reference: https://github.com/golang/net/commit/e1fcd82abba34df74614020343be8eb1fe85f0d9.patch
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 50f7c6a..cf52f26 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.34.1
42+

0 commit comments

Comments
 (0)