CVE-2023-0215Use-after-free following BIO_new_NDEF
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu, crates.io: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | edk2 | Fixed | 2022.02-3ubuntu0.22.04.4 | UBUNTU-CVE-2023-0215 |
| Ubuntu 22.04 | nodejs | Fixed | 12.22.9~dfsg-1ubuntu3.3 | UBUNTU-CVE-2023-0215 |
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.8 | UBUNTU-CVE-2023-0215 |
| Ubuntu 20.04 | edk2 | Fix pending | UBUNTU-CVE-2023-0215 | |
| Ubuntu 20.04 | openssl | Fixed | 1.1.1f-1ubuntu2.17 | UBUNTU-CVE-2023-0215 |
| Ubuntu 18.04 | edk2 | Fix pending | UBUNTU-CVE-2023-0215 | |
| Ubuntu 18.04 | openssl | Fixed | 1.1.1-1ubuntu2.1~18.04.21 | UBUNTU-CVE-2023-0215 |
| Ubuntu 18.04 | openssl1.0 | Fixed | 1.0.2n-1ubuntu5.11 | UBUNTU-CVE-2023-0215 |
| Ubuntu 16.04 | edk2 | Fix pending | UBUNTU-CVE-2023-0215 | |
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | openssl | Fix pending | 1.0.2g-1ubuntu4.20+esm6 (Ubuntu Pro) | UBUNTU-CVE-2023-0215 |
| Ubuntu 14.04 | edk2 | Fix pending | ||
| Ubuntu 14.04 | openssl | Fix pending | 1.0.1f-1ubuntu2.27+esm6 (Ubuntu Pro) | UBUNTU-CVE-2023-0215 |
| Debian 14 | openssl | Fixed | 3.0.8-1 | DEBIAN-CVE-2023-0215 |
| Debian 13 | openssl | Fixed | 3.0.8-1 | DEBIAN-CVE-2023-0215 |
| Debian 12 | openssl | Fixed | 3.0.8-1 | DEBIAN-CVE-2023-0215 |
| Red Hat Enterprise Linux 9 | compat-openssl11 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | edk2 | Fixed | 0:20221207gitfff6d81270b5-9.el9_2 | RHSA-2023:2165 |
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Fixed | 0:20221207gitfff6d81270b5-9.el9_2 | RHSA-2023:2165 |
| Red Hat Enterprise Linux 9 | edk2-ovmf | Fixed | 0:20221207gitfff6d81270b5-9.el9_2 | RHSA-2023:2165 |
| Red Hat Enterprise Linux 9 | edk2-tools | Fixed | 0:20221207gitfff6d81270b5-9.el9_2 | RHSA-2023:2165 |
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Fixed | 0:20221207gitfff6d81270b5-9.el9_2 | RHSA-2023:2165 |
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.0.1-47.el9_1 | RHSA-2023:0946 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.0.1-47.el9_1 | RHSA-2023:0946 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.0.1-47.el9_1 | RHSA-2023:0946 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.0.1-47.el9_1 | RHSA-2023:0946 |
| Red Hat Enterprise Linux 9 | shim | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | edk2 | Fixed | 0:20220126gitbb1bba3d77-4.el8 | RHSA-2023:2932 |
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Fixed | 0:20220126gitbb1bba3d77-4.el8 | RHSA-2023:2932 |
| Red Hat Enterprise Linux 8 | edk2-ovmf | Fixed | 0:20220126gitbb1bba3d77-4.el8 | RHSA-2023:2932 |
| Red Hat Enterprise Linux 8 | openssl | Fixed | 1:1.1.1k-9.el8_7 | RHSA-2023:1405 |
| Red Hat Enterprise Linux 8 | openssl-devel | Fixed | 1:1.1.1k-9.el8_7 | RHSA-2023:1405 |
| Red Hat Enterprise Linux 8 | openssl-libs | Fixed | 1:1.1.1k-9.el8_7 | RHSA-2023:1405 |
| Red Hat Enterprise Linux 8 | openssl-perl | Fixed | 1:1.1.1k-9.el8_7 | RHSA-2023:1405 |
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | OVMF | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | openssl-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ovmf | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssl-static | Will not fix Out of support scope | ||
| AlmaLinux 9 | edk2-aarch64 | Fixed | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux 9 | edk2-ovmf | Fixed | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux 9 | edk2-tools | Fixed | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux 9 | edk2-tools-doc | Fixed | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux 9 | openssl | Fixed | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux 8 | edk2-aarch64 | Fixed | 20220126gitbb1bba3d77-4.el8 | ALSA-2023:2932 |
| AlmaLinux 8 | edk2-ovmf | Fixed | 20220126gitbb1bba3d77-4.el8 | ALSA-2023:2932 |
| AlmaLinux 8 | openssl | Fixed | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux 8 | openssl-devel | Fixed | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux 8 | openssl-libs | Fixed | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux 8 | openssl-perl | Fixed | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| Rocky Linux 9 | openssl | Fixed | 1:3.0.1-47.el9_1 | RLSA-2023:0946 |
| Rocky Linux 8 | openssl | Fixed | 1:1.1.1k-9.el8_7 | RLSA-2023:1405 |
| Alpine Linux 3.24 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.23 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.22 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.21 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.20 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.19 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.18 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.18 | openssl1.1-compat | Fixed | 1.1.1t-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.17 | openssl | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.17 | openssl1.1-compat | Fixed | 1.1.1t-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.16 | openssl | Fixed | 1.1.1t-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.16 | openssl3 | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.15 | openssl | Fixed | 1.1.1t-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.15 | openssl3 | Fixed | 3.0.8-r0 | ALPINE-CVE-2023-0215 |
| Alpine Linux 3.14 | openssl | Fixed | 1.1.1t-r0 | ALPINE-CVE-2023-0215 |
| crates.io library | openssl-src | Fixed | 111.25.0 | RUSTSEC-2023-0009 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 3.0.0 to before 3.0.8, 1.1.1 to before 1.1.1t, 1.0.2 to before 1.0.2zg; fixed in
3.0.8,1.1.1t,1.0.2zg
Vendor advisories:
- https://www.openssl.org/news/secadv/20230207.txt (vendor-advisory)
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=8818064ce3c3c0f1b740a5aaba2a… (patch)
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c3829dd8825c654652201e16f8a0… (patch)
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9816136fe31d92ace4037d5da525… (patch)
References
- https://www.openssl.org/news/secadv/20230207.txt
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=8818064ce3c3c0f1b740a5aaba2a987e75bfbafd
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c3829dd8825c654652201e16f8a0a0c46ee3f344
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9816136fe31d92ace4037d5da5257f763aeeb4eb
- https://security.netapp.com/advisory/ntap-20230427-0007/
- https://security.netapp.com/advisory/ntap-20230427-0009/
- https://security.gentoo.org/glsa/202402-08
- https://security.netapp.com/advisory/ntap-20240621-0006/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.