F5-K000132946: Use After Free

Published Mar 13, 2023
·
Updated

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

9 affected componentsFixes available
F5 BIG-IP>=17.0.0<=17.1.0
17.1.0.1
F5 BIG-IP>=16.1.0<=16.1.3
16.1.4
F5 BIG-IP>=15.1.0<=15.1.9
15.1.10
F5 BIG-IP>=14.1.0<=14.1.5
F5 BIG-IP>=13.1.0<=13.1.5
F5 BIG-IQ Centralized Management>=8.0.0<=8.4.0
F5 BIG-IQ Centralized Management=7.1.0
F5 F5OS-A=1.3.1
F5 Traffix SDC=5.2.0

Event History

Mar 13, 2023
Advisory Published
via F5·04:46 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What products are impacted by F5-K000132946?

F5-K000132946 impacts F5 BIG-IP, BIG-IQ Centralized Management, F5OS-A, and Traffix SDC products.

5

Is there a workaround for F5-K000132946?

There are no known workarounds for F5-K000132946; upgrading to a secure version is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203