From 129b616253dcbeeea26aabd46664f244c7e9bfa3340189ccba674b7e564a80c6 Mon Sep 17 00:00:00 2001 From: Gus Kenion Date: Mon, 29 Apr 2024 08:01:56 +0000 Subject: [PATCH 1/2] Accepting request 1170680 from home:pmonrealgonzalez:branches:Java:packages - Update to version 1.78: [bsc#1223252, CVE-2024-30171] * Security Advisories. - CVE-2024-29857: Importing an EC certificate with specially crafted F2m parameters can cause high CPU usage during parameter evaluation. - CVE-2024-30171: Possible timing based leakage in RSA based handshakes due to exception processing eliminated. - CVE-2024-30172: Crafted signature and public key can be used to trigger an infinite loop in the Ed25519 verification code. - CVE-2024-301XX: When endpoint identification is enabled in the BCJSSE and an SSL socket is not created with an explicit hostname (as happens with HttpsURLConnection), hostname verification could be performed against a DNS-resolved IP address. This has been fixed. * Defects Fixed: - Issues with a dangling weak reference causing intermittent NullPointerExceptions in the OcspCache have been fixed. - Issues with non-constant time RSA operations in TLS handshakes. - Issue with Ed25519, Ed448 signature verification causing intermittent infinite loop have been fixed. - Issues with non-constant time ML-KEM implementation ("Kyber Slash"). - Align ML-KEM input validation with FIPS 203 IPD requirements. - Make PEM parsing more forgiving of whitespace to align with RFC 7468. - Fix CCM length checks with large nonce sizes (n=12, n=13). - EAC: Fixed the CertificateBody ASN.1 type to support an optional Certification Authority Reference in a Certificate Request. - ASN.1: ObjectIdentifier (also Relative OID) parsing has been optimized and the contents octets for both types are now limited to 4096 bytes. - BCJSSE: Fixed a missing null check on the result of PrivateKey.getEncoded(), which could cause issues for HSM RSA keys. - BCJSSE: When endpoint identification is enabled and an SSL socket is not created with an explicit hostname (as happens with HttpsURLConnection), OBS-URL: https://build.opensuse.org/request/show/1170680 OBS-URL: https://build.opensuse.org/package/show/Java:packages/bouncycastle?expand=0&rev=103 --- ...k18on-1.77.pom => bcjmail-jdk18on-1.78.pom | 8 +-- ...dk18on-1.77.pom => bcmail-jdk18on-1.78.pom | 8 +-- ...-jdk18on-1.77.pom => bcpg-jdk18on-1.78.pom | 4 +- ...dk18on-1.77.pom => bcpkix-jdk18on-1.78.pom | 6 +- ...dk18on-1.77.pom => bcprov-jdk18on-1.78.pom | 2 +- ...jdk18on-1.77.pom => bctls-jdk18on-1.78.pom | 6 +- ...dk18on-1.77.pom => bcutil-jdk18on-1.78.pom | 4 +- bouncycastle-notests.patch | 11 ++-- bouncycastle.changes | 66 +++++++++++++++++++ bouncycastle.spec | 6 +- r1rv77.tar.gz | 3 - r1rv78.tar.gz | 3 + 12 files changed, 98 insertions(+), 29 deletions(-) rename bcjmail-jdk18on-1.77.pom => bcjmail-jdk18on-1.78.pom (93%) rename bcmail-jdk18on-1.77.pom => bcmail-jdk18on-1.78.pom (93%) rename bcpg-jdk18on-1.77.pom => bcpg-jdk18on-1.78.pom (96%) rename bcpkix-jdk18on-1.77.pom => bcpkix-jdk18on-1.78.pom (94%) rename bcprov-jdk18on-1.77.pom => bcprov-jdk18on-1.78.pom (97%) rename bctls-jdk18on-1.77.pom => bctls-jdk18on-1.78.pom (93%) rename bcutil-jdk18on-1.77.pom => bcutil-jdk18on-1.78.pom (95%) delete mode 100644 r1rv77.tar.gz create mode 100644 r1rv78.tar.gz diff --git a/bcjmail-jdk18on-1.77.pom b/bcjmail-jdk18on-1.78.pom similarity index 93% rename from bcjmail-jdk18on-1.77.pom rename to bcjmail-jdk18on-1.78.pom index 293c17b..9ad38c4 100644 --- a/bcjmail-jdk18on-1.77.pom +++ b/bcjmail-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bcjmail-jdk18on jar Bouncy Castle Jakarta S/MIME API - 1.77 + 1.78 The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols. This jar contains S/MIME APIs for JDK 1.8 and up. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. The Jakarta Mail API and the Jakarta activation framework will also be needed. https://www.bouncycastle.org/java.html @@ -33,19 +33,19 @@ org.bouncycastle bcprov-jdk18on - 1.77 + 1.78 jar org.bouncycastle bcutil-jdk18on - 1.77 + 1.78 jar org.bouncycastle bcpkix-jdk18on - 1.77 + 1.78 jar diff --git a/bcmail-jdk18on-1.77.pom b/bcmail-jdk18on-1.78.pom similarity index 93% rename from bcmail-jdk18on-1.77.pom rename to bcmail-jdk18on-1.78.pom index 612b59e..cb66c87 100644 --- a/bcmail-jdk18on-1.77.pom +++ b/bcmail-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bcmail-jdk18on jar Bouncy Castle S/MIME API - 1.77 + 1.78 The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols. This jar contains S/MIME APIs for JDK 1.8 and up. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. The JavaMail API and the Java activation framework will also be needed. https://www.bouncycastle.org/java.html @@ -33,19 +33,19 @@ org.bouncycastle bcprov-jdk18on - 1.77 + 1.78 jar org.bouncycastle bcutil-jdk18on - 1.77 + 1.78 jar org.bouncycastle bcpkix-jdk18on - 1.77 + 1.78 jar diff --git a/bcpg-jdk18on-1.77.pom b/bcpg-jdk18on-1.78.pom similarity index 96% rename from bcpg-jdk18on-1.77.pom rename to bcpg-jdk18on-1.78.pom index a571e39..ec72cb4 100644 --- a/bcpg-jdk18on-1.77.pom +++ b/bcpg-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bcpg-jdk18on jar Bouncy Castle OpenPGP API - 1.77 + 1.78 The Bouncy Castle Java API for handling the OpenPGP protocol. This jar contains the OpenPGP API for JDK 1.8 and up. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. https://www.bouncycastle.org/java.html @@ -38,7 +38,7 @@ org.bouncycastle bcprov-jdk18on - 1.77 + 1.78 jar diff --git a/bcpkix-jdk18on-1.77.pom b/bcpkix-jdk18on-1.78.pom similarity index 94% rename from bcpkix-jdk18on-1.77.pom rename to bcpkix-jdk18on-1.78.pom index 226fc51..e0b1b9c 100644 --- a/bcpkix-jdk18on-1.77.pom +++ b/bcpkix-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bcpkix-jdk18on jar Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs - 1.77 + 1.78 The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. This jar contains APIs for JDK 1.8 and up. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. https://www.bouncycastle.org/java.html @@ -33,13 +33,13 @@ org.bouncycastle bcprov-jdk18on - 1.77 + 1.78 jar org.bouncycastle bcutil-jdk18on - 1.77 + 1.78 jar diff --git a/bcprov-jdk18on-1.77.pom b/bcprov-jdk18on-1.78.pom similarity index 97% rename from bcprov-jdk18on-1.77.pom rename to bcprov-jdk18on-1.78.pom index fa057b9..88ff6d3 100644 --- a/bcprov-jdk18on-1.77.pom +++ b/bcprov-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bcprov-jdk18on jar Bouncy Castle Provider - 1.77 + 1.78 The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.8 and up. https://www.bouncycastle.org/java.html diff --git a/bctls-jdk18on-1.77.pom b/bctls-jdk18on-1.78.pom similarity index 93% rename from bctls-jdk18on-1.77.pom rename to bctls-jdk18on-1.78.pom index 6f82a4d..3b5ab46 100644 --- a/bctls-jdk18on-1.77.pom +++ b/bctls-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bctls-jdk18on jar Bouncy Castle JSSE provider and TLS/DTLS API - 1.77 + 1.78 The Bouncy Castle Java APIs for TLS and DTLS, including a provider for the JSSE. https://www.bouncycastle.org/java.html @@ -33,13 +33,13 @@ org.bouncycastle bcprov-jdk18on - 1.77 + 1.78 jar org.bouncycastle bcutil-jdk18on - 1.77 + 1.78 jar diff --git a/bcutil-jdk18on-1.77.pom b/bcutil-jdk18on-1.78.pom similarity index 95% rename from bcutil-jdk18on-1.77.pom rename to bcutil-jdk18on-1.78.pom index 477c5e5..9023e8b 100644 --- a/bcutil-jdk18on-1.77.pom +++ b/bcutil-jdk18on-1.78.pom @@ -5,7 +5,7 @@ bcutil-jdk18on jar Bouncy Castle ASN.1 Extension and Utility APIs - 1.77 + 1.78 The Bouncy Castle Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctls. This jar contains APIs for JDK 1.8 and up. https://www.bouncycastle.org/java.html @@ -33,7 +33,7 @@ org.bouncycastle bcprov-jdk18on - 1.77 + 1.78 jar diff --git a/bouncycastle-notests.patch b/bouncycastle-notests.patch index 38fd088..154e219 100644 --- a/bouncycastle-notests.patch +++ b/bouncycastle-notests.patch @@ -1,7 +1,7 @@ -Index: bc-java-r1rv76/ant/bc+-build.xml +Index: bc-java-r1rv78/ant/bc+-build.xml =================================================================== ---- bc-java-r1rv76.orig/ant/bc+-build.xml -+++ bc-java-r1rv76/ant/bc+-build.xml +--- bc-java-r1rv78.orig/ant/bc+-build.xml ++++ bc-java-r1rv78/ant/bc+-build.xml @@ -280,7 +280,7 @@ @@ -11,7 +11,7 @@ Index: bc-java-r1rv76/ant/bc+-build.xml