Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Thomas Orgis (527d5e9da3ebd6de7e6a162e79963aea246b9009)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Thomas Orgis <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Thomas Orgis (527d5e9da3ebd6de7e6a162e79963aea246b9009)
  • Date: Mon, 27 Jun 2022 11:51:10 +0000

GIT changes to master grimoire by Thomas Orgis <sobukus AT sourcemage.org>:

crypto/openssl/DETAILS | 2
crypto/openssl/HISTORY | 5
+
crypto/openssl/PRE_BUILD | 3
+
crypto/openssl/patches/71ad6a8da3e39bd4caf5c6c767287ddd9bce8bae.patch | 30
++++++++++
4 files changed, 39 insertions(+), 1 deletion(-)

New commits:
commit 527d5e9da3ebd6de7e6a162e79963aea246b9009
Author: Thomas Orgis <sobukus AT sourcemage.org>
Commit: Thomas Orgis <sobukus AT sourcemage.org>

openssl: SECURITY_PATCH++

diff --git a/crypto/openssl/DETAILS b/crypto/openssl/DETAILS
index 9215349..f497d9d 100755
--- a/crypto/openssl/DETAILS
+++ b/crypto/openssl/DETAILS
@@ -1,6 +1,6 @@
SPELL=openssl
VERSION=3.0.4
- SECURITY_PATCH=52
+ SECURITY_PATCH=53
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_URL[0]=http://www.openssl.org/source/$SOURCE
SOURCE_URL[1]=ftp://sunsite.cnlab-switch.ch/mirror/openssl/source/$SOURCE
diff --git a/crypto/openssl/HISTORY b/crypto/openssl/HISTORY
index b3f57e5..f3e49da 100644
--- a/crypto/openssl/HISTORY
+++ b/crypto/openssl/HISTORY
@@ -1,3 +1,8 @@
+2022-06-27 Thomas Orgis <sobukus AT sourcemage.org>
+ * DETAILS: ++SECURITY_PATCH
+ * PRE_BUILD, patches/71ad6a8da3e39bd4caf5c6c767287ddd9bce8bae.patch:
+ import fix for the recent remote memory corruption
+
2022-06-24 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 3.0.4, SECURITY_PATCH++, fixes CVE-2022-2068

diff --git a/crypto/openssl/PRE_BUILD b/crypto/openssl/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/crypto/openssl/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/crypto/openssl/patches/71ad6a8da3e39bd4caf5c6c767287ddd9bce8bae.patch
b/crypto/openssl/patches/71ad6a8da3e39bd4caf5c6c767287ddd9bce8bae.patch
new file mode 100644
index 0000000..b557595
--- /dev/null
+++ b/crypto/openssl/patches/71ad6a8da3e39bd4caf5c6c767287ddd9bce8bae.patch
@@ -0,0 +1,30 @@
+From 71ad6a8da3e39bd4caf5c6c767287ddd9bce8bae Mon Sep 17 00:00:00 2001
+From: Xi Ruoyao <xry111 AT xry111.site>
+Date: Wed, 22 Jun 2022 18:07:05 +0800
+Subject: [PATCH] rsa: fix bn_reduce_once_in_place call for
+ rsaz_mod_exp_avx512_x2
+
+bn_reduce_once_in_place expects the number of BN_ULONG, but factor_size
+is moduli bit size.
+
+Fixes #18625.
+
+Signed-off-by: Xi Ruoyao <xry111 AT xry111.site>
+---
+ crypto/bn/rsaz_exp_x2.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/crypto/bn/rsaz_exp_x2.c b/crypto/bn/rsaz_exp_x2.c
+index 6b04486e3f56..f979cebd6fb7 100644
+--- a/crypto/bn/rsaz_exp_x2.c
++++ b/crypto/bn/rsaz_exp_x2.c
+@@ -257,6 +257,9 @@ int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1,
+ from_words52(res1, factor_size, rr1_red);
+ from_words52(res2, factor_size, rr2_red);
+
++ /* bn_reduce_once_in_place expects number of BN_ULONG, not bit size */
++ factor_size /= sizeof(BN_ULONG) * 8;
++
+ bn_reduce_once_in_place(res1, /*carry=*/0, m1, storage, factor_size);
+ bn_reduce_once_in_place(res2, /*carry=*/0, m2, storage, factor_size);
+



  • [SM-Commit] GIT changes to master grimoire by Thomas Orgis (527d5e9da3ebd6de7e6a162e79963aea246b9009), Thomas Orgis, 06/27/2022

Archive powered by MHonArc 2.6.24.

Top of Page