Skip to content

Commit e2c8d9e

Browse files
[FASTTRACK-CHERRYPICK] openssl: Fix CVE-2023-50782 affecting python-cryptography - branch main (#9318)
Co-authored-by: J Camposeco <108859819+jcamposeco@users.noreply.github.com> Co-authored-by: Juan Camposeco <juanarturoc@microsoft.com>
1 parent 3a89a88 commit e2c8d9e

6 files changed

Lines changed: 1171 additions & 25 deletions

File tree

SPECS/openssl/openssl-1.1.1-pkcs1-implicit-rejection.patch

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

SPECS/openssl/openssl.spec

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: Utilities from the general purpose cryptography library with TLS implementation
55
Name: openssl
66
Version: 1.1.1k
7-
Release: 31%{?dist}
7+
Release: 32%{?dist}
88
License: OpenSSL
99
Vendor: Microsoft Corporation
1010
Distribution: Mariner
@@ -61,7 +61,8 @@ Patch37: CVE-2023-3817.patch
6161
Patch38: openssl-1.1.1-improve-safety-of-DH.patch
6262
Patch39: openssl-1.1.1-add-null-checks-where-contentinfo-data-can-be-null.patch
6363
Patch40: openssl-1.1.1-Fix-unconstrained-session-cache-growth-in-TLSv1.3.patch
64-
Patch41: openssl-1.1.1-Only-free-the-read-buffers-if-we-re-not-using-them.patch
64+
Patch41: openssl-1.1.1-pkcs1-implicit-rejection.patch
65+
Patch42: openssl-1.1.1-Only-free-the-read-buffers-if-we-re-not-using-them.patch
6566
BuildRequires: perl-Test-Warnings
6667
BuildRequires: perl-Text-Template
6768
BuildRequires: perl(FindBin)
@@ -176,6 +177,7 @@ cp %{SOURCE4} test/
176177
%patch39 -p1
177178
%patch40 -p1
178179
%patch41 -p1
180+
%patch42 -p1
179181

180182
%build
181183
# Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
@@ -365,9 +367,12 @@ rm -f %{buildroot}%{_sysconfdir}/pki/tls/ct_log_list.cnf.dist
365367
%postun libs -p /sbin/ldconfig
366368

367369
%changelog
368-
* Tue Jun 04 2024 Tobias Brick <tobiasb@microsoft.com> - 1.1.1k-31
370+
* Tue Jun 04 2024 Tobias Brick <tobiasb@microsoft.com> - 1.1.1k-32
369371
- Only free the read buffers if we're not using them
370372

373+
* Thu May 23 2024 Juan Camposeco <juan.camposeco@gmail.com> - 1.1.1k-31
374+
- Implicit rejection of PKCS#1 v1.5 (CVE-2023-50782) - cherrypick from fasttrack/2.0
375+
371376
* Fri Apr 19 2024 Tobias Brick <tobiasb@microsoft.com> - 1.1.1k-30
372377
- Fix unconstrained session cache growth in TLSv1.3
373378

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ texinfo-6.8-1.cm2.aarch64.rpm
165165
gtk-doc-1.33.2-1.cm2.noarch.rpm
166166
autoconf-2.71-3.cm2.noarch.rpm
167167
automake-1.16.5-1.cm2.noarch.rpm
168-
openssl-1.1.1k-31.cm2.aarch64.rpm
169-
openssl-devel-1.1.1k-31.cm2.aarch64.rpm
170-
openssl-libs-1.1.1k-31.cm2.aarch64.rpm
171-
openssl-perl-1.1.1k-31.cm2.aarch64.rpm
172-
openssl-static-1.1.1k-31.cm2.aarch64.rpm
168+
openssl-1.1.1k-32.cm2.aarch64.rpm
169+
openssl-devel-1.1.1k-32.cm2.aarch64.rpm
170+
openssl-libs-1.1.1k-32.cm2.aarch64.rpm
171+
openssl-perl-1.1.1k-32.cm2.aarch64.rpm
172+
openssl-static-1.1.1k-32.cm2.aarch64.rpm
173173
libcap-2.60-2.cm2.aarch64.rpm
174174
libcap-devel-2.60-2.cm2.aarch64.rpm
175175
debugedit-5.0-2.cm2.aarch64.rpm

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ texinfo-6.8-1.cm2.x86_64.rpm
165165
gtk-doc-1.33.2-1.cm2.noarch.rpm
166166
autoconf-2.71-3.cm2.noarch.rpm
167167
automake-1.16.5-1.cm2.noarch.rpm
168-
openssl-1.1.1k-31.cm2.x86_64.rpm
169-
openssl-devel-1.1.1k-31.cm2.x86_64.rpm
170-
openssl-libs-1.1.1k-31.cm2.x86_64.rpm
171-
openssl-perl-1.1.1k-31.cm2.x86_64.rpm
172-
openssl-static-1.1.1k-31.cm2.x86_64.rpm
168+
openssl-1.1.1k-32.cm2.x86_64.rpm
169+
openssl-devel-1.1.1k-32.cm2.x86_64.rpm
170+
openssl-libs-1.1.1k-32.cm2.x86_64.rpm
171+
openssl-perl-1.1.1k-32.cm2.x86_64.rpm
172+
openssl-static-1.1.1k-32.cm2.x86_64.rpm
173173
libcap-2.60-2.cm2.x86_64.rpm
174174
libcap-devel-2.60-2.cm2.x86_64.rpm
175175
debugedit-5.0-2.cm2.x86_64.rpm

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,12 @@ npth-1.6-4.cm2.aarch64.rpm
270270
npth-debuginfo-1.6-4.cm2.aarch64.rpm
271271
npth-devel-1.6-4.cm2.aarch64.rpm
272272
ntsysv-1.20-4.cm2.aarch64.rpm
273-
openssl-1.1.1k-31.cm2.aarch64.rpm
274-
openssl-debuginfo-1.1.1k-31.cm2.aarch64.rpm
275-
openssl-devel-1.1.1k-31.cm2.aarch64.rpm
276-
openssl-libs-1.1.1k-31.cm2.aarch64.rpm
277-
openssl-perl-1.1.1k-31.cm2.aarch64.rpm
278-
openssl-static-1.1.1k-31.cm2.aarch64.rpm
273+
openssl-1.1.1k-32.cm2.aarch64.rpm
274+
openssl-debuginfo-1.1.1k-32.cm2.aarch64.rpm
275+
openssl-devel-1.1.1k-32.cm2.aarch64.rpm
276+
openssl-libs-1.1.1k-32.cm2.aarch64.rpm
277+
openssl-perl-1.1.1k-32.cm2.aarch64.rpm
278+
openssl-static-1.1.1k-32.cm2.aarch64.rpm
279279
p11-kit-0.24.1-1.cm2.aarch64.rpm
280280
p11-kit-debuginfo-0.24.1-1.cm2.aarch64.rpm
281281
p11-kit-devel-0.24.1-1.cm2.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ npth-1.6-4.cm2.x86_64.rpm
276276
npth-debuginfo-1.6-4.cm2.x86_64.rpm
277277
npth-devel-1.6-4.cm2.x86_64.rpm
278278
ntsysv-1.20-4.cm2.x86_64.rpm
279-
openssl-1.1.1k-31.cm2.x86_64.rpm
280-
openssl-debuginfo-1.1.1k-31.cm2.x86_64.rpm
281-
openssl-devel-1.1.1k-31.cm2.x86_64.rpm
282-
openssl-libs-1.1.1k-31.cm2.x86_64.rpm
283-
openssl-perl-1.1.1k-31.cm2.x86_64.rpm
284-
openssl-static-1.1.1k-31.cm2.x86_64.rpm
279+
openssl-1.1.1k-32.cm2.x86_64.rpm
280+
openssl-debuginfo-1.1.1k-32.cm2.x86_64.rpm
281+
openssl-devel-1.1.1k-32.cm2.x86_64.rpm
282+
openssl-libs-1.1.1k-32.cm2.x86_64.rpm
283+
openssl-perl-1.1.1k-32.cm2.x86_64.rpm
284+
openssl-static-1.1.1k-32.cm2.x86_64.rpm
285285
p11-kit-0.24.1-1.cm2.x86_64.rpm
286286
p11-kit-debuginfo-0.24.1-1.cm2.x86_64.rpm
287287
p11-kit-devel-0.24.1-1.cm2.x86_64.rpm

0 commit comments

Comments
 (0)