Use-after-free following BIO_new_NDEF
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OpenSSL | OpenSSL | unaffected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| JBCS httpd 2.4.51.sp2 | |||
| openssl | cpe:/a:redhat:jboss_core_services:1 | RHSA-2023:3355 | 2023-06-05T00:00:00Z |
| JBoss Core Services for RHEL 8 | |||
| jbcs-httpd24-openssl-1:1.1.1k-14.el8jbcs | cpe:/a:redhat:jboss_core_services:1::el8 | RHSA-2023:3354 | 2023-06-05T00:00:00Z |
| JBoss Core Services on RHEL 7 | |||
| jbcs-httpd24-openssl-1:1.1.1k-14.el7jbcs | cpe:/a:redhat:jboss_core_services:1::el7 | RHSA-2023:3354 | 2023-06-05T00:00:00Z |
| Red Hat Enterprise Linux 8 | |||
| edk2-0:20220126gitbb1bba3d77-4.el8 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2023:2932 | 2023-05-16T00:00:00Z |
| openssl-1:1.1.1k-9.el8_7 | cpe:/o:redhat:enterprise_linux:8 | RHSA-2023:1405 | 2023-03-22T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Extended Update Support | |||
| edk2-0:20220126gitbb1bba3d77-2.el8_6.1 | cpe:/a:redhat:rhel_eus:8.6 | RHSA-2023:4128 | 2023-07-18T00:00:00Z |
| openssl-1:1.1.1k-9.el8_6 | cpe:/o:redhat:rhel_eus:8.6 | RHSA-2023:3408 | 2023-05-31T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| openssl-1:3.0.1-47.el9_1 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2023:0946 | 2023-02-28T00:00:00Z |
| edk2-0:20221207gitfff6d81270b5-9.el9_2 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2023:2165 | 2023-05-09T00:00:00Z |
| openssl-1:3.0.1-47.el9_1 | cpe:/o:redhat:enterprise_linux:9 | RHSA-2023:0946 | 2023-02-28T00:00:00Z |
| Red Hat Enterprise Linux 9.0 Extended Update Support | |||
| openssl-1:3.0.1-46.el9_0 | cpe:/a:redhat:rhel_eus:9.0 | RHSA-2023:1199 | 2023-03-14T00:00:00Z |
| Red Hat JBoss Web Server 5 | |||
| openssl | cpe:/a:redhat:jboss_enterprise_web_server:5.7 | RHSA-2023:3421 | 2023-06-05T00:00:00Z |
| Red Hat JBoss Web Server 5.7 on RHEL 7 | |||
| jws5-tomcat-native-0:1.2.31-14.redhat_14.el7jws | cpe:/a:redhat:jboss_enterprise_web_server:5.7::el7 | RHSA-2023:3420 | 2023-06-05T00:00:00Z |
| Red Hat JBoss Web Server 5.7 on RHEL 8 | |||
| jws5-tomcat-native-0:1.2.31-14.redhat_14.el8jws | cpe:/a:redhat:jboss_enterprise_web_server:5.7::el8 | RHSA-2023:3420 | 2023-06-05T00:00:00Z |
| Red Hat JBoss Web Server 5.7 on RHEL 9 | |||
| jws5-tomcat-native-0:1.2.31-14.redhat_14.el9jws | cpe:/a:redhat:jboss_enterprise_web_server:5.7::el9 | RHSA-2023:3420 | 2023-06-05T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-3325-1 | openssl security update |
Debian DSA |
DSA-5343-1 | openssl security update |
EUVD |
EUVD-2023-0789 | 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. |
Github GHSA |
GHSA-r7jw-wp68-3xch | openssl-src vulnerable to Use-after-free following `BIO_new_NDEF` |
Ubuntu USN |
USN-5844-1 | OpenSSL vulnerabilities |
Ubuntu USN |
USN-5845-1 | OpenSSL vulnerabilities |
Ubuntu USN |
USN-5845-2 | OpenSSL vulnerabilities |
Ubuntu USN |
USN-6564-1 | Node.js vulnerabilities |
Ubuntu USN |
USN-7894-1 | EDK II vulnerabilities |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 5.0% (5.024% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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 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. |