From 3c30a7aedaa2e396c17a66031d059620870636c1 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 9 Feb 2021 18:52:49 +0100 Subject: [PATCH] Changelog entry for RSA mutex usage fix Signed-off-by: Gilles Peskine --- ChangeLog.d/rsa-mutex.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ChangeLog.d/rsa-mutex.txt diff --git a/ChangeLog.d/rsa-mutex.txt b/ChangeLog.d/rsa-mutex.txt new file mode 100644 index 000000000..bafb7b2d5 --- /dev/null +++ b/ChangeLog.d/rsa-mutex.txt @@ -0,0 +1,8 @@ +Bugfix + * Ensure that calling mbedtls_rsa_free() twice is safe. This happens + when some Mbed TLS library functions fail. Such a double-free was + not safe when MBEDTLS_THREADING_C was enabled on platforms where + freeing a mutex twice is not safe. + * Fix a resource leak in a bad-arguments case of mbedtls_rsa_gen_key() + when MBEDTLS_THREADING_C is enabled on platforms where initializing + a mutex allocates resources.