You can now sign in with a passkey, no password needed, or protect your account with a second factor. Learn more
OpenSSL: Use-after-free following BIO_new_NDEF
Download as CSAF file (VEX, JSON)Machine-readable version of this assessment in the OASIS CSAF 2.0 standard, for example for your vulnerability scanner. You may pass the file on.
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 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 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 goes on to call BIO_pop() 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 B64_write_ASN1() which may cause BIO_new_NDEF() to be called and will subsequently call BIO_pop() on the BIO. This internal function is in turn called by the public API functions PEM_write_bio_ASN1_stream, PEM_write_bio_CMS_stream, PEM_write_bio_PKCS7_stream, SMIME_write_ASN1, SMIME_write_CMS and SMIME_write_PKCS7. Other public API functions that may be impacted by this include i2d_ASN1_bio_stream, BIO_new_CMS, BIO_new_PKCS7, i2d_CMS_bio_stream and i2d_PKCS7_bio_stream. The OpenSSL cms and smime command line applications are similarly affected.
The newest version of each supported line. Older versions are under “All versions”.
| Version | Status | Fixed from |
|---|---|---|
| EventReporter 26.11Current | Not affected | – |
| EventReporter 19.4aExtended maintenance | Not affected | – |
| MonitorWare Agent 26.11Current | Not affected | – |
| MonitorWare Agent 15.4aExtended maintenance | Not affected | – |
| rsyslog Windows Agent 26.11Current | Not affected | – |
| rsyslog Windows Agent 8.4aExtended maintenance | Not affected | – |
| WinSyslog 26.11 |
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 19.4a ship OpenSSL 3.2.1, 19.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 18.3 ship OpenSSL 1.1.1g, 18.3 and later ship OpenSSL 1.1.1q; both are affected. Line 18 is end of life; please update to a supported version (19.4a or 26.11).
| Not affected |
| – |
| WinSyslog 18.4aExtended maintenance | Not affected | – |
|---|
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 18.3, 1.1.1q from 18.3
Releases before 17.2 ship OpenSSL 1.0.2k, 17.2 and later ship OpenSSL 1.0.2u; both are affected. Line 17 is end of life; please update to a supported version (19.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 17.2, 1.0.2u from 17.2
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 15.4a ship OpenSSL 3.2.1, 15.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 14.3 ship OpenSSL 1.1.1g, 14.3 and later ship OpenSSL 1.1.1q; both are affected. Line 14 is end of life; please update to a supported version (15.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 14.3, 1.1.1q from 14.3
Releases before 13.2 ship OpenSSL 1.0.2k, 13.2 and later ship OpenSSL 1.0.2u; both are affected. Line 13 is end of life; please update to a supported version (15.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 13.2, 1.0.2u from 13.2
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 8.4a ship OpenSSL 3.2.1, 8.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 7.3 ship OpenSSL 1.1.1g, 7.3 and later ship OpenSSL 1.1.1q; both are affected. Line 7 is end of life; please update to a supported version (8.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 7.3, 1.1.1q from 7.3
Releases before 6.2 ship OpenSSL 1.0.2k, 6.2 and later ship OpenSSL 1.0.2u; both are affected. Line 6 is end of life; please update to a supported version (8.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 6.2, 1.0.2u from 6.2
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 18.4a ship OpenSSL 3.2.1, 18.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 17.3 ship OpenSSL 1.1.1g, 17.3 and later ship OpenSSL 1.1.1q; both are affected. Line 17 is end of life; please update to a supported version (18.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 17.3, 1.1.1q from 17.3
Releases before 16.2 ship OpenSSL 1.0.2k, 16.2 and later ship OpenSSL 1.0.2u; both are affected. Line 16 is end of life; please update to a supported version (18.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 16.2, 1.0.2u from 16.2
Products and versions not listed here have not been checked.