UBUNTU-CVE-2021-4044

Source
https://ubuntu.com/security/CVE-2021-4044
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4044.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-4044
Related
Published
2021-12-14T19:15:00Z
Modified
2024-11-20T12:28:39Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

Internally libssl in OpenSSL calls X509verifycert() 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 SSLconnect() or SSLdohandshake()) to not indicate success and a subsequent call to SSLgeterror() to return the value SSLERRORWANTRETRYVERIFY. This return value is only supposed to be returned by OpenSSL if the application has previously called SSLCTXsetcertverifycallback(). Since most applications do not do this the SSLERRORWANTRETRYVERIFY return value from SSLgeterror() 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 X509verifycert() 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).

References

Affected packages

Ubuntu:22.04:LTS / openssl

Package

Name
openssl
Purl
pkg:deb/ubuntu/openssl?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.1-0ubuntu1

Affected versions

1.*

1.1.1l-1ubuntu1

3.*

3.0.0-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.0.1-0ubuntu1",
            "binary_name": "libssl-dev"
        },
        {
            "binary_version": "3.0.1-0ubuntu1",
            "binary_name": "libssl-doc"
        },
        {
            "binary_version": "3.0.1-0ubuntu1",
            "binary_name": "libssl3"
        },
        {
            "binary_version": "3.0.1-0ubuntu1",
            "binary_name": "libssl3-dbgsym"
        },
        {
            "binary_version": "3.0.1-0ubuntu1",
            "binary_name": "openssl"
        },
        {
            "binary_version": "3.0.1-0ubuntu1",
            "binary_name": "openssl-dbgsym"
        }
    ]
}