From ab98c150c6971a6153fdc9fe1624d6acabe1497f Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 20 Nov 2025 10:57:50 -0700 Subject: [PATCH] prepare for release 5.8.4 --- CMakeLists.txt | 4 +- ChangeLog.md | 73 +++++++++++++++ README | 223 ++++++++++----------------------------------- README.md | 225 ++++++++++------------------------------------ configure.ac | 4 +- wolfssl.rc | Bin 4924 -> 4924 bytes wolfssl/version.h | 4 +- 7 files changed, 174 insertions(+), 359 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5c3d3d97..12bcf1031 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") You must delete them, or cmake will refuse to work.") endif() -project(wolfssl VERSION 5.8.2 LANGUAGES C ASM) +project(wolfssl VERSION 5.8.4 LANGUAGES C ASM) # Set WOLFSSL_ROOT if not already defined if ("${WOLFSSL_ROOT}" STREQUAL "") @@ -58,7 +58,7 @@ set(WOLFSSL_LIBRARY_VERSION_SECOND 0) # increment if source code has changed # set to zero if WOLFSSL_LIBRARY_VERSION_FIRST is incremented or # WOLFSSL_LIBRARY_VERSION_SECOND is incremented -set(WOLFSSL_LIBRARY_VERSION_THIRD 0) +set(WOLFSSL_LIBRARY_VERSION_THIRD 1) set(LIBTOOL_FULL_VERSION ${WOLFSSL_LIBRARY_VERSION_FIRST}.${WOLFSSL_LIBRARY_VERSION_SECOND}.${WOLFSSL_LIBRARY_VERSION_THIRD}) diff --git a/ChangeLog.md b/ChangeLog.md index 44cfe9ba8..ed7c9a82f 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,76 @@ +# wolfSSL Release 5.8.4 (Nov. 20, 2025) + +Release 5.8.4 has been developed according to wolfSSL's development and QA +process (see link below) and successfully passed the quality criteria. +https://www.wolfssl.com/about/wolfssl-software-development-process-quality-assurance + +NOTE: * --enable-heapmath is deprecated + * MD5 is now disabled by default + +PR stands for Pull Request, and PR references a GitHub pull request number where the code change was added. + +## Vulnerabilities +* [Low CVE-2025-12888] Vulnerability in X25519 constant-time cryptographic implementations due to timing side channels introduced by compiler optimizations and CPU architecture limitations, specifically with the Xtensa-based ESP32 chips. If targeting Xtensa it is recommended to use the low memory implementations of X25519, which is now turned on as the default for Xtensa. Thanks to Adrian Cinal for the report. Fixed in PR 9275. + + +* [Med. CVE-2025-11936] Potential DoS vulnerability due to a memory leak through multiple KeyShareEntry with the same group in malicious TLS 1.3 ClientHello messages. This affects users who are running wolfSSL on the server side with TLS 1.3. Thanks to Jaehun Lee and Kyungmin Bae, Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9117. + +* [Low CVE-2025-11935] PSK with PFS (Perfect Forward Secrecy) downgrades to PSK without PFS during TLS 1.3 handshake. If the client sends a ClientHello that has a key share extension and the server responds with a ServerHello that does not have a key share extension the connection would previously continue on without using PFS. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9112. + +* [Low CVE-2025-11934] Signature Algorithm downgrade from ECDSA P521 to P256 during TLS 1.3 handshake. When a client sends ECDSA P521 as the supported signature algorithm the server previously could respond as ECDSA P256 being the accepted signature algorithm and the connection would continue with using ECDSA P256. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9113. + + +* [Low CVE-2025-11933] DoS Vulnerability in wolfSSL TLS 1.3 CKS extension parsing. Previously duplicate CKS extensions were not rejected leading to a potential memory leak when processing a ClientHello. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9132. + + +* [Low CVE-2025-11931] Integer Underflow Leads to Out-of-Bounds Access in XChaCha20-Poly1305 Decrypt. This issue is hit specifically with a call to the function wc_XChaCha20Poly1305_Decrypt() which is not used with TLS connections, only from direct calls from an application. Thanks to Luigino Camastra from Aisle Research for the report. Fixed in PR 9223. + +* [Low CVE-2025-11932] Timing Side-Channel in PSK Binder Verification. The server previously verified the TLS 1.3 PSK binder using a non-constant time method which could potentially leak information about the PSK binder. Thanks to Luigino Camastra from Aisle Research for the report. Fixed in PR 9223. + +* [Low CVE-2025-12889] With TLS 1.2 connections a client can use any digest, specifically a weaker digest, rather than those in the CertificateRequest. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9395 + +## New Features +* New ML-KEM / ML-DSA APIs and seed/import PKCS8 support; added _new/_delete APIs for ML-KEM/ML-DSA. (PR 9039, 9000, 9049) +* Initial wolfCrypt FreeBSD kernel module support (PR 9392) +* Expanded PKCS7/CMS capabilities: decode SymmetricKeyPackage / OneSymmetricKey, add wc_PKCS7_GetEnvelopedDataKariRid, and allow PKCS7 builds with AES keywrap unset. (PR 9018, 9029, 9032) +* Add custom AES key wrap/unwrap callbacks and crypto callback copy/free operations. (PR 9002, 9309) +* Add support for certificate_authorities extension in ClientHello and certificate manager CA-type selection/unloading. (PR 9209, 9046) +* Large expansion of Rust wrapper modules: random, aes, rsa, ecc, dh, sha, hmac, cmac, ed25519/ed448, pbkdf2/PKCS#12, kdf/prf, SRTP KDFs, and conditional compilation options. (PR 9191, 9212, 9273, 9306, 9320, 9328, 9368, 9389, 9357, 9433) +* Rust: support optional heap and dev_id parameters and enable conditional compilation based on C build options. (PR 9407, 9433) +* STM32 fixes (benchmarking and platform fixes) and PSoC6 hardware acceleration additions. (PR 9228, 9256, 9185) +* STM32U5 added support for SAES and DHUK. (PR 9087) +* Add --enable-curl=tiny option for a smaller build when used with cURL. (PR 9174) + +## Improvements / Optimizations +* Regression test fixes and expansion: TLS 1.3/1.2 tests, ARDUINO examples, libssh2 tests, hostap workflows, and nightly test improvements. (PR 9096, 9141, 9091, 9122, 9388) +* Improved test ordering and CI test stability (random tests run order changes, FIPS test fixes). (PR 9204, 9257) +* Docs and readme fixes, docstring updates, AsconAEAD comment placement, and example certificate renewals. (PR 9131, 9293, 9262, 9429) +* Updated GPL exception lists (GPLv2 and GPLv3 exception updates: add Fetchmail and OpenVPN). (PR 9398, 9413) +* Introduced WOLFSSL_DEBUG_CERTS and additional debug/logging refinements. (PR 8902, 9055) +* Expanded crypto-callback support (SHA family, HKDF, SHA-224, sha512_family digest selection) and improved crypto-only build cases. (PR 9070, 9252, 9271, 9100, 9194) +* AES & HW offload improvements including AES-CTR support in PKCS11 driver and AES ECB offload sizing fix. (PR 9277, 9364) +* ESP32: PSRAM allocator support and SHA HW fixes for ESP-IDF v6/v5. (PR 8987, 9225, 9264) +* Renesas FSP / RA examples updated and security-module TLS context improvements. (PR 9047, 9010, 9158, 9150) +* Broad configure/CMake/Autotools workflow improvements (Apple options tracking, Watcom pinning, Debian packaging, ESP-IDF pinning). (PR 9037, 9167, 9161, 9264) +* New assembly introspection / performance helpers for RISC-V and PPC32; benchmarking enhancements (cycle counts). (PR 9101, 9317) +* Update to SGX build for using assembly optimizations. (PR 8463, 9138) +* Testing with Fil-C compiler version to 0.674 (PR 9396) +* Refactors and compressing of small stack code (PR 9153) + +## Bug Fixes +* Removed the test feature using popen when defining the macro WOLFSSL_USE_POPEN_HOST and not having HAVE_GETADDRINFO defined, along with having the macro HAVE_HTTP_CLIENT set. There was the potential for vulnerable behavior with the use of popen when the API wolfSSL_BIO_new_connect() was called with this specific build. This exact build configuration is only intended for testing with QEMU and is not enabled with any autoconf/cmake flags. Thanks to linraymond2006 for the report. (PR 9038) +* Fix for C# wrapper Ed25519 potential crash and heap overwrite with raw public key import when using the API Ed25519ImportPublic.This was a broken API with the C# wrapper that would crash on use. Thanks to Luigino Camastra from Aisle Research for the bug report. (PR 9291) +* Coverity, cppcheck, MISRA, clang-tidy, ZeroPath and other static-analysis driven fixes across the codebase. (PR 9006, 9078, 9068, 9265, 9324) +* TLS 1.2/DTLS improvements: client message order checks, DTLS cookie/exchange and replay protections, better DTLS early-data handling. (PR 9387, 9253, 9205, 9367) +* Improved X.509 & cert handling: allow larger pathLen in Basic Constraints, restore inner server name for ECH, retrying cert candidate chains. (PR 8890, 9234, 8692) +* Sniffer robustness: fix infinite recursion, better handling of OOO appData and partial overlaps, and improved retransmission detection. (PR 9051, 9106, 9140, 9094) +* Numerous linuxkm (kernel-mode) fixes, relocation/PIE normalization, and FIPS-related build tweaks across many iterations. (PR 9025, 9035, 9067, 9111, 9121) +* ML-KEM/Kyber and ML-DSA fixes for out-of-bounds and seed-import correctness; multiple ML-related safety fixes. (PR 9142, 9105, 9439) +* Avoid uninitialized-variable and GCC warnings; several fixes for undefined-shift/overflow issues. (PR 9020, 9372, 9195) +* Memory & leak fixes in X509 verification and various struct sizing fixes for WOLFSSL_NO_MALLOC usage. (PR 9258, 9036) +* Fixed RSA / signing / verify-only warnings allowing WOLFSSL_NO_CT_OPS when WOLFSSL_RSA_VERIFY_ONLY is used and API cleanups for using const. (PR 9031, 9263) + + # wolfSSL Release 5.8.2 (July 17, 2025) Release 5.8.2 has been developed according to wolfSSL's development and QA diff --git a/README b/README index bb550f9ac..6a0e29a08 100644 --- a/README +++ b/README @@ -75,206 +75,77 @@ should be used for the enum name. *** end Notes *** -# wolfSSL Release 5.8.2 (July 17, 2025) +# wolfSSL Release 5.8.4 (Nov. 20, 2025) -Release 5.8.2 has been developed according to wolfSSL's development and QA +Release 5.8.4 has been developed according to wolfSSL's development and QA process (see link below) and successfully passed the quality criteria. https://www.wolfssl.com/about/wolfssl-software-development-process-quality-assurance -NOTE: * wolfSSL is now GPLv3 instead of GPLv2 - * --enable-heapmath is deprecated +NOTE: * --enable-heapmath is deprecated * MD5 is now disabled by default - PR stands for Pull Request, and PR references a GitHub pull request number where the code change was added. ## Vulnerabilities - -* [Low] There is the potential for a fault injection attack on ECC and Ed25519 verify operations. In versions of wolfSSL 5.7.6 and later the --enable-faultharden option is available to help mitigate against potential fault injection attacks. The mitigation added in wolfSSL version 5.7.6 is to help harden applications relying on the results of the verify operations, such as when used with wolfBoot. If doing ECC or Ed25519 verify operations on a device at risk for fault injection attacks then --enable-faultharden could be used to help mitigate it. Thanks to Kevin from Fraunhofer AISEC for the report. - -Hardening option added in PR https://github.com/wolfSSL/wolfssl/pull/8289 +* [Low CVE-2025-12888] Vulnerability in X25519 constant-time cryptographic implementations due to timing side channels introduced by compiler optimizations and CPU architecture limitations, specifically with the Xtensa-based ESP32 chips. If targeting Xtensa it is recommended to use the low memory implementations of X25519, which is now turned on as the default for Xtensa. Thanks to Adrian Cinal for the report. Fixed in PR 9275. -* [High CVE-2025-7395] When using WOLFSSL_SYS_CA_CERTS and WOLFSSL_APPLE_NATIVE_CERT_VALIDATION on an Apple platform, the native trust store verification routine overrides errors produced elsewhere in the wolfSSL certificate verification process including failures due to hostname matching/SNI, OCSP, CRL, etc. This allows any trusted cert chain to override other errors detected during chain verification that should have resulted in termination of the TLS connection. If building wolfSSL on versions after 5.7.6 and before 5.8.2 with use of the system CA support and the apple native cert validation feature enabled on Apple devices (on by default for non-macOS Apple targets when using autotools or CMake) we recommend updating to the latest version of wolfSSL. Thanks to Thomas Leong from ExpressVPN for the report. +* [Med. CVE-2025-11936] Potential DoS vulnerability due to a memory leak through multiple KeyShareEntry with the same group in malicious TLS 1.3 ClientHello messages. This affects users who are running wolfSSL on the server side with TLS 1.3. Thanks to Jaehun Lee and Kyungmin Bae, Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9117. -Fixed in PR https://github.com/wolfSSL/wolfssl/pull/8833 +* [Low CVE-2025-11935] PSK with PFS (Perfect Forward Secrecy) downgrades to PSK without PFS during TLS 1.3 handshake. If the client sends a ClientHello that has a key share extension and the server responds with a ServerHello that does not have a key share extension the connection would previously continue on without using PFS. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9112. + +* [Low CVE-2025-11934] Signature Algorithm downgrade from ECDSA P521 to P256 during TLS 1.3 handshake. When a client sends ECDSA P521 as the supported signature algorithm the server previously could respond as ECDSA P256 being the accepted signature algorithm and the connection would continue with using ECDSA P256. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9113. -* [Med. CVE-2025-7394] In the OpenSSL compatibility layer implementation, the function RAND_poll() was not behaving as expected and leading to the potential for predictable values returned from RAND_bytes() after fork() is called. This can lead to weak or predictable random numbers generated in applications that are both using RAND_bytes() and doing fork() operations. This only affects applications explicitly calling RAND_bytes() after fork() and does not affect any internal TLS operations. Although RAND_bytes() documentation in OpenSSL calls out not being safe for use with fork() without first calling RAND_poll(), an additional code change was also made in wolfSSL to make RAND_bytes() behave similar to OpenSSL after a fork() call without calling RAND_poll(). Now the Hash-DRBG used gets reseeded after detecting running in a new process. If making use of RAND_bytes() and calling fork() we recommend updating to the latest version of wolfSSL. Thanks to Per Allansson from Appgate for the report. - -Fixed in the following PR’s -https://github.com/wolfSSL/wolfssl/pull/8849 -https://github.com/wolfSSL/wolfssl/pull/8867 -https://github.com/wolfSSL/wolfssl/pull/8898 +* [Low CVE-2025-11933] DoS Vulnerability in wolfSSL TLS 1.3 CKS extension parsing. Previously duplicate CKS extensions were not rejected leading to a potential memory leak when processing a ClientHello. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9132. +* [Low CVE-2025-11931] Integer Underflow Leads to Out-of-Bounds Access in XChaCha20-Poly1305 Decrypt. This issue is hit specifically with a call to the function wc_XChaCha20Poly1305_Decrypt() which is not used with TLS connections, only from direct calls from an application. Thanks to Luigino Camastra from Aisle Research for the report. Fixed in PR 9223. -* [Low CVE-2025-7396] In wolfSSL 5.8.0 the option of hardening the C implementation of Curve25519 private key operations was added with the addition of blinding support (https://www.wolfssl.com/curve25519-blinding-support-added-in-wolfssl-5-8-0/). In wolfSSL release 5.8.2 that blinding support is turned on by default in applicable builds. The blinding configure option is only for the base C implementation of Curve25519. It is not needed, or available with; ARM assembly builds, Intel assembly builds, and the small Curve25519 feature. While the attack would be very difficult to execute in practice, enabling blinding provides an additional layer of protection for devices that may be more susceptible to physical access or side-channel observation. Thanks to Arnaud Varillon, Laurent Sauvage, and Allan Delautre from Telecom Paris for the report. - -Blinding enabled by default in PR https://github.com/wolfSSL/wolfssl/pull/8736 +* [Low CVE-2025-11932] Timing Side-Channel in PSK Binder Verification. The server previously verified the TLS 1.3 PSK binder using a non-constant time method which could potentially leak information about the PSK binder. Thanks to Luigino Camastra from Aisle Research for the report. Fixed in PR 9223. +* [Low CVE-2025-12889] With TLS 1.2 connections a client can use any digest, specifically a weaker digest, rather than those in the CertificateRequest. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9395 ## New Features -* Multiple sessions are now supported in the sniffer due to the removal of a cached check. (PR #8723) -* New API ssl_RemoveSession() has been implemented for sniffer cleanup operations. (PR #8768) -* The new ASN X509 API, `wc_GetSubjectPubKeyInfoDerFromCert`, has been introduced for retrieving public key information from certificates. (PR #8758) -* `wc_PKCS12_create()` has been enhanced to support PBE_AES(256|128)_CBC key and certificate encryptions. (PR #8782, PR #8822, PR #8859) -* `wc_PKCS7_DecodeEncryptedKeyPackage()` has been added for decoding encrypted key packages. (PR #8976) -* All AES, SHA, and HMAC functionality has been implemented within the Linux Kernel Module. (PR #8998) -* Additions to the compatibility layer have been introduced for X.509 extensions and RSA PSS. Adding the API i2d_PrivateKey_bio, BN_ucmp and X509v3_get_ext_by_NID. (PR #8897) -* Added support for STM32N6. (PR #8914) -* Implemented SHA-256 for PPC 32 assembly. (PR #8894) +* New ML-KEM / ML-DSA APIs and seed/import PKCS8 support; added _new/_delete APIs for ML-KEM/ML-DSA. (PR 9039, 9000, 9049) +* Initial wolfCrypt FreeBSD kernel module support (PR 9392) +* Expanded PKCS7/CMS capabilities: decode SymmetricKeyPackage / OneSymmetricKey, add wc_PKCS7_GetEnvelopedDataKariRid, and allow PKCS7 builds with AES keywrap unset. (PR 9018, 9029, 9032) +* Add custom AES key wrap/unwrap callbacks and crypto callback copy/free operations. (PR 9002, 9309) +* Add support for certificate_authorities extension in ClientHello and certificate manager CA-type selection/unloading. (PR 9209, 9046) +* Large expansion of Rust wrapper modules: random, aes, rsa, ecc, dh, sha, hmac, cmac, ed25519/ed448, pbkdf2/PKCS#12, kdf/prf, SRTP KDFs, and conditional compilation options. (PR 9191, 9212, 9273, 9306, 9320, 9328, 9368, 9389, 9357, 9433) +* Rust: support optional heap and dev_id parameters and enable conditional compilation based on C build options. (PR 9407, 9433) +* STM32 fixes (benchmarking and platform fixes) and PSoC6 hardware acceleration additions. (PR 9228, 9256, 9185) +* STM32U5 added support for SAES and DHUK. (PR 9087) +* Add --enable-curl=tiny option for a smaller build when used with cURL. (PR 9174) ## Improvements / Optimizations - -### Linux Kernel Module (LinuxKM) Enhancements -* Registered DH and FFDHE for the Linux Kernel Module. (PR #8707) -* Implemented fixes for standard RNG in the Linux Kernel Module. (PR #8718) -* Added an ECDSA workaround for the Linux Kernel Module. (PR #8727) -* Added more PKCS1 pad SHA variants for RSA in the Linux Kernel Module. (PR #8730) -* Set default priority to 100000 for LKCAPI in the Linux Kernel Module. (PR #8740) -* Ensured ECDH never has FIPS enabled in the Linux Kernel Module. (PR #8751) -* Implemented further Linux Kernel Module and SP tweaks. (PR #8773) -* Added sig_alg support for Linux 6.13 RSA in the Linux Kernel Module. (PR #8796) -* Optimized wc_linuxkm_fpu_state_assoc. (PR #8828) -* Ensured DRBG is multithread-round-1 in the Linux Kernel Module. (PR #8840) -* Prevented toggling of fips_enabled in the Linux Kernel Module. (PR #8873) -* Refactored drbg_ctx clear in the Linux Kernel Module. (PR #8876) -* Set sig_alg max_size and digest_size callbacks for RSA in the Linux Kernel Module. (PR #8915) -* Added get_random_bytes for the Linux Kernel Module. (PR #8943) -* Implemented distro fix for the Linux Kernel Module. (PR #8994) -* Fixed page-flags-h in the Linux Kernel Module. (PR #9001) -* Added MODULE_LICENSE for the Linux Kernel Module. (PR #9005) - -### Post-Quantum Cryptography (PQC) & Asymmetric Algorithms -* Kyber has been updated to the MLKEM ARM file for Zephyr (PR #8781) -* Backward compatibility has been implemented for ML_KEM IDs (PR #8827) -* ASN.1 is now ensured to be enabled when only building PQ algorithms (PR #8884) -* Building LMS with verify-only has been fixed (PR #8913) -* Parameters for LMS SHA-256_192 have been corrected (PR #8912) -* State can now be saved with the private key for LMS (PR #8836) -* Support for OpenSSL format has been added for ML-DSA/Dilithium (PR #8947) -* `dilithium_coeff_eta2[]` has been explicitly declared as signed (PR #8955) - -### Build System & Portability -* Prepared for the inclusion of v5.8.0 in the Ada Alire index. (PR #8714) -* Introduced a new build option to allow reuse of the Windows crypt provider handle. (PR #8706) -* Introduced general fixes for various build configurations. (PR #8763) -* Made improvements for portability using older GCC 4.8.2. (PR #8753) -* Macro guards updated to allow tests to build with opensslall and no server. (PR #8776) -* Added a check for STDC_NO_ATOMICS macro before use of atomics. (PR #8885) -* Introduced CMakePresets.json and CMakeSettings.json. (PR #8905) -* Added an option to not use constant time code with min/max. (PR #8830) -* Implemented proper MacOS dispatch for conditional signal/wait. (PR #8928) -* Disabled MD5 by default for both general and CMake builds. (PR #8895, PR #8948) -* Improved to allow building OPENSSL_EXTRA without KEEP_PEER_CERT. (PR #8926) -* Added introspection for Intel and ARM assembly speedups. (PR #8954) -* Fixed cURL config to set HAVE_EX_DATA and HAVE_ALPN. (PR #8973) -* Moved FREESCALE forced algorithm HAVE_ECC to IDE/MQX/user_settings.h. (PR #8977) - -### Testing & Debugging -* Fixed the exit status for testwolfcrypt. (PR #8762) -* Added WOLFSSL_DEBUG_PRINTF and WOLFSSL_DEBUG_CERTIFICATE_LOADS for improved debugging output. (PR #8769, PR #8770) -* Guarded some benchmark tests with NO_SW_BENCH. (PR #8760) -* Added an additional unit test for wolfcrypt PKCS12 file to improve code coverage. (PR #8831) -* Added an additional unit test for increased DH code coverage. (PR #8837) -* Adjusted for warnings with NO_TLS build and added GitHub actions test. (PR #8851) -* Added additional compatibility layer RAND tests. (PR #8852) -* Added an API unit test for checking domain name. (PR #8863) -* Added bind v9.18.33 testing. (PR #8888) -* Fixed issue with benchmark help options and descriptions not lining up. (PR #8957) - -### Certificates & ASN.1 -* Changed the algorithm for sum in ASN.1 OIDs. (PR #8655) -* Updated PKCS7 to use X509 STORE for internal verification. (PR #8748) -* Improved handling of temporary buffer size for X509 extension printing. (PR #8710) -* Marked IP address as WOLFSSL_V_ASN1_OCTET_STRING for ALT_NAMES_OID. (PR #8842) -* Fixed printing empty names in certificates. (PR #8880) -* Allowed CA:FALSE on wolftpm. (PR #8925) -* Fixed several inconsistent function prototype parameter names in wc/asn. (PR #8949) -* Accounted for custom extensions when creating a Cert from a WOLFSSL_X509. (PR #8960) - -### TLS/DTLS & Handshake -* Checked group correctness outside of TLS 1.3 too for TLSX_UseSupportedCurve. (PR #8785) -* Dropped records that span datagrams in DTLS. (PR #8642) -* Implemented WC_NID_netscape_cert_type. (PR #8800) -* Refactored GetHandshakeHeader/GetHandShakeHeader into one function. (PR #8787) -* Correctly set the current peer in dtlsProcessPendingPeer. (PR #8848) -* Fixed set_groups for TLS. (PR #8824) -* Allowed trusted_ca_keys with TLSv1.3. (PR #8860) -* Moved Dtls13NewEpoch into DeriveTls13Keys. (PR #8858) -* Cleared tls1_3 on downgrade. (PR #8861) -* Always sent ACKs on detected retransmission for DTLS1.3. (PR #8882) -* Removed DTLS from echo examples. (PR #8889) -* Recalculated suites at SSL initialization. (PR #8757) -* No longer using BIO for ALPN. (PR #8969) -* Fixed wolfSSL_BIO_new_connect's handling of IPV6 addresses. (PR #8815) -* Memory Management & Optimizations -* Performed small stack refactors, improved stack size with mlkem and dilithium, and added additional tests. (PR #8779) -* Implemented FREE_MP_INT_SIZE in heap math. (PR #8881) -* Detected correct MAX_ENCODED_SIG_SZ based on max support in math lib. (PR #8931) -* Fixed improper access of sp_int_minimal using sp_int. (PR #8985) - -### Cryptography & Hash Functions -* Implemented WC_SIPHASH_NO_ASM for not using assembly optimizations with siphash. (PR #8789, PR #8791) -* Added missing DH_MAX_SIZE define for FIPS and corrected wolfssl.rc FILETYPE to VFT_DLL. (PR #8794) -* Implemented WC_SHA3_NO_ASM for not using assembly with SHA3. (PR #8817) -* Improved Aarch64 XFENCE. (PR #8832) -* Omitted frame pointer for ARM32/Thumb2/RISC-V 64 assembly. (PR #8893) -* Fixed branch instruction in ARMv7a ASM. (PR #8933) -* Enabled EVP HMAC to work with WOLFSSL_HMAC_COPY_HASH. (PR #8944) -* Platform-Specific & Hardware Integration -* Added HAVE_HKDF for wolfssl_test and explicit support for ESP32P4. (PR #8742) -* Corrected Espressif default time setting. (PR #8829) -* Made wc_tsip_* APIs public. (PR #8717) -* Improved PlatformIO Certificate Bundle Support. (PR #8847) -* Fixed the TSIP TLS example program. (PR #8857) -* Added crypto callback functions for TROPIC01 secure element. (PR #8812) -* Added Renesas RX TSIP AES CTR support. (PR #8854) -* Fixed TSIP port using crypto callback. (PR #8937) - -### General Improvements & Refactoring -* Attempted wolfssl_read_bio_file in read_bio even when XFSEEK is available. (PR #8703) -* Refactored GetHandshakeHeader/GetHandShakeHeader into one function. (PR #8787) -* Updated libspdm from 3.3.0 to 3.7.0. (PR #8906) -* Fixed missing dashes on the end of header and footer for Falcon PEM key. (PR #8904) -* Fixed minor code typos for macos signal and types.h max block size. (PR #8934) -* Make the API wolfSSL_X509_STORE_CTX_get_error accessible to more build configurations for ease of getting the "store" error code and depth with certificate failure callback implementations. (PR #8903) +* Regression test fixes and expansion: TLS 1.3/1.2 tests, ARDUINO examples, libssh2 tests, hostap workflows, and nightly test improvements. (PR 9096, 9141, 9091, 9122, 9388) +* Improved test ordering and CI test stability (random tests run order changes, FIPS test fixes). (PR 9204, 9257) +* Docs and readme fixes, docstring updates, AsconAEAD comment placement, and example certificate renewals. (PR 9131, 9293, 9262, 9429) +* Updated GPL exception lists (GPLv2 and GPLv3 exception updates: add Fetchmail and OpenVPN). (PR 9398, 9413) +* Introduced WOLFSSL_DEBUG_CERTS and additional debug/logging refinements. (PR 8902, 9055) +* Expanded crypto-callback support (SHA family, HKDF, SHA-224, sha512_family digest selection) and improved crypto-only build cases. (PR 9070, 9252, 9271, 9100, 9194) +* AES & HW offload improvements including AES-CTR support in PKCS11 driver and AES ECB offload sizing fix. (PR 9277, 9364) +* ESP32: PSRAM allocator support and SHA HW fixes for ESP-IDF v6/v5. (PR 8987, 9225, 9264) +* Renesas FSP / RA examples updated and security-module TLS context improvements. (PR 9047, 9010, 9158, 9150) +* Broad configure/CMake/Autotools workflow improvements (Apple options tracking, Watcom pinning, Debian packaging, ESP-IDF pinning). (PR 9037, 9167, 9161, 9264) +* New assembly introspection / performance helpers for RISC-V and PPC32; benchmarking enhancements (cycle counts). (PR 9101, 9317) +* Update to SGX build for using assembly optimizations. (PR 8463, 9138) +* Testing with Fil-C compiler version to 0.674 (PR 9396) +* Refactors and compressing of small stack code (PR 9153) ## Bug Fixes -* Fixed issues to support _WIN32_WCE (VS 2008 with WinCE 6.0/7.0). (PR #8709) -* Fixed STM32 Hash with IRQ enabled. (PR #8705) -* Fixed raw hash when using crypto instructions on RISC-V 64-bit. (PR #8733) -* Fixed ECDH decode secret in the Linux Kernel Module. (PR #8729) -* Passed in the correct hash type to wolfSSL_RSA_verify_ex. (PR #8726) -* Fixed issues for Intel QuickAssist latest driver (4.28). (PR #8728) -* Speculative fix for CodeSonar overflow issue in ssl_certman.c. (PR #8715) -* Fixed Arduino progmem print and AVR WOLFSSL_USER_IO. (PR #8668) -* Correctly advanced the index in wc_HKDF_Expand_ex. (PR #8737) -* Fixed STM32 hash status check logic, including NO_AES_192 and NO_AES_256. (PR #8732) -* Added missing call to wolfSSL_RefFree in FreeCRL to prevent memory leaks. (PR #8750) -* Fixed sanity check on --group with unit test app and null sanity check with des decrypt. (PR #8711) -* Fixed Curve25519 and static ephemeral issue with blinding. (PR #8766) -* Fixed edge case issue with STM32 AES GCM auth padding. (PR #8745) -* Removed redefinition of MlKemKey and fixed build issue in benchmark. (PR #8755) -* Used proper heap hint when freeing CRL in error case. (PR #8713) -* Added support for no malloc with wc_CheckCertSigPubKey. (PR #8725) -* Fixed C# wrapper Release build. (PR #8802) -* Handled malformed CCS and CCS before CH in TLS1.3. (PR #8788) -* Fixed ML-DSA with WOLFSSL_DILITHIUM_NO_SIGN. (PR #8798) -* Fixed AesGcmCrypt_1 no-stream in the Linux Kernel Module. (PR #8814) -* Fixed return value usage for crypto_sig_sign in the Linux Kernel Module. (PR #8816) -* Fixed issue with CSharp and Windows CE with conversion of ASCII and Unicode. (PR #8799) -* Fixed Renesas SCE on RA6M4. (PR #8838) -* Fixed tests for different configs for ML-DSA. (PR #8865) -* Fixed bug in ParseCRL_Extensions around the size of a CRL number handled and CRL number OID. (PR #8587) -* Fixed uninitialized wc_FreeRng in prime_test. (PR #8886) -* Fixed ECC configuration issues with ECC verify only and no RNG. (PR #8901) -* Fixed issues with max size, openssl.test netcat, and clang-tidy. (PR #8909) -* Fixed for casting down and uninit issues in Dilithium/ML-DSA. (PR #8868) -* Fixed memory allocation failure testing and related unit test cases. (PR #8945, PR #8952) -* Fixed build issue with ML-DSA 44 only. (PR #8981) -* Fixed possible memory leak with X509 reference counter when using x509small. (PR #8982) +* Removed the test feature using popen when defining the macro WOLFSSL_USE_POPEN_HOST and not having HAVE_GETADDRINFO defined, along with having the macro HAVE_HTTP_CLIENT set. There was the potential for vulnerable behavior with the use of popen when the API wolfSSL_BIO_new_connect() was called with this specific build. This exact build configuration is only intended for testing with QEMU and is not enabled with any autoconf/cmake flags. Thanks to linraymond2006 for the report. (PR 9038) +* Fix for C# wrapper Ed25519 potential crash and heap overwrite with raw public key import when using the API Ed25519ImportPublic.This was a broken API with the C# wrapper that would crash on use. Thanks to Luigino Camastra from Aisle Research for the bug report. (PR 9291) +* Coverity, cppcheck, MISRA, clang-tidy, ZeroPath and other static-analysis driven fixes across the codebase. (PR 9006, 9078, 9068, 9265, 9324) +* TLS 1.2/DTLS improvements: client message order checks, DTLS cookie/exchange and replay protections, better DTLS early-data handling. (PR 9387, 9253, 9205, 9367) +* Improved X.509 & cert handling: allow larger pathLen in Basic Constraints, restore inner server name for ECH, retrying cert candidate chains. (PR 8890, 9234, 8692) +* Sniffer robustness: fix infinite recursion, better handling of OOO appData and partial overlaps, and improved retransmission detection. (PR 9051, 9106, 9140, 9094) +* Numerous linuxkm (kernel-mode) fixes, relocation/PIE normalization, and FIPS-related build tweaks across many iterations. (PR 9025, 9035, 9067, 9111, 9121) +* ML-KEM/Kyber and ML-DSA fixes for out-of-bounds and seed-import correctness; multiple ML-related safety fixes. (PR 9142, 9105, 9439) +* Avoid uninitialized-variable and GCC warnings; several fixes for undefined-shift/overflow issues. (PR 9020, 9372, 9195) +* Memory & leak fixes in X509 verification and various struct sizing fixes for WOLFSSL_NO_MALLOC usage. (PR 9258, 9036) +* Fixed RSA / signing / verify-only warnings allowing WOLFSSL_NO_CT_OPS when WOLFSSL_RSA_VERIFY_ONLY is used and API cleanups for using const. (PR 9031, 9263) For additional vulnerability information visit the vulnerability page at: https://www.wolfssl.com/docs/security-vulnerabilities/ diff --git a/README.md b/README.md index 2e2278229..113fb201b 100644 --- a/README.md +++ b/README.md @@ -80,206 +80,77 @@ single call hash function. Instead the name `WC_SHA`, `WC_SHA256`, `WC_SHA384` a `WC_SHA512` should be used for the enum name. -# wolfSSL Release 5.8.2 (July 17, 2025) +# wolfSSL Release 5.8.4 (Nov. 20, 2025) -Release 5.8.2 has been developed according to wolfSSL's development and QA +Release 5.8.4 has been developed according to wolfSSL's development and QA process (see link below) and successfully passed the quality criteria. https://www.wolfssl.com/about/wolfssl-software-development-process-quality-assurance -NOTE: * wolfSSL is now GPLv3 instead of GPLv2 - * --enable-heapmath is deprecated +NOTE: * --enable-heapmath is deprecated * MD5 is now disabled by default - -PR stands for Pull Request, and PR (NUMBER) references a GitHub pull request number where the code change was added. +PR stands for Pull Request, and PR references a GitHub pull request number where the code change was added. ## Vulnerabilities - -* [Low] There is the potential for a fault injection attack on ECC and Ed25519 verify operations. In versions of wolfSSL 5.7.6 and later the --enable-faultharden option is available to help mitigate against potential fault injection attacks. The mitigation added in wolfSSL version 5.7.6 is to help harden applications relying on the results of the verify operations, such as when used with wolfBoot. If doing ECC or Ed25519 verify operations on a device at risk for fault injection attacks then --enable-faultharden could be used to help mitigate it. Thanks to Kevin from Fraunhofer AISEC for the report. - -Hardening option added in PR https://github.com/wolfSSL/wolfssl/pull/8289 +* [Low CVE-2025-12888] Vulnerability in X25519 constant-time cryptographic implementations due to timing side channels introduced by compiler optimizations and CPU architecture limitations, specifically with the Xtensa-based ESP32 chips. If targeting Xtensa it is recommended to use the low memory implementations of X25519, which is now turned on as the default for Xtensa. Thanks to Adrian Cinal for the report. Fixed in PR 9275. -* [High CVE-2025-7395] When using WOLFSSL_SYS_CA_CERTS and WOLFSSL_APPLE_NATIVE_CERT_VALIDATION on an Apple platform, the native trust store verification routine overrides errors produced elsewhere in the wolfSSL certificate verification process including failures due to hostname matching/SNI, OCSP, CRL, etc. This allows any trusted cert chain to override other errors detected during chain verification that should have resulted in termination of the TLS connection. If building wolfSSL on versions after 5.7.6 and before 5.8.2 with use of the system CA support and the apple native cert validation feature enabled on Apple devices (on by default for non-macOS Apple targets when using autotools or CMake) we recommend updating to the latest version of wolfSSL. Thanks to Thomas Leong from ExpressVPN for the report. +* [Med. CVE-2025-11936] Potential DoS vulnerability due to a memory leak through multiple KeyShareEntry with the same group in malicious TLS 1.3 ClientHello messages. This affects users who are running wolfSSL on the server side with TLS 1.3. Thanks to Jaehun Lee and Kyungmin Bae, Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9117. -Fixed in PR https://github.com/wolfSSL/wolfssl/pull/8833 +* [Low CVE-2025-11935] PSK with PFS (Perfect Forward Secrecy) downgrades to PSK without PFS during TLS 1.3 handshake. If the client sends a ClientHello that has a key share extension and the server responds with a ServerHello that does not have a key share extension the connection would previously continue on without using PFS. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9112. + +* [Low CVE-2025-11934] Signature Algorithm downgrade from ECDSA P521 to P256 during TLS 1.3 handshake. When a client sends ECDSA P521 as the supported signature algorithm the server previously could respond as ECDSA P256 being the accepted signature algorithm and the connection would continue with using ECDSA P256. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9113. -* [Med. CVE-2025-7394] In the OpenSSL compatibility layer implementation, the function RAND_poll() was not behaving as expected and leading to the potential for predictable values returned from RAND_bytes() after fork() is called. This can lead to weak or predictable random numbers generated in applications that are both using RAND_bytes() and doing fork() operations. This only affects applications explicitly calling RAND_bytes() after fork() and does not affect any internal TLS operations. Although RAND_bytes() documentation in OpenSSL calls out not being safe for use with fork() without first calling RAND_poll(), an additional code change was also made in wolfSSL to make RAND_bytes() behave similar to OpenSSL after a fork() call without calling RAND_poll(). Now the Hash-DRBG used gets reseeded after detecting running in a new process. If making use of RAND_bytes() and calling fork() we recommend updating to the latest version of wolfSSL. Thanks to Per Allansson from Appgate for the report. - -Fixed in the following PR’s -https://github.com/wolfSSL/wolfssl/pull/8849 -https://github.com/wolfSSL/wolfssl/pull/8867 -https://github.com/wolfSSL/wolfssl/pull/8898 +* [Low CVE-2025-11933] DoS Vulnerability in wolfSSL TLS 1.3 CKS extension parsing. Previously duplicate CKS extensions were not rejected leading to a potential memory leak when processing a ClientHello. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9132. +* [Low CVE-2025-11931] Integer Underflow Leads to Out-of-Bounds Access in XChaCha20-Poly1305 Decrypt. This issue is hit specifically with a call to the function wc_XChaCha20Poly1305_Decrypt() which is not used with TLS connections, only from direct calls from an application. Thanks to Luigino Camastra from Aisle Research for the report. Fixed in PR 9223. -* [Low CVE-2025-7396] In wolfSSL 5.8.0 the option of hardening the C implementation of Curve25519 private key operations was added with the addition of blinding support (https://www.wolfssl.com/curve25519-blinding-support-added-in-wolfssl-5-8-0/). In wolfSSL release 5.8.2 that blinding support is turned on by default in applicable builds. The blinding configure option is only for the base C implementation of Curve25519. It is not needed, or available with; ARM assembly builds, Intel assembly builds, and the small Curve25519 feature. While the attack would be very difficult to execute in practice, enabling blinding provides an additional layer of protection for devices that may be more susceptible to physical access or side-channel observation. Thanks to Arnaud Varillon, Laurent Sauvage, and Allan Delautre from Telecom Paris for the report. - -Blinding enabled by default in PR https://github.com/wolfSSL/wolfssl/pull/8736 +* [Low CVE-2025-11932] Timing Side-Channel in PSK Binder Verification. The server previously verified the TLS 1.3 PSK binder using a non-constant time method which could potentially leak information about the PSK binder. Thanks to Luigino Camastra from Aisle Research for the report. Fixed in PR 9223. +* [Low CVE-2025-12889] With TLS 1.2 connections a client can use any digest, specifically a weaker digest, rather than those in the CertificateRequest. Thanks to Jaehun Lee from Pohang University of Science and Technology (POSTECH) for the report. Fixed in PR 9395 ## New Features -* Multiple sessions are now supported in the sniffer due to the removal of a cached check. (PR #8723) -* New API ssl_RemoveSession() has been implemented for sniffer cleanup operations. (PR #8768) -* The new ASN X509 API, `wc_GetSubjectPubKeyInfoDerFromCert`, has been introduced for retrieving public key information from certificates. (PR #8758) -* `wc_PKCS12_create()` has been enhanced to support PBE_AES(256|128)_CBC key and certificate encryptions. (PR #8782, PR #8822, PR #8859) -* `wc_PKCS7_DecodeEncryptedKeyPackage()` has been added for decoding encrypted key packages. (PR #8976) -* All AES, SHA, and HMAC functionality has been implemented within the Linux Kernel Module. (PR #8998) -* Additions to the compatibility layer have been introduced for X.509 extensions and RSA PSS. Adding the API i2d_PrivateKey_bio, BN_ucmp and X509v3_get_ext_by_NID. (PR #8897) -* Added support for STM32N6. (PR #8914) -* Implemented SHA-256 for PPC 32 assembly. (PR #8894) +* New ML-KEM / ML-DSA APIs and seed/import PKCS8 support; added _new/_delete APIs for ML-KEM/ML-DSA. (PR 9039, 9000, 9049) +* Initial wolfCrypt FreeBSD kernel module support (PR 9392) +* Expanded PKCS7/CMS capabilities: decode SymmetricKeyPackage / OneSymmetricKey, add wc_PKCS7_GetEnvelopedDataKariRid, and allow PKCS7 builds with AES keywrap unset. (PR 9018, 9029, 9032) +* Add custom AES key wrap/unwrap callbacks and crypto callback copy/free operations. (PR 9002, 9309) +* Add support for certificate_authorities extension in ClientHello and certificate manager CA-type selection/unloading. (PR 9209, 9046) +* Large expansion of Rust wrapper modules: random, aes, rsa, ecc, dh, sha, hmac, cmac, ed25519/ed448, pbkdf2/PKCS#12, kdf/prf, SRTP KDFs, and conditional compilation options. (PR 9191, 9212, 9273, 9306, 9320, 9328, 9368, 9389, 9357, 9433) +* Rust: support optional heap and dev_id parameters and enable conditional compilation based on C build options. (PR 9407, 9433) +* STM32 fixes (benchmarking and platform fixes) and PSoC6 hardware acceleration additions. (PR 9228, 9256, 9185) +* STM32U5 added support for SAES and DHUK. (PR 9087) +* Add --enable-curl=tiny option for a smaller build when used with cURL. (PR 9174) ## Improvements / Optimizations - -### Linux Kernel Module (LinuxKM) Enhancements -* Registered DH and FFDHE for the Linux Kernel Module. (PR #8707) -* Implemented fixes for standard RNG in the Linux Kernel Module. (PR #8718) -* Added an ECDSA workaround for the Linux Kernel Module. (PR #8727) -* Added more PKCS1 pad SHA variants for RSA in the Linux Kernel Module. (PR #8730) -* Set default priority to 100000 for LKCAPI in the Linux Kernel Module. (PR #8740) -* Ensured ECDH never has FIPS enabled in the Linux Kernel Module. (PR #8751) -* Implemented further Linux Kernel Module and SP tweaks. (PR #8773) -* Added sig_alg support for Linux 6.13 RSA in the Linux Kernel Module. (PR #8796) -* Optimized wc_linuxkm_fpu_state_assoc. (PR #8828) -* Ensured DRBG is multithread-round-1 in the Linux Kernel Module. (PR #8840) -* Prevented toggling of fips_enabled in the Linux Kernel Module. (PR #8873) -* Refactored drbg_ctx clear in the Linux Kernel Module. (PR #8876) -* Set sig_alg max_size and digest_size callbacks for RSA in the Linux Kernel Module. (PR #8915) -* Added get_random_bytes for the Linux Kernel Module. (PR #8943) -* Implemented distro fix for the Linux Kernel Module. (PR #8994) -* Fixed page-flags-h in the Linux Kernel Module. (PR #9001) -* Added MODULE_LICENSE for the Linux Kernel Module. (PR #9005) - -### Post-Quantum Cryptography (PQC) & Asymmetric Algorithms -* Kyber has been updated to the MLKEM ARM file for Zephyr (PR #8781) -* Backward compatibility has been implemented for ML_KEM IDs (PR #8827) -* ASN.1 is now ensured to be enabled when only building PQ algorithms (PR #8884) -* Building LMS with verify-only has been fixed (PR #8913) -* Parameters for LMS SHA-256_192 have been corrected (PR #8912) -* State can now be saved with the private key for LMS (PR #8836) -* Support for OpenSSL format has been added for ML-DSA/Dilithium (PR #8947) -* `dilithium_coeff_eta2[]` has been explicitly declared as signed (PR #8955) - -### Build System & Portability -* Prepared for the inclusion of v5.8.0 in the Ada Alire index. (PR #8714) -* Introduced a new build option to allow reuse of the Windows crypt provider handle. (PR #8706) -* Introduced general fixes for various build configurations. (PR #8763) -* Made improvements for portability using older GCC 4.8.2. (PR #8753) -* Macro guards updated to allow tests to build with opensslall and no server. (PR #8776) -* Added a check for STDC_NO_ATOMICS macro before use of atomics. (PR #8885) -* Introduced CMakePresets.json and CMakeSettings.json. (PR #8905) -* Added an option to not use constant time code with min/max. (PR #8830) -* Implemented proper MacOS dispatch for conditional signal/wait. (PR #8928) -* Disabled MD5 by default for both general and CMake builds. (PR #8895, PR #8948) -* Improved to allow building OPENSSL_EXTRA without KEEP_PEER_CERT. (PR #8926) -* Added introspection for Intel and ARM assembly speedups. (PR #8954) -* Fixed cURL config to set HAVE_EX_DATA and HAVE_ALPN. (PR #8973) -* Moved FREESCALE forced algorithm HAVE_ECC to IDE/MQX/user_settings.h. (PR #8977) - -### Testing & Debugging -* Fixed the exit status for testwolfcrypt. (PR #8762) -* Added WOLFSSL_DEBUG_PRINTF and WOLFSSL_DEBUG_CERTIFICATE_LOADS for improved debugging output. (PR #8769, PR #8770) -* Guarded some benchmark tests with NO_SW_BENCH. (PR #8760) -* Added an additional unit test for wolfcrypt PKCS12 file to improve code coverage. (PR #8831) -* Added an additional unit test for increased DH code coverage. (PR #8837) -* Adjusted for warnings with NO_TLS build and added GitHub actions test. (PR #8851) -* Added additional compatibility layer RAND tests. (PR #8852) -* Added an API unit test for checking domain name. (PR #8863) -* Added bind v9.18.33 testing. (PR #8888) -* Fixed issue with benchmark help options and descriptions not lining up. (PR #8957) - -### Certificates & ASN.1 -* Changed the algorithm for sum in ASN.1 OIDs. (PR #8655) -* Updated PKCS7 to use X509 STORE for internal verification. (PR #8748) -* Improved handling of temporary buffer size for X509 extension printing. (PR #8710) -* Marked IP address as WOLFSSL_V_ASN1_OCTET_STRING for ALT_NAMES_OID. (PR #8842) -* Fixed printing empty names in certificates. (PR #8880) -* Allowed CA:FALSE on wolftpm. (PR #8925) -* Fixed several inconsistent function prototype parameter names in wc/asn. (PR #8949) -* Accounted for custom extensions when creating a Cert from a WOLFSSL_X509. (PR #8960) - -### TLS/DTLS & Handshake -* Checked group correctness outside of TLS 1.3 too for TLSX_UseSupportedCurve. (PR #8785) -* Dropped records that span datagrams in DTLS. (PR #8642) -* Implemented WC_NID_netscape_cert_type. (PR #8800) -* Refactored GetHandshakeHeader/GetHandShakeHeader into one function. (PR #8787) -* Correctly set the current peer in dtlsProcessPendingPeer. (PR #8848) -* Fixed set_groups for TLS. (PR #8824) -* Allowed trusted_ca_keys with TLSv1.3. (PR #8860) -* Moved Dtls13NewEpoch into DeriveTls13Keys. (PR #8858) -* Cleared tls1_3 on downgrade. (PR #8861) -* Always sent ACKs on detected retransmission for DTLS1.3. (PR #8882) -* Removed DTLS from echo examples. (PR #8889) -* Recalculated suites at SSL initialization. (PR #8757) -* No longer using BIO for ALPN. (PR #8969) -* Fixed wolfSSL_BIO_new_connect's handling of IPV6 addresses. (PR #8815) -* Memory Management & Optimizations -* Performed small stack refactors, improved stack size with mlkem and dilithium, and added additional tests. (PR #8779) -* Implemented FREE_MP_INT_SIZE in heap math. (PR #8881) -* Detected correct MAX_ENCODED_SIG_SZ based on max support in math lib. (PR #8931) -* Fixed improper access of sp_int_minimal using sp_int. (PR #8985) - -### Cryptography & Hash Functions -* Implemented WC_SIPHASH_NO_ASM for not using assembly optimizations with siphash. (PR #8789, PR #8791) -* Added missing DH_MAX_SIZE define for FIPS and corrected wolfssl.rc FILETYPE to VFT_DLL. (PR #8794) -* Implemented WC_SHA3_NO_ASM for not using assembly with SHA3. (PR #8817) -* Improved Aarch64 XFENCE. (PR #8832) -* Omitted frame pointer for ARM32/Thumb2/RISC-V 64 assembly. (PR #8893) -* Fixed branch instruction in ARMv7a ASM. (PR #8933) -* Enabled EVP HMAC to work with WOLFSSL_HMAC_COPY_HASH. (PR #8944) -* Platform-Specific & Hardware Integration -* Added HAVE_HKDF for wolfssl_test and explicit support for ESP32P4. (PR #8742) -* Corrected Espressif default time setting. (PR #8829) -* Made wc_tsip_* APIs public. (PR #8717) -* Improved PlatformIO Certificate Bundle Support. (PR #8847) -* Fixed the TSIP TLS example program. (PR #8857) -* Added crypto callback functions for TROPIC01 secure element. (PR #8812) -* Added Renesas RX TSIP AES CTR support. (PR #8854) -* Fixed TSIP port using crypto callback. (PR #8937) - -### General Improvements & Refactoring -* Attempted wolfssl_read_bio_file in read_bio even when XFSEEK is available. (PR #8703) -* Refactored GetHandshakeHeader/GetHandShakeHeader into one function. (PR #8787) -* Updated libspdm from 3.3.0 to 3.7.0. (PR #8906) -* Fixed missing dashes on the end of header and footer for Falcon PEM key. (PR #8904) -* Fixed minor code typos for macos signal and types.h max block size. (PR #8934) -* Make the API wolfSSL_X509_STORE_CTX_get_error accessible to more build configurations for ease of getting the "store" error code and depth with certificate failure callback implementations. (PR #8903) +* Regression test fixes and expansion: TLS 1.3/1.2 tests, ARDUINO examples, libssh2 tests, hostap workflows, and nightly test improvements. (PR 9096, 9141, 9091, 9122, 9388) +* Improved test ordering and CI test stability (random tests run order changes, FIPS test fixes). (PR 9204, 9257) +* Docs and readme fixes, docstring updates, AsconAEAD comment placement, and example certificate renewals. (PR 9131, 9293, 9262, 9429) +* Updated GPL exception lists (GPLv2 and GPLv3 exception updates: add Fetchmail and OpenVPN). (PR 9398, 9413) +* Introduced WOLFSSL_DEBUG_CERTS and additional debug/logging refinements. (PR 8902, 9055) +* Expanded crypto-callback support (SHA family, HKDF, SHA-224, sha512_family digest selection) and improved crypto-only build cases. (PR 9070, 9252, 9271, 9100, 9194) +* AES & HW offload improvements including AES-CTR support in PKCS11 driver and AES ECB offload sizing fix. (PR 9277, 9364) +* ESP32: PSRAM allocator support and SHA HW fixes for ESP-IDF v6/v5. (PR 8987, 9225, 9264) +* Renesas FSP / RA examples updated and security-module TLS context improvements. (PR 9047, 9010, 9158, 9150) +* Broad configure/CMake/Autotools workflow improvements (Apple options tracking, Watcom pinning, Debian packaging, ESP-IDF pinning). (PR 9037, 9167, 9161, 9264) +* New assembly introspection / performance helpers for RISC-V and PPC32; benchmarking enhancements (cycle counts). (PR 9101, 9317) +* Update to SGX build for using assembly optimizations. (PR 8463, 9138) +* Testing with Fil-C compiler version to 0.674 (PR 9396) +* Refactors and compressing of small stack code (PR 9153) ## Bug Fixes -* Fixed issues to support _WIN32_WCE (VS 2008 with WinCE 6.0/7.0). (PR #8709) -* Fixed STM32 Hash with IRQ enabled. (PR #8705) -* Fixed raw hash when using crypto instructions on RISC-V 64-bit. (PR #8733) -* Fixed ECDH decode secret in the Linux Kernel Module. (PR #8729) -* Passed in the correct hash type to wolfSSL_RSA_verify_ex. (PR #8726) -* Fixed issues for Intel QuickAssist latest driver (4.28). (PR #8728) -* Speculative fix for CodeSonar overflow issue in ssl_certman.c. (PR #8715) -* Fixed Arduino progmem print and AVR WOLFSSL_USER_IO. (PR #8668) -* Correctly advanced the index in wc_HKDF_Expand_ex. (PR #8737) -* Fixed STM32 hash status check logic, including NO_AES_192 and NO_AES_256. (PR #8732) -* Added missing call to wolfSSL_RefFree in FreeCRL to prevent memory leaks. (PR #8750) -* Fixed sanity check on --group with unit test app and null sanity check with des decrypt. (PR #8711) -* Fixed Curve25519 and static ephemeral issue with blinding. (PR #8766) -* Fixed edge case issue with STM32 AES GCM auth padding. (PR #8745) -* Removed redefinition of MlKemKey and fixed build issue in benchmark. (PR #8755) -* Used proper heap hint when freeing CRL in error case. (PR #8713) -* Added support for no malloc with wc_CheckCertSigPubKey. (PR #8725) -* Fixed C# wrapper Release build. (PR #8802) -* Handled malformed CCS and CCS before CH in TLS1.3. (PR #8788) -* Fixed ML-DSA with WOLFSSL_DILITHIUM_NO_SIGN. (PR #8798) -* Fixed AesGcmCrypt_1 no-stream in the Linux Kernel Module. (PR #8814) -* Fixed return value usage for crypto_sig_sign in the Linux Kernel Module. (PR #8816) -* Fixed issue with CSharp and Windows CE with conversion of ASCII and Unicode. (PR #8799) -* Fixed Renesas SCE on RA6M4. (PR #8838) -* Fixed tests for different configs for ML-DSA. (PR #8865) -* Fixed bug in ParseCRL_Extensions around the size of a CRL number handled and CRL number OID. (PR #8587) -* Fixed uninitialized wc_FreeRng in prime_test. (PR #8886) -* Fixed ECC configuration issues with ECC verify only and no RNG. (PR #8901) -* Fixed issues with max size, openssl.test netcat, and clang-tidy. (PR #8909) -* Fixed for casting down and uninit issues in Dilithium/ML-DSA. (PR #8868) -* Fixed memory allocation failure testing and related unit test cases. (PR #8945, PR #8952) -* Fixed build issue with ML-DSA 44 only. (PR #8981) -* Fixed possible memory leak with X509 reference counter when using x509small. (PR #8982) +* Removed the test feature using popen when defining the macro WOLFSSL_USE_POPEN_HOST and not having HAVE_GETADDRINFO defined, along with having the macro HAVE_HTTP_CLIENT set. There was the potential for vulnerable behavior with the use of popen when the API wolfSSL_BIO_new_connect() was called with this specific build. This exact build configuration is only intended for testing with QEMU and is not enabled with any autoconf/cmake flags. Thanks to linraymond2006 for the report. (PR 9038) +* Fix for C# wrapper Ed25519 potential crash and heap overwrite with raw public key import when using the API Ed25519ImportPublic.This was a broken API with the C# wrapper that would crash on use. Thanks to Luigino Camastra from Aisle Research for the bug report. (PR 9291) +* Coverity, cppcheck, MISRA, clang-tidy, ZeroPath and other static-analysis driven fixes across the codebase. (PR 9006, 9078, 9068, 9265, 9324) +* TLS 1.2/DTLS improvements: client message order checks, DTLS cookie/exchange and replay protections, better DTLS early-data handling. (PR 9387, 9253, 9205, 9367) +* Improved X.509 & cert handling: allow larger pathLen in Basic Constraints, restore inner server name for ECH, retrying cert candidate chains. (PR 8890, 9234, 8692) +* Sniffer robustness: fix infinite recursion, better handling of OOO appData and partial overlaps, and improved retransmission detection. (PR 9051, 9106, 9140, 9094) +* Numerous linuxkm (kernel-mode) fixes, relocation/PIE normalization, and FIPS-related build tweaks across many iterations. (PR 9025, 9035, 9067, 9111, 9121) +* ML-KEM/Kyber and ML-DSA fixes for out-of-bounds and seed-import correctness; multiple ML-related safety fixes. (PR 9142, 9105, 9439) +* Avoid uninitialized-variable and GCC warnings; several fixes for undefined-shift/overflow issues. (PR 9020, 9372, 9195) +* Memory & leak fixes in X509 verification and various struct sizing fixes for WOLFSSL_NO_MALLOC usage. (PR 9258, 9036) +* Fixed RSA / signing / verify-only warnings allowing WOLFSSL_NO_CT_OPS when WOLFSSL_RSA_VERIFY_ONLY is used and API cleanups for using const. (PR 9031, 9263) For additional vulnerability information visit the vulnerability page at: https://www.wolfssl.com/docs/security-vulnerabilities/ diff --git a/configure.ac b/configure.ac index f0cb03d04..4e7517622 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ # AC_COPYRIGHT([Copyright (C) 2006-2025 wolfSSL Inc.]) AC_PREREQ([2.69]) -AC_INIT([wolfssl],[5.8.2],[https://github.com/wolfssl/wolfssl/issues],[wolfssl],[https://www.wolfssl.com]) +AC_INIT([wolfssl],[5.8.4],[https://github.com/wolfssl/wolfssl/issues],[wolfssl],[https://www.wolfssl.com]) AC_CONFIG_AUX_DIR([build-aux]) # Inhibit unwanted regeneration of autotools artifacts by Makefile. @@ -63,7 +63,7 @@ WOLFSSL_LIBRARY_VERSION_SECOND=0 # increment if source code has changed # set to zero if WOLFSSL_LIBRARY_VERSION_FIRST is incremented or # WOLFSSL_LIBRARY_VERSION_SECOND is incremented -WOLFSSL_LIBRARY_VERSION_THIRD=0 +WOLFSSL_LIBRARY_VERSION_THIRD=1 WOLFSSL_LIBRARY_VERSION=${WOLFSSL_LIBRARY_VERSION_FIRST}:${WOLFSSL_LIBRARY_VERSION_SECOND}:${WOLFSSL_LIBRARY_VERSION_THIRD} AC_SUBST([WOLFSSL_LIBRARY_VERSION_FIRST]) diff --git a/wolfssl.rc b/wolfssl.rc index 989aa41f7abd191991a26119f80cbc441dbc68f4..a6e04d3374c7eecca6b00865344657226be1cfeb 100644 GIT binary patch delta 38 rcmdm^wnuHlBo0QC$&)z@8BI1H<%nhhQi{B98G&MoywaPs_=Q*i@?Q$h delta 38 rcmdm^wnuHlBo0QS$&)z@8I3j{<%nhhQi{B98G&MoywaPs_=Q*i@x2Ph diff --git a/wolfssl/version.h b/wolfssl/version.h index 656a12e68..ac6b7f933 100644 --- a/wolfssl/version.h +++ b/wolfssl/version.h @@ -28,8 +28,8 @@ extern "C" { #endif -#define LIBWOLFSSL_VERSION_STRING "5.8.2" -#define LIBWOLFSSL_VERSION_HEX 0x05008002 +#define LIBWOLFSSL_VERSION_STRING "5.8.4" +#define LIBWOLFSSL_VERSION_HEX 0x05008004 #ifdef __cplusplus }