]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a key repointing in various ciphers
authorNeil Horman <nhorman@openssl.org>
Tue, 12 Sep 2023 21:09:06 +0000 (17:09 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 5 Jan 2024 11:44:13 +0000 (12:44 +0100)
commit0398bc20080de037a8433fe81cfdef3ba0ec9d4c
treeda1730e74976556e7ac0fa79e1866124580aca1c
parentf9163efe96e218adeae2a0dc6a4cbef568f395ee
Fix a key repointing in various ciphers

In the dupctx fixups I missed a pointer that needed to be repointed to
the surrounding structures AES_KEY structure for the sm4/aes/aria
ccm/gcm variants.  This caused a colliding use of the key and possible
use after free issues.

Fixes #22076

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23102)
providers/implementations/ciphers/cipher_aes_gcm.c
providers/implementations/ciphers/cipher_aria_ccm.c
providers/implementations/ciphers/cipher_aria_gcm.c