F5-K000132946: Use After Free
The public API function BIOnewNDEF is a helper function used for streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL to support the SMIME, CMS and PKCS7 streaming capabilities, but may also be called directly by end user applications. The function receives a BIO from the caller, prepends a new BIOfasn1 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 goes on to call BIOpop() on the BIO then a use-after-free will occur. This will most likely result in a crash. This scenario occurs directly in the internal function B64writeASN1() which may cause BIOnewNDEF() to be called and will subsequently call BIOpop() on the BIO. This internal function is in turn called by the public API functions PEMwritebioASN1stream, PEMwritebioCMSstream, PEMwritebioPKCS7stream, SMIMEwriteASN1, SMIMEwriteCMS and SMIMEwritePKCS7. Other public API functions that may be impacted by this include i2dASN1biostream, BIOnewCMS, BIOnewPKCS7, i2dCMSbiostream and i2dPKCS7biostream. The OpenSSL cms and smime command line applications are similarly affected.
Affected Software
Event History
Frequently Asked Questions
What is the severity of F5-K000132946?
The severity of F5-K000132946 is classified as high due to its potential impact on the confidentiality and integrity of sensitive data.
How do I fix F5-K000132946?
To fix F5-K000132946, you should upgrade to a patched version of the affected F5 BIG-IP or BIG-IQ software as described in the advisory.
Which versions are affected by F5-K000132946?
F5-K000132946 affects multiple versions of F5 BIG-IP and BIG-IQ, including versions 17.0.0 to 17.1.0, 16.1.0 to 16.1.3, and several earlier versions.
What products are impacted by F5-K000132946?
F5-K000132946 impacts F5 BIG-IP, BIG-IQ Centralized Management, F5OS-A, and Traffix SDC products.
Is there a workaround for F5-K000132946?
There are no known workarounds for F5-K000132946; upgrading to a secure version is the recommended action.