ALAS-2021-1612


Amazon Linux 2 Security Advisory: ALAS-2021-1612
Advisory Release Date: 2021-03-18 01:40 Pacific
Advisory Updated Date: 2023-02-17 00:12 Pacific
Severity: Medium

Issue Overview:

Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissible length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. (CVE-2021-23840)

Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. 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). (CVE-2021-23840)

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). (CVE-2021-23841)

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. (CVE-2021-23841)

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. (CVE-2021-23841)


Affected Packages:

openssl11


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update openssl11 to update your system.

New Packages:
aarch64:
    openssl11-1.1.1g-12.amzn2.0.2.aarch64
    openssl11-libs-1.1.1g-12.amzn2.0.2.aarch64
    openssl11-devel-1.1.1g-12.amzn2.0.2.aarch64
    openssl11-static-1.1.1g-12.amzn2.0.2.aarch64
    openssl11-debuginfo-1.1.1g-12.amzn2.0.2.aarch64

i686:
    openssl11-1.1.1g-12.amzn2.0.2.i686
    openssl11-libs-1.1.1g-12.amzn2.0.2.i686
    openssl11-devel-1.1.1g-12.amzn2.0.2.i686
    openssl11-static-1.1.1g-12.amzn2.0.2.i686
    openssl11-debuginfo-1.1.1g-12.amzn2.0.2.i686

src:
    openssl11-1.1.1g-12.amzn2.0.2.src

x86_64:
    openssl11-1.1.1g-12.amzn2.0.2.x86_64
    openssl11-libs-1.1.1g-12.amzn2.0.2.x86_64
    openssl11-devel-1.1.1g-12.amzn2.0.2.x86_64
    openssl11-static-1.1.1g-12.amzn2.0.2.x86_64
    openssl11-debuginfo-1.1.1g-12.amzn2.0.2.x86_64