forked from pool/MozillaThunderbird
d30235b5b6
* After starting Thunderbird, the message list position was sometimes set to an incorrect position MFSA 2024-30 (bsc#1226316) * CVE-2024-6600 (bmo#1888340) Memory corruption in WebGL API * CVE-2024-6601 (bmo#1890748) Race condition in permission assignment * CVE-2024-6602 (bmo#1895032) Memory corruption in NSS * CVE-2024-6603 (bmo#1895081) Memory corruption in thread creation * CVE-2024-6604 (bmo#1748105, bmo#1837550, bmo#1884266) Memory safety bugs fixed in Firefox 128, Firefox ESR 115.13, and Thunderbird 115.13 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=765
21 lines
1020 B
Diff
21 lines
1020 B
Diff
https://github.com/randombit/botan/commit/94e9154c143aa5264da6254a6a1be5bc66ee2b5a
|
|
|
|
diff --git a/comm/third_party/botan/src/lib/pubkey/ec_group/ec_group.cpp b/comm/third_party/botan/src/lib/pubkey/ec_group/ec_group.cpp
|
|
index bb60bacf7ba..214751b4eb0 100644
|
|
--- a/comm/third_party/botan/src/lib/pubkey/ec_group/ec_group.cpp
|
|
+++ b/comm/third_party/botan/src/lib/pubkey/ec_group/ec_group.cpp
|
|
@@ -334,8 +334,11 @@ std::shared_ptr<EC_Group_Data> EC_Group::BER_decode_EC_group(const uint8_t bits[
|
|
.end_cons()
|
|
.verify_end();
|
|
|
|
- if(p.bits() < 64 || p.is_negative() || !is_bailie_psw_probable_prime(p))
|
|
- throw Decoding_Error("Invalid ECC p parameter");
|
|
+ if(p.bits() < 112 || p.bits() > 1024)
|
|
+ throw Decoding_Error("ECC p parameter is invalid size");
|
|
+
|
|
+ if(p.is_negative() || !is_bailie_psw_probable_prime(p))
|
|
+ throw Decoding_Error("ECC p parameter is not a prime");
|
|
|
|
if(a.is_negative() || a >= p)
|
|
throw Decoding_Error("Invalid ECC a parameter");
|