CVE-2021-23841Null pointer deref in X509_issuer_and_serial_hash()
The OpenSSL public API function X509_issuer_and_serial_hash() attempts to create a unique hash value based on the issuer and serial number data contained within an X509 certificate. However it fails to correctly handle any errors that may occur while parsing the issuer field (which might occur if the issuer field is maliciously constructed). This may subsequently result in a NULL pointer deref and a crash leading to a potential denial of service attack. The function X509_issuer_and_serial_hash() is never directly called by OpenSSL itself so applications are only vulnerable if they use this function directly and they use it on certificates that may have been obtained from untrusted sources. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).
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.
Red Hat, Ubuntu have 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 20.04 | openssl | Fixed | 1.1.1f-1ubuntu2.2 | UBUNTU-CVE-2021-23841 |
| Ubuntu 18.04 | openssl | Fixed | 1.1.1-1ubuntu2.1~18.04.8 | UBUNTU-CVE-2021-23841 |
| Ubuntu 18.04 | openssl1.0 | Fixed | 1.0.2n-1ubuntu5.6 | UBUNTU-CVE-2021-23841 |
| Ubuntu 16.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | openssl | Fixed | 1.0.2g-1ubuntu4.19 | UBUNTU-CVE-2021-23841 |
| Ubuntu 14.04 | edk2 | Fix pending | ||
| Ubuntu 14.04 | openssl | Fix pending | 1.0.1f-1ubuntu2.27+esm2 (Ubuntu Pro) | UBUNTU-CVE-2021-23841 |
| Debian 14 | openssl | Fixed | 1.1.1j-1 | DEBIAN-CVE-2021-23841 |
| Debian 13 | openssl | Fixed | 1.1.1j-1 | DEBIAN-CVE-2021-23841 |
| Debian 12 | openssl | Fixed | 1.1.1j-1 | DEBIAN-CVE-2021-23841 |
| Red Hat Enterprise Linux 9 | openssl | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | edk2 | Fixed | 0:20210527gite1999b264f1f-3.el8 | RHSA-2021:4198 |
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Fixed | 0:20210527gite1999b264f1f-3.el8 | RHSA-2021:4198 |
| Red Hat Enterprise Linux 8 | edk2-ovmf | Fixed | 0:20210527gite1999b264f1f-3.el8 | RHSA-2021:4198 |
| Red Hat Enterprise Linux 8 | openssl | Fixed | 1:1.1.1k-4.el8 | RHSA-2021:4424 |
| Red Hat Enterprise Linux 8 | openssl-devel | Fixed | 1:1.1.1k-4.el8 | RHSA-2021:4424 |
| Red Hat Enterprise Linux 8 | openssl-libs | Fixed | 1:1.1.1k-4.el8 | RHSA-2021:4424 |
| Red Hat Enterprise Linux 8 | openssl-perl | Fixed | 1:1.1.1k-4.el8 | RHSA-2021:4424 |
| Red Hat Enterprise Linux 7 | AAVMF | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | openssl | Fixed | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux 7 | openssl-devel | Fixed | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux 7 | openssl-libs | Fixed | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux 7 | openssl-perl | Fixed | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux 7 | openssl-static | Fixed | 1:1.0.2k-22.el7_9 | RHSA-2021:3798 |
| Red Hat Enterprise Linux 7 | openssl098e | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | ovmf | Fix pending Affected | ||
| 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 | ||
| Red Hat Enterprise Linux 6 | openssl098e | Will not fix Out of support scope | ||
| AlmaLinux 8 | edk2-ovmf | Fixed | 20210527gite1999b264f1f-3.el8 | ALSA-2021:4198 |
| Rocky Linux 8 | edk2 | Fixed | 0:20210527gite1999b264f1f-3.el8 | RLSA-2021:4198 |
| Rocky Linux 8 | openssl | Fixed | 1:1.1.1k-4.el8 | RLSA-2021:4424 |
| Alpine Linux 3.24 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.23 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.22 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.21 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.20 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.19 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.18 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.18 | openssl1.1-compat | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.17 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.17 | openssl1.1-compat | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.16 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.16 | openssl3 | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.15 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.15 | openssl3 | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.14 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.13 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.12 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.11 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.10 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| Alpine Linux 3.9 | openssl | Fixed | 1.1.1j-r0 | ALPINE-CVE-2021-23841 |
| crates.io library | openssl-src | Fixed | 111.14.0 | RUSTSEC-2021-0058 |
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: Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i), Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x)
Vendor advisories:
- https://www.debian.org/security/2021/dsa-4855 (vendor-advisory)
- https://security.gentoo.org/glsa/202103-03 (vendor-advisory)
References
- https://www.openssl.org/news/secadv/20210216.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=122a19ab48091c657f7cb1fb3af9fc07bd557bbf
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=8252ee4d90f3f2004d3d0aeeed003ad49c9a7807
- https://www.debian.org/security/2021/dsa-4855
- https://security.gentoo.org/glsa/202103-03
- http://seclists.org/fulldisclosure/2021/May/70
- http://seclists.org/fulldisclosure/2021/May/68
- http://seclists.org/fulldisclosure/2021/May/67
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.tenable.com/security/tns-2021-09
- https://security.netapp.com/advisory/ntap-20210513-0002/
- https://security.netapp.com/advisory/ntap-20210219-0009/
- https://www.tenable.com/security/tns-2021-03
- https://support.apple.com/kb/HT212529
- https://support.apple.com/kb/HT212528
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.