forked from pool/libcryptopp
Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
40db48778c |
26
libcryptopp-CVE-2024-28285.patch
Normal file
26
libcryptopp-CVE-2024-28285.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
commit 2472be710f8518caab1f62999c50970b475f162f
|
||||
Author: Angel Yankov <angel.yankov@suse.com>
|
||||
Date: Wed May 28 16:17:10 2025 +0300
|
||||
|
||||
Fix ElGamal side channel issue
|
||||
|
||||
diff --git a/pubkey.h b/pubkey.h
|
||||
index 31e00a33..b12ef458 100644
|
||||
--- a/pubkey.h
|
||||
+++ b/pubkey.h
|
||||
@@ -1854,8 +1854,13 @@ public:
|
||||
|
||||
SecByteBlock derivedKey(encAlg.GetSymmetricKeyLength(encAlg.GetMaxSymmetricPlaintextLength(ciphertextLength)));
|
||||
derivAlg.Derive(params, derivedKey, derivedKey.size(), z, q, parameters);
|
||||
-
|
||||
- return encAlg.SymmetricDecrypt(derivedKey, ciphertext, ciphertextLength, plaintext, parameters);
|
||||
+ DecodingResult res = encAlg.SymmetricDecrypt(derivedKey, ciphertext, ciphertextLength, plaintext, parameters);
|
||||
+ Element z2 = agreeAlg.AgreeWithStaticPrivateKey(params, q, true, key.GetPrivateExponent());
|
||||
+ if (z == z2) {
|
||||
+ } else {
|
||||
+ return DecodingResult();
|
||||
+ }
|
||||
+ return res;
|
||||
}
|
||||
catch (DL_BadElement &)
|
||||
{
|
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 29 10:56:35 UTC 2025 - Angel Yankov <angel.yankov@suse.com>
|
||||
|
||||
- Security fix [bsc#1224280, CVE-2024-28285]
|
||||
* potential leak of secret key of ElGamal encryption via fault injection
|
||||
* Added patch libcryptopp-CVE-2024-28285.patch
|
||||
* https://github.com/weidai11/cryptopp/issues/1262
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 3 09:09:55 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
|
@@ -40,6 +40,8 @@ Patch1: libcryptopp-shared.patch
|
||||
Patch2: libcryptopp-CVE-2023-50980.patch
|
||||
# CVE-2023-50981 [bsc#1218222], issue on ModularSquareRoot function leads to potential DoS
|
||||
Patch3: libcryptopp-CVE-2023-50981.patch
|
||||
# PATCH-FIX-SUSE: [bsc#1224280] CVE-2024-28285 potential leak of secret key of ElGamal encryption via fault injection
|
||||
Patch4: libcryptopp-CVE-2024-28285.patch
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
Reference in New Issue
Block a user