CVE-2023-0215

Public on 2023-02-08
Modified on 2024-05-17
Description
A use-after-free vulnerability was found in OpenSSL's BIO_new_NDEF function. 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 by OpenSSL to support the SMIME, CMS, and PKCS7 streaming capabilities, but it 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 calls BIO_pop() on the BIO, a use-after-free will occur, possibly resulting in a crash.
Severity
Medium severity
Medium
CVSS v3 Base Score
5.9
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core edk2 2024-03-13 ALAS2-2024-2502 Fixed
Amazon Linux 1 openssl 2023-02-03 ALAS-2023-1683 Fixed
Amazon Linux 2 - Core openssl 2023-02-03 ALAS2-2023-1935 Fixed
Amazon Linux 2023 openssl 2023-02-17 ALAS2023-2023-101 Fixed
Amazon Linux 2 - Openssl-snapsafe Extra openssl-snapsafe 2023-07-17 ALAS2OPENSSL-SNAPSAFE-2023-002 Fixed
Amazon Linux 2 - Core openssl11 2023-02-03 ALAS2-2023-1934 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 5.9 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD CVSSv3 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H