This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 916424f03 crypto/mbedtls: upgrade Mbed TLS to 3.6.5
916424f03 is described below

commit 916424f0306d9b6446954f05586160f3b36a5343
Author: makejian <[email protected]>
AuthorDate: Wed Nov 25 11:00:49 2026 +0800

    crypto/mbedtls: upgrade Mbed TLS to 3.6.5
    
    Bump the build-time fetched Mbed TLS version from 3.6.2 to 3.6.5, a
    patch-level update on the 3.6 LTS branch.  The public headers the alt
    layer implements (aes.h, cmac.h, sha*.h, ...) are unchanged between
    the two releases, and the three carry-in patches still apply on 3.6.5
    (0003 with a 36-line offset).
    
    Along the bump:
    
    - crypto/controlse: track the new version in the MBEDTLS_VERSION
      dependency, in lockstep with the 3.4.0 -> 3.6.2 upgrade.
    
    - Expose MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED in Kconfig: the
      mbedtls_config.h mapping already existed but there was no way to
      enable it.
    
    - Expose MBEDTLS_SSL_KEYING_MATERIAL_EXPORT, new in 3.6.4, giving
      access to mbedtls_ssl_export_keying_material() (RFC 5705 / RFC 8446
      section 7.5), and map it in mbedtls_config.h.
    
    Note for TLS client users: since 3.6.3 a client with
    MBEDTLS_SSL_VERIFY_REQUIRED that never calls mbedtls_ssl_set_hostname()
    fails the handshake with
    MBEDTLS_ERR_SSL_CERTIFICATE_VERIFICATION_WITHOUT_HOSTNAME (follow-up
    to CVE-2025-27809).  Set the hostname, or define
    MBEDTLS_SSL_CLI_ALLOW_WEAK_CERTIFICATE_VERIFICATION_WITHOUT_HOSTNAME
    to restore the previous behavior.
    
    Notable fixes carried by 3.6.3 -> 3.6.5: CBC-PKCS7 padding timing
    side channels (CVE-2025-49087, CVE-2025-59438), modular inversion
    timing (CVE-2025-54764), LMS import/verify (CVE-2025-49600,
    CVE-2025-49601), x509 name parsing use-after-free (CVE-2025-47917),
    PEM integer underflow (CVE-2025-52497), reassembly of fragmented TLS
    handshake messages, and mbedtls_mpi_gcd() now always returns a
    non-negative result.
    
    Signed-off-by: makejian <[email protected]>
---
 crypto/controlse/Kconfig                        |  2 +-
 crypto/mbedtls/Kconfig                          | 11 ++++++++++-
 crypto/mbedtls/include/mbedtls/mbedtls_config.h | 16 ++++++++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/crypto/controlse/Kconfig b/crypto/controlse/Kconfig
index 76b85ec57..e60a0f6a4 100644
--- a/crypto/controlse/Kconfig
+++ b/crypto/controlse/Kconfig
@@ -8,7 +8,7 @@ config CRYPTO_CONTROLSE
        default n
        depends on DEV_SE05X
        depends on CRYPTO_MBEDTLS
-       depends on MBEDTLS_VERSION = "3.6.2"
+       depends on MBEDTLS_VERSION = "3.6.5"
        select MBEDTLS_ECDSA_C
        select MBEDTLS_ECP_C
        select MBEDTLS_ECP_DP_SECP256R1_ENABLED
diff --git a/crypto/mbedtls/Kconfig b/crypto/mbedtls/Kconfig
index bb203ae55..b1cea889b 100644
--- a/crypto/mbedtls/Kconfig
+++ b/crypto/mbedtls/Kconfig
@@ -13,7 +13,7 @@ if CRYPTO_MBEDTLS
 
 config MBEDTLS_VERSION
        string "Mbed TLS Version"
-       default "3.6.2"
+       default "3.6.5"
 
 config MBEDTLS_MINIMAL
        bool "Minimal configuration"
@@ -339,6 +339,11 @@ config MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
        depends on MBEDTLS_ECDH_C && MBEDTLS_ECDSA_C
        default !MBEDTLS_MINIMAL
 
+config MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
+       bool "Enable the ECDH-ECDSA based ciphersuite modes in SSL / TLS."
+       depends on MBEDTLS_ECDH_C && MBEDTLS_ECDSA_C
+       default !MBEDTLS_MINIMAL
+
 config MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
        bool "Enable the ECDH-RSA based ciphersuite modes in SSL / TLS."
        depends on MBEDTLS_ECDH_C
@@ -662,6 +667,10 @@ config MBEDTLS_SSL_COOKIE_C
        bool "Enable SSL cookie implementation."
        default !MBEDTLS_MINIMAL
 
+config MBEDTLS_SSL_KEYING_MATERIAL_EXPORT
+       bool "Enable export of keying material (RFC 5705)."
+       default !MBEDTLS_MINIMAL
+
 config MBEDTLS_SSL_TICKET_C
        bool "Enable an implementation of TLS server-side callbacks for session 
tickets."
        depends on (MBEDTLS_CIPHER_C || MBEDTLS_USE_PSA_CRYPTO) && \
diff --git a/crypto/mbedtls/include/mbedtls/mbedtls_config.h 
b/crypto/mbedtls/include/mbedtls/mbedtls_config.h
index d57fde1a8..6eef2fbdb 100644
--- a/crypto/mbedtls/include/mbedtls/mbedtls_config.h
+++ b/crypto/mbedtls/include/mbedtls/mbedtls_config.h
@@ -2005,6 +2005,22 @@
 #define MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
 #endif
 
+/**
+ * \def MBEDTLS_SSL_KEYING_MATERIAL_EXPORT
+ *
+ * When this option is enabled, the client and server can extract additional
+ * shared symmetric keys after an SSL handshake using the function
+ * mbedtls_ssl_export_keying_material().
+ *
+ * The process for deriving the keys is specified in RFC 5705 for TLS 1.2 and
+ * in RFC 8446, Section 7.5, for TLS 1.3.
+ *
+ * Comment this macro to disable mbedtls_ssl_export_keying_material().
+ */
+#ifdef CONFIG_MBEDTLS_SSL_KEYING_MATERIAL_EXPORT
+#define MBEDTLS_SSL_KEYING_MATERIAL_EXPORT
+#endif
+
 /**
  * \def MBEDTLS_SSL_RENEGOTIATION
  *

Reply via email to