summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authortb <>2020-06-05 18:44:42 +0000
committertb <>2020-06-05 18:44:42 +0000
commitf599916be5b15add90651fc8802c4f96fc257310 (patch)
tree61efb953452a8c0ac39e8e78cdaefd14329c433c /src/lib/libssl/s3_lib.c
parent95fc51a1214a75a79263e9b85906e144612c01f1 (diff)
downloadopenbsd-f599916be5b15add90651fc8802c4f96fc257310.tar.gz
openbsd-f599916be5b15add90651fc8802c4f96fc257310.tar.bz2
openbsd-f599916be5b15add90651fc8802c4f96fc257310.zip
Add a custom copy handler for AES key wrap
This is necessary because ctx->cipher_data is an EVP_AES_WRAP_CTX containing a pointer to ctx->iv. EVP_CIPHER_CTX_copy() uses memcpy to copy cipher_data to the target struct. The result is that the copy contains a pointer to the wrong struct, which then leads to a use-after-free. The custom copy handler fixes things up to avoid that. Issue reported by Guido Vranken ok beck inoguchi jsing
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions