Skip to content

Commit c749e02

Browse files
[AUTO-CHERRYPICK] Upgrade expat to 2.6.2 CVE-2023-52425 and CVE-2024-28757 - branch main (#8563)
Co-authored-by: Adub17030MS <110563293+Adub17030MS@users.noreply.github.com>
1 parent d838a1d commit c749e02

8 files changed

Lines changed: 25 additions & 447 deletions

File tree

SPECS/expat/CVE-2023-52426.patch

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

SPECS/expat/expat.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"expat-2.5.0.tar.bz2": "6f0e6e01f7b30025fa05c85fdad1e5d0ec7fd35d9f61b22f34998de11969ff67"
3+
"expat-2.6.2.tar.bz2": "9c7c1b5dcbc3c237c500a8fb1493e14d9582146dd9b42aa8d3ffb856a3b927e0"
44
}
55
}

SPECS/expat/expat.spec

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
%define underscore_version %(echo %{version} | cut -d. -f1-3 --output-delimiter="_")
22
Summary: An XML parser library
33
Name: expat
4-
Version: 2.5.0
5-
Release: 2%{?dist}
4+
Version: 2.6.2
5+
Release: 1%{?dist}
66
License: MIT
77
Vendor: Microsoft Corporation
88
Distribution: Mariner
99
Group: System Environment/GeneralLibraries
1010
URL: https://libexpat.github.io/
1111
Source0: https://github.com/libexpat/libexpat/releases/download/R_%{underscore_version}/%{name}-%{version}.tar.bz2
1212

13-
Patch0: CVE-2023-52426.patch
14-
1513
Requires: %{name}-libs = %{version}-%{release}
1614

1715
%description
@@ -32,7 +30,7 @@ Group: System Environment/Libraries
3230
This package contains minimal set of shared expat libraries.
3331

3432
%prep
35-
%autosetup -p1
33+
%autosetup
3634

3735
%build
3836
%configure \
@@ -55,6 +53,7 @@ rm -rf %{buildroot}/%{_docdir}/%{name}
5553
%files
5654
%defattr(-,root,root)
5755
%doc AUTHORS Changes
56+
%{_mandir}/man1/xmlwf.1.gz
5857
%{_bindir}/*
5958

6059
%files devel
@@ -68,6 +67,10 @@ rm -rf %{buildroot}/%{_docdir}/%{name}
6867
%{_libdir}/libexpat.so.1*
6968

7069
%changelog
70+
* Thu Mar 21 2024 Aditya Dubey <adityadubey@microsoft.com> - 2.6.2-1
71+
- Upgrading to 2.6.2 to fix CVE-2023-52425 and CVE-2023-28757
72+
- No longer need Patch CVE-2023-52426 since 2.6.2 fixes it
73+
7174
* Thu Mar 07 2024 Saul Paredes <saulparedes@microsoft.com> - 2.5.0-2
7275
- Patch CVE-2023-52426
7376

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3398,8 +3398,8 @@
33983398
"type": "other",
33993399
"other": {
34003400
"name": "expat",
3401-
"version": "2.5.0",
3402-
"downloadUrl": "https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2"
3401+
"version": "2.6.2",
3402+
"downloadUrl": "https://github.com/libexpat/libexpat/releases/download/R_2_6_2/expat-2.6.2.tar.bz2"
34033403
}
34043404
}
34053405
},

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ elfutils-libelf-0.186-2.cm2.aarch64.rpm
9595
elfutils-libelf-devel-0.186-2.cm2.aarch64.rpm
9696
elfutils-libelf-devel-static-0.186-2.cm2.aarch64.rpm
9797
elfutils-libelf-lang-0.186-2.cm2.aarch64.rpm
98-
expat-2.5.0-2.cm2.aarch64.rpm
99-
expat-devel-2.5.0-2.cm2.aarch64.rpm
100-
expat-libs-2.5.0-2.cm2.aarch64.rpm
98+
expat-2.6.2-1.cm2.aarch64.rpm
99+
expat-devel-2.6.2-1.cm2.aarch64.rpm
100+
expat-libs-2.6.2-1.cm2.aarch64.rpm
101101
libpipeline-1.5.5-3.cm2.aarch64.rpm
102102
libpipeline-devel-1.5.5-3.cm2.aarch64.rpm
103103
gdbm-1.21-1.cm2.aarch64.rpm

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ elfutils-libelf-0.186-2.cm2.x86_64.rpm
9595
elfutils-libelf-devel-0.186-2.cm2.x86_64.rpm
9696
elfutils-libelf-devel-static-0.186-2.cm2.x86_64.rpm
9797
elfutils-libelf-lang-0.186-2.cm2.x86_64.rpm
98-
expat-2.5.0-2.cm2.x86_64.rpm
99-
expat-devel-2.5.0-2.cm2.x86_64.rpm
100-
expat-libs-2.5.0-2.cm2.x86_64.rpm
98+
expat-2.6.2-1.cm2.x86_64.rpm
99+
expat-devel-2.6.2-1.cm2.x86_64.rpm
100+
expat-libs-2.6.2-1.cm2.x86_64.rpm
101101
libpipeline-1.5.5-3.cm2.x86_64.rpm
102102
libpipeline-devel-1.5.5-3.cm2.x86_64.rpm
103103
gdbm-1.21-1.cm2.x86_64.rpm

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ elfutils-libelf-0.186-2.cm2.aarch64.rpm
7373
elfutils-libelf-devel-0.186-2.cm2.aarch64.rpm
7474
elfutils-libelf-devel-static-0.186-2.cm2.aarch64.rpm
7575
elfutils-libelf-lang-0.186-2.cm2.aarch64.rpm
76-
expat-2.5.0-2.cm2.aarch64.rpm
77-
expat-debuginfo-2.5.0-2.cm2.aarch64.rpm
78-
expat-devel-2.5.0-2.cm2.aarch64.rpm
79-
expat-libs-2.5.0-2.cm2.aarch64.rpm
76+
expat-2.6.2-1.cm2.aarch64.rpm
77+
expat-debuginfo-2.6.2-1.cm2.aarch64.rpm
78+
expat-devel-2.6.2-1.cm2.aarch64.rpm
79+
expat-libs-2.6.2-1.cm2.aarch64.rpm
8080
file-5.40-2.cm2.aarch64.rpm
8181
file-debuginfo-5.40-2.cm2.aarch64.rpm
8282
file-devel-5.40-2.cm2.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ elfutils-libelf-0.186-2.cm2.x86_64.rpm
7676
elfutils-libelf-devel-0.186-2.cm2.x86_64.rpm
7777
elfutils-libelf-devel-static-0.186-2.cm2.x86_64.rpm
7878
elfutils-libelf-lang-0.186-2.cm2.x86_64.rpm
79-
expat-2.5.0-2.cm2.x86_64.rpm
80-
expat-debuginfo-2.5.0-2.cm2.x86_64.rpm
81-
expat-devel-2.5.0-2.cm2.x86_64.rpm
82-
expat-libs-2.5.0-2.cm2.x86_64.rpm
79+
expat-2.6.2-1.cm2.x86_64.rpm
80+
expat-debuginfo-2.6.2-1.cm2.x86_64.rpm
81+
expat-devel-2.6.2-1.cm2.x86_64.rpm
82+
expat-libs-2.6.2-1.cm2.x86_64.rpm
8383
file-5.40-2.cm2.x86_64.rpm
8484
file-debuginfo-5.40-2.cm2.x86_64.rpm
8585
file-devel-5.40-2.cm2.x86_64.rpm

0 commit comments

Comments
 (0)