Vulnerability
CVE-2023-0215
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.
77 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2023-1934
Amazon Linux 2 2017.12 - ALAS2-2023-1934: important priority package update for openssl11
-
ALAS2-2023-1935
Amazon Linux 2 2017.12 - ALAS2-2023-1935: important priority package update for openssl
-
ALAS2-2024-2502
Amazon Linux 2 2017.12 - ALAS2-2024-2502: important priority package update for edk2
-
ALAS2023-2023-101
Amazon Linux 2023 - ALAS2023-2023-101: Important priority package update for openssl
-
ALPINE-CVE-2023-0215
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…
- ALPINE-EDGE-CVE-2023-0215
-
ALSA-2023:0946
Moderate: openssl security and bug fix update
-
ALSA-2023:1405
Important: openssl security update
-
ALSA-2023:2165
Important: edk2 security, bug fix, and enhancement update
-
ALSA-2023:2932
Important: edk2 security update
-
AZL-13301
CVE-2023-0215 affecting package cloud-hypervisor for versions less than 30.0-2
-
AZL-13352
CVE-2023-0215 affecting package openssl for versions less than 1.1.1k-21
-
AZL-37641
CVE-2023-0215 affecting package hvloader for versions less than 1.0.1-2
-
AZL-37898
CVE-2023-0215 affecting package hvloader for versions less than 1.0.1-4
- CGA-383x-9h6r-65mx
- CGA-6fw4-9mxr-x6vc
- CGA-j5jr-g987-vj7w
- CGA-jpc8-p7h4-pvmp
- CGA-p8v2-4ggj-p7q6
- CGA-ph78-722j-2fc4
- CGA-ww6f-6vqq-vwp5
- CGA-wwh6-jmpq-w55x
-
DEBIAN-CVE-2023-0215
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…
-
DLA-3325-1
openssl - security update
-
DSA-5343-1
openssl - security update
-
ELSA-2023-0946
ELSA-2023-0946: openssl security and bug fix update (MODERATE)
-
ELSA-2023-12152
ELSA-2023-12152: openssl security update (MODERATE)
-
ELSA-2023-12213
ELSA-2023-12213: openssl security update (IMPORTANT)
-
ELSA-2023-13024
ELSA-2023-13024: edk2 security update (IMPORTANT)
-
ELSA-2023-13025
ELSA-2023-13025: edk2 security update (IMPORTANT)
-
ELSA-2023-13026
ELSA-2023-13026: edk2 security update (IMPORTANT)
-
ELSA-2023-13027
ELSA-2023-13027: edk2 security update (IMPORTANT)
-
ELSA-2023-1405
ELSA-2023-1405: openssl security update (IMPORTANT)
-
ELSA-2023-2165
ELSA-2023-2165: edk2 security, bug fix, and enhancement update (IMPORTANT)
-
ELSA-2023-2932
ELSA-2023-2932: edk2 security update (IMPORTANT)
-
ELSA-2023-32790
ELSA-2023-32790: edk2 security update (IMPORTANT)
-
ELSA-2023-32791
ELSA-2023-32791: edk2 security update (IMPORTANT)
-
GHSA-r7jw-wp68-3xch
openssl-src vulnerable to Use-after-free following `BIO_new_NDEF`
-
OESA-2023-1092
openssl security update
-
OESA-2023-1107
openssl security update
-
OESA-2023-1135
edk2 security update
-
OESA-2023-1142
nodejs security update
-
OESA-2024-2071
mysql security update
-
OESA-2024-2072
mysql security update
-
RHSA-2023:0946
Red Hat Security Advisory: openssl security and bug fix update
-
RHSA-2023:1199
Red Hat Security Advisory: openssl security and bug fix update
-
RHSA-2023:1405
Red Hat Security Advisory: openssl security update
-
RHSA-2023:2165
Red Hat Security Advisory: edk2 security, bug fix, and enhancement update
-
RHSA-2023:2932
Red Hat Security Advisory: edk2 security update
-
RHSA-2023:3354
Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.51 SP2 security update
-
RHSA-2023:3408
Red Hat Security Advisory: openssl security update
-
RHSA-2023:3420
Red Hat Security Advisory: Red Hat JBoss Web Server 5.7.3 release and security update
-
RHSA-2023:4128
Red Hat Security Advisory: edk2 security update
-
RHVEX-CVE-2023-0215
openssl: use-after-free following BIO_new_NDEF
-
RLSA-2023:0946
Important: openssl security and bug fix update
-
RLSA-2023:1405
Important: openssl security update
-
RUSTSEC-2023-0009
Use-after-free following `BIO_new_NDEF`
-
SUSE-SU-2023:0305-1
Security update for openssl-1_0_0
-
SUSE-SU-2023:0305-2
Security update for openssl-1_0_0
-
SUSE-SU-2023:0306-1
Security update for openssl-1_0_0
-
SUSE-SU-2023:0307-1
Security update for openssl1
-
SUSE-SU-2023:0308-1
Security update for openssl-1_1
-
SUSE-SU-2023:0309-1
Security update for openssl-1_1
-
SUSE-SU-2023:0310-1
Security update for openssl-1_1
-
SUSE-SU-2023:0311-1
Security update for openssl-1_1
-
SUSE-SU-2023:0312-1
Security update for openssl-3
-
SUSE-SU-2023:0684-1
Security update for openssl
-
SUSEVEX-CVE-2023-0215
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…
-
UBUNTU-CVE-2023-0215
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…
-
USN-5844-1
openssl vulnerabilities
-
USN-5845-1
openssl1.0 vulnerabilities
-
USN-5845-2
openssl vulnerabilities
-
USN-6564-1
nodejs vulnerabilities
-
USN-7894-1
edk2 vulnerabilities
-
openSUSE-SU-2024:12687-1
libopenssl-1_0_0-devel-1.0.2u-12.1 on GA media
-
openSUSE-SU-2024:12688-1
libopenssl-1_1-devel-1.1.1t-1.1 on GA media
-
openSUSE-SU-2024:12716-1
libopenssl-3-devel-3.0.8-1.1 on GA media
References
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=8818064ce3c3c0f1b740a5aaba2a987e75bfbafd
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9816136fe31d92ace4037d5da5257f763aeeb4eb
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c3829dd8825c654652201e16f8a0a0c46ee3f344
- https://security.gentoo.org/glsa/202402-08
- https://security.netapp.com/advisory/ntap-20230427-0007/
- https://security.netapp.com/advisory/ntap-20230427-0009/
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://www.openssl.org/news/secadv/20230207.txt
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003
- https://cert-portal.siemens.com/productcert/html/ssa-203374.html
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-561322.html
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-879734.html
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html