ADVISORIES

Red Hat VEX

RHVEX-CVE-2023-0215

openssl: use-after-free following BIO_new_NDEF

Moderate No fix available CVE-2023-0215

Details

A use-after-free vulnerability was found in OpenSSL's BIO_new_NDEF function. The public API function BIO_new_NDEF is a helper function used for streaming ASN.1 data via a BIO. It is primarily used internally by OpenSSL to support the SMIME, CMS, and PKCS7 streaming capabilities, but it may also be called directly by end-user applications. The function receives a BIO from the caller, prepends a new BIO_f_asn1 filter BIO onto the front of it to form a BIO chain, and then returns the new head of the BIO chain to the caller. Under certain conditions. For example, if a CMS recipient public key is invalid, the new filter BIO is freed, and the function returns a NULL result indicating a failure. However, in this case, the BIO chain is not properly cleaned up, and the BIO passed by the caller still retains internal pointers to the previously freed filter BIO. If the caller then calls BIO_pop() on the BIO, a use-after-free will occur, possibly resulting in a crash.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:6openssl
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6openssl-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6openssl-perl
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6openssl-static
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7AAVMF
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7OVMF
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7openssl
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7openssl-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7openssl-libs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7openssl-perl
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7openssl-static
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:7ovmf
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8compat-openssl10
All versions, will not be fixed
Red Hat:enterprise_linux:9compat-openssl11
All versions, will not be fixed
Red Hat:enterprise_linux:9shim
All versions, will not be fixed
Red Hat:enterprise_linux:9shim-aa64
All versions, will not be fixed
Red Hat:enterprise_linux:9shim-x64
All versions, will not be fixed

References