QID 355252

Date Published: 2023-05-29

QID 355252: Amazon Linux Security Advisory for Open Secure Sockets Layer (OpenSSL) : ALAS2023-2023-054

aes ocb mode for 32-bit x86 platforms using the aes-ni assembly optimized implementation will not encrypt the entirety of the data under some circumstances.
This could reveal sixteen bytes of data that was preexisting in the memory that wasnt written.
In the special case of "in place" encryption, sixteen bytes of the plaintext would be revealed. (
( CVE-2022-2097) openssl supports creating a custom cipher via the legacy evp_cipher_meth_new() function and associated function calls.
This function was deprecated in openssl 3.0 and application authors are instead encouraged to use the new provider mechanism in order to implement custom ciphers.
Openssl versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers passed to the evp_encryptinit_ex2(), evp_decryptinit_ex2() and evp_cipherinit_ex2() functions (as well as other similarly named encryption and decryption initialisation functions).
Instead of using the custom cipher directly it incorrectly tries to fetch an equivalent cipher from the available providers.
An equivalent cipher is found based on the nid passed to evp_cipher_meth_new().
This nid is supposed to represent the unique nid for a given cipher.
However it is possible for an application to incorrectly pass nid_undef as this value in the call to evp_cipher_meth_new().
When nid_undef is used in this way the openssl encryption/decryption initialisation function will match the null cipher as being equivalent and will fetch this from the available providers.
This will succeed if the default provider has been loaded (or if a third party provider has been loaded that offers this cipher).
Using the null cipher means that the plaintext is emitted as the ciphertext.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2023-054 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355252

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-054 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-054.html