openssl/providers/implementations
zekeevans-mf bcb61b39b4 Add deep copy of propq field in mac_dupctx to avoid double free
mac_dupctx() should make a copy of the propq field. Currently it
does a shallow copy which can result in a double free and crash.
The double free occurs when using a provider property string.
For example, passing in "fips=no" to SSL_CTX_new_ex() causes the
propq field to get set to that value. When mac_dupctx() and
mac_freectx() is called (ie: in SSL_write()) it ends up freeing
the reference of the original object instead of a copy.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13926)
2021-02-18 12:11:53 +01:00
..
asymciphers Move the PROV_R reason codes to a public header 2021-02-11 09:34:31 +01:00
ciphers Fix external symbols in the provider cipher implementations. 2021-02-18 19:32:20 +10:00
digests Move the PROV_R reason codes to a public header 2021-02-11 09:34:31 +01:00
encode_decode Various cleanup of PROV_R_ reason codes 2021-02-11 09:34:31 +01:00
exchange Move the PROV_R reason codes to a public header 2021-02-11 09:34:31 +01:00
include/prov Fix external symbols in the provider cipher implementations. 2021-02-18 19:32:20 +10:00
kdfs Various cleanup of PROV_R_ reason codes 2021-02-11 09:34:31 +01:00
kem Move the PROV_R reason codes to a public header 2021-02-11 09:34:31 +01:00
keymgmt dsa_check: Perform simple parameter check if seed is not available 2021-02-18 11:02:26 +01:00
macs Various cleanup of PROV_R_ reason codes 2021-02-11 09:34:31 +01:00
rands rand: update DRBGs to use the get_entropy call for seeding 2021-02-17 13:10:49 +10:00
signature Add deep copy of propq field in mac_dupctx to avoid double free 2021-02-18 12:11:53 +01:00
storemgmt Rename OSSL_ENCODER_CTX_new_by_EVP_PKEY and OSSL_DECODER_CTX_new_by_EVP_PKEY 2021-02-17 15:26:12 +01:00
build.info Add KEM (Key encapsulation mechanism) support to providers 2020-09-19 18:08:46 +10:00