CVE-2021-4044
publishedInvalid handling of X509_verify_cert() internal errors in libssl
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSSL | — | OpenSSLFixed in OpenSSL 3.0.1 (Affected 3.0.0) | Affected | Not stated | openssl |
| Alpine Linux | edge | openssl | Fixed | 3.0.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-develaarch64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| Alpine Linux | v3.15 | openssl3 | Fixed | 3.0.2-r0 | Package fix record |
| Alpine Linux | v3.16 | openssl3 | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.17 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.18 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.19 | openssl | Fixed | 3.0.1-r0 | Package fix record |
Show 28 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.21 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.22 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.23 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| Alpine Linux | v3.24 | openssl | Fixed | 3.0.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-develppc64le | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-devels390x | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-develx86_64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-devel-32bitaarch64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-devel-32bitppc64le | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-devel-32bits390x | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl-3-devel-32bitx86_64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3aarch64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3ppc64le | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3s390x | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3x86_64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3-32bitaarch64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3-32bitppc64le | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3-32bits390x | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libopenssl3-32bitx86_64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3aarch64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3ppc64le | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3s390x | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3x86_64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3-docaarch64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3-docppc64le | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3-docs390x | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openssl-3-docx86_64 | Advisory build | 3.0.1-1.1 | OPENSUSE-SU-2024:11797-1 |
Description
Internally libssl in OpenSSL calls X509_verify_cert() on the client side to verify a certificate supplied by a server. That function may return a negative return value to indicate an internal error (for example out of memory). Such a negative return value is mishandled by OpenSSL and will cause an IO function (such as SSL_connect() or SSL_do_handshake()) to not indicate success and a subsequent call to SSL_get_error() to return the value SSL_ERROR_WANT_RETRY_VERIFY. This return value is only supposed to be returned by OpenSSL if the application has previously called SSL_CTX_set_cert_verify_callback(). Since most applications do not do this the SSL_ERROR_WANT_RETRY_VERIFY return value from SSL_get_error() will be totally unexpected and applications may not behave correctly as a result. The exact behaviour will depend on the application but it could result in crashes, infinite loops or other similar incorrect responses. This issue is made more serious in combination with a separate bug in OpenSSL 3.0 that will cause X509_verify_cert() to indicate an internal error when processing a certificate chain. This will occur where a certificate does not include the Subject Alternative Name extension but where a Certificate Authority has enforced name constraints. This issue can occur even with valid chains. By combining the two issues an attacker could induce incorrect, application dependent behaviour. Fixed in OpenSSL 3.0.1 (Affected 3.0.0).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSSL | OpenSSL | Fixed in OpenSSL 3.0.1 (Affected 3.0.0) (affected) | openssl · cna |
Weaknesses
1- Invalid error handling
References
3Provider assertions
2openssl · cna
Invalid handling of X509_verify_cert() internal errors in libssl
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c099b87613310beeaa2f850f4bf165a53e0c608e9526192c4af784688a98b7ef
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record