PT-2022-6260 · Mysql Server+12 · Mysql Server+12

Marcel Bã¶Hme

+4

·

Published

2022-11-29

·

Updated

2026-04-27

·

CVE-2023-0215

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions OpenSSL (affected versions not specified) MySQL Server versions 5.7.41 and earlier, 8.0.32 and earlier
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. 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.
Recommendations For OpenSSL, at the moment, there is no information about a newer version that contains a fix for this vulnerability. For MySQL Server versions 5.7.41 and earlier, 8.0.32 and earlier, update to a version that is not affected by this vulnerability. As a temporary workaround, consider disabling the BIO new NDEF() function until a patch is available. Restrict access to the vulnerable module BIO f asn1 to minimize the risk of exploitation. Avoid using the BIO pop() function on the BIO until the issue is resolved.

Exploit

DoS

Use After Free

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2023:0946
ALSA-2023:1405
ALSA-2023:2165
ALSA-2023:2932
ALT-PU-2023-1195
ALT-PU-2023-1228
ALT-PU-2023-1299
ALT-PU-2023-1360
ALT-PU-2023-7320
ALT-PU-2023-7463
ALT-PU-2023-7647
ALT-PU-2023-7888
AZL-13301
AZL-13352
AZL-37641
AZL-37898
BDU:2023-00675
CESA-2023_1405
CESA-2023_2932
CVE-2023-0215
DLA-3325-1
DSA-5343-1
GHSA-R7JW-WP68-3XCH
JLSEC-2026-233
MGASA-2023-0130
OESA-2023-1092
OESA-2023-1107
OESA-2023-1135
OESA-2023-1142
OESA-2024-2071
OESA-2024-2072
OPENSUSE-SU-2023_0305-1
OPENSUSE-SU-2023_0311-1
OPENSUSE-SU-2023_0312-1
OPENSUSE-SU-2024:12687-1
OPENSUSE-SU-2024:12688-1
OPENSUSE-SU-2024:12716-1
RHSA-2023:0946
RHSA-2023:1199
RHSA-2023:1405
RHSA-2023:2165
RHSA-2023:2932
RHSA-2023:3354
RHSA-2023:3408
RHSA-2023:3420
RHSA-2023:4128
RHSA-2023_0946
RHSA-2023_1405
RHSA-2023_2165
RHSA-2023_2932
RLSA-2023:0946
RLSA-2023:1405
RUSTSEC-2023-0009
SUSE-SU-2023:0305-1
SUSE-SU-2023:0305-2
SUSE-SU-2023:0306-1
SUSE-SU-2023:0307-1
SUSE-SU-2023:0308-1
SUSE-SU-2023:0309-1
SUSE-SU-2023:0310-1
SUSE-SU-2023:0311-1
SUSE-SU-2023:0312-1
SUSE-SU-2023:0684-1
USN-5844-1
USN-5845-1
USN-5845-2
USN-6564-1
USN-7894-1
USN-7894-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Freebsd
Ibm Aix
Linuxmint
Mysql Server
Openssl
Red Hat
Rocky Linux
Suse
Ubuntu