[openssl] openssl-3.0 update

Richard Levitte levitte at openssl.org
Mon Oct 18 05:58:21 UTC 2021


The branch openssl-3.0 has been updated
       via  26d2016d5b81d78de90f075d630d38fe2badb84f (commit)
      from  31287743c07cef63a2bc9b31a393a7e3b2527f88 (commit)


- Log -----------------------------------------------------------------
commit 26d2016d5b81d78de90f075d630d38fe2badb84f
Author: Richard Levitte <levitte at openssl.org>
Date:   Sat Oct 16 10:22:42 2021 +0200

    Fix lock leak in evp_keymgmt_util_export_to_provider()
    
    Fixes #16847
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16849)
    
    (cherry picked from commit fb0f65fff831d9294e34b6ef6f579c157db54b04)

-----------------------------------------------------------------------

Summary of changes:
 crypto/evp/keymgmt_lib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/evp/keymgmt_lib.c b/crypto/evp/keymgmt_lib.c
index 32e4fbcbaa..875c9a83de 100644
--- a/crypto/evp/keymgmt_lib.c
+++ b/crypto/evp/keymgmt_lib.c
@@ -197,6 +197,7 @@ void *evp_keymgmt_util_export_to_provider(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt)
 
     /* Add the new export to the operation cache */
     if (!evp_keymgmt_util_cache_keydata(pk, keymgmt, import_data.keydata)) {
+        CRYPTO_THREAD_unlock(pk->lock);
         evp_keymgmt_freedata(keymgmt, import_data.keydata);
         return NULL;
     }


More information about the openssl-commits mailing list