CVE Vulnerabilities

CVE-2020-1971

NULL Pointer Dereference

Published: Dec 08, 2020 | Modified: Jun 21, 2024
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.9 IMPORTANT
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
HIGH

The X.509 GeneralName type is a generic type for representing different types of names. One of those name types is known as EDIPartyName. OpenSSL provides a function GENERAL_NAME_cmp which compares different instances of a GENERAL_NAME to see if they are equal or not. This function behaves incorrectly when both GENERAL_NAMEs contain an EDIPARTYNAME. A NULL pointer dereference and a crash may occur leading to a possible denial of service attack. OpenSSL itself uses the GENERAL_NAME_cmp function for two purposes: 1) Comparing CRL distribution point names between an available CRL and a CRL distribution point embedded in an X509 certificate 2) When verifying that a timestamp response token signer matches the timestamp authority name (exposed via the API functions TS_RESP_verify_response and TS_RESP_verify_token) If an attacker can control both items being compared then that attacker could trigger a crash. For example if the attacker can trick a client or server into checking a malicious certificate against a malicious CRL then this may occur. Note that some applications automatically download CRLs based on a URL embedded in a certificate. This checking happens prior to the signatures on the certificate and CRL being verified. OpenSSLs s_server, s_client and verify tools have support for the -crl_download option which implements automatic CRL downloading and this attack has been demonstrated to work against those tools. Note that an unrelated bug means that affected versions of OpenSSL cannot parse or construct correct encodings of EDIPARTYNAME. However it is possible to construct a malformed EDIPARTYNAME that OpenSSLs parser will accept and hence trigger this attack. All OpenSSL 1.1.1 and 1.0.2 versions are affected by this issue. Other OpenSSL releases are out of support and have not been checked. Fixed in OpenSSL 1.1.1i (Affected 1.1.1-1.1.1h). Fixed in OpenSSL 1.0.2x (Affected 1.0.2-1.0.2w).

Weakness

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

Affected Software

Name Vendor Start Version End Version
Openssl Openssl 1.0.2 (including) 1.0.2x (excluding)
Openssl Openssl 1.1.1 (including) 1.1.1i (excluding)
JBCS 2.4.37 SP6 RedHat openssl *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-brotli-0:1.0.6-40.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-httpd-0:2.4.37-66.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-mod_cluster-native-0:1.3.14-16.Final_redhat_2.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-mod_http2-0:1.15.7-12.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-mod_jk-0:1.2.48-11.redhat_1.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-mod_md-1:2.0.8-31.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-mod_security-0:2.9.2-58.GA.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-nghttp2-0:1.39.2-35.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-openssl-1:1.1.1g-3.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-openssl-chil-0:1.0.0-3.jbcs.el7 *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-openssl-pkcs11-0:0.4.10-18.jbcs.el7 *
Red Hat Enterprise Linux 6 Extended Lifecycle Support RedHat openssl-0:1.0.1e-59.el6_10 *
Red Hat Enterprise Linux 7 RedHat openssl-1:1.0.2k-21.el7_9 *
Red Hat Enterprise Linux 7.2 Advanced Update Support RedHat openssl-1:1.0.1e-52.el7_2 *
Red Hat Enterprise Linux 7.3 Advanced Update Support RedHat openssl-1:1.0.1e-61.el7_3 *
Red Hat Enterprise Linux 7.4 Advanced Update Support RedHat openssl-1:1.0.2k-9.el7_4 *
Red Hat Enterprise Linux 7.4 Telco Extended Update Support RedHat openssl-1:1.0.2k-9.el7_4 *
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions RedHat openssl-1:1.0.2k-9.el7_4 *
Red Hat Enterprise Linux 7.6 Extended Update Support RedHat openssl-1:1.0.2k-17.el7_6 *
Red Hat Enterprise Linux 7.7 Extended Update Support RedHat openssl-1:1.0.2k-20.el7_7 *
Red Hat Enterprise Linux 8 RedHat openssl-1:1.1.1g-12.el8_3 *
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions RedHat openssl-1:1.1.1-9.el8_0 *
Red Hat Enterprise Linux 8.1 Extended Update Support RedHat openssl-1:1.1.1c-3.el8_1 *
Red Hat Enterprise Linux 8.2 Extended Update Support RedHat openssl-1:1.1.1c-16.el8_2 *
Red Hat JBoss Web Server 3.1 RedHat openssl *
Red Hat JBoss Web Server 3 for RHEL 7 RedHat tomcat-native-0:1.2.23-23.redhat_23.ep7.el7 *
Red Hat JBoss Web Server 5 RedHat openssl *
Red Hat JBoss Web Server 5.4 on RHEL 7 RedHat jws5-tomcat-0:9.0.36-9.redhat_8.1.el7jws *
Red Hat JBoss Web Server 5.4 on RHEL 7 RedHat jws5-tomcat-native-0:1.2.25-3.redhat_3.el7jws *
Red Hat JBoss Web Server 5.4 on RHEL 8 RedHat jws5-tomcat-0:9.0.36-9.redhat_8.1.el8jws *
Red Hat JBoss Web Server 5.4 on RHEL 8 RedHat jws5-tomcat-native-0:1.2.25-3.redhat_3.el8jws *
Red Hat OpenShift Do RedHat openshiftdo/odo-init-image-rhel7:1.1.3-2 *
Edk2 Ubuntu trusty *
Nodejs Ubuntu trusty *
Openssl Ubuntu bionic *
Openssl Ubuntu devel *
Openssl Ubuntu focal *
Openssl Ubuntu groovy *
Openssl Ubuntu trusty *
Openssl Ubuntu trusty/esm *
Openssl Ubuntu xenial *
Openssl1.0 Ubuntu bionic *

Potential Mitigations

References