Skip to content
OpenAdvisories
Medium ALAS2-2026-4191 3 CVEs

Moderate: openssl security update (Amazon Linux 2)

Published Dec 4, 2026 · Updated Dec 4, 2026

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-121482: Verifying a maliciously crafted CMS or PKCS#7 SignedData message with CRL checking enabled may consume excessive CPU time, growing with the square of the message size. CVE-2026-107496: CMS_encrypt() and CMS_encrypt_ex() encrypt a message to one or more recipient certificates and, for an EC recipient, generate an ephemeral key in the recipient's group. If the certificate declares a group order of 1, random scalar generation can only produce zero. The key generation routine then retries without limit while waiting for a nonzero private scalar, so the call never returns. CVE-2026-107493: Issue summary: When an application passes a stack to PEM_X509_INFO_read_bio_ex() to add entries to, and reading fails, OpenSSL frees every entry in the stack, both the old ones and any new ones, but leaves them in the stack. Impact summary: An application that passes an existing stack to PEM_X509_INFO_read_bio_ex() and keeps using it after a failed read may use memory that was already freed. This can cause a crash or, in principle, memory corruption. Malformed PEM data can make the read fail, but only applications that pass an existing stack are affected, and OpenSSL itself does not do this. CWE: CWE-416: Use After Free Description: PEM_X509_INFO_read_bio_ex() reads certificates, CRLs and private keys from PEM data and adds them to a stack of X509_INFO structures. If the application passes a stack that is not NULL, the function adds the new entries to it and must leave the entries that are already there unchanged. If reading fails, the function frees every entry in the stack. This includes the entries that were there before the call, and the entries added by the call. It does not remove these entries from the stack, so the stack keeps pointers to freed memory. The failure can happen at any point, even before any entry was added. A PEM item with invalid content is enough. This also happens if the stack was empty: entries added before the failure are freed but stay in the stack. An application that then reads or frees the stack will use memory that was already freed. This can crash the application or, in principle, corrupt memory. Only applications that pass a stack that is not NULL are affected. OpenSSL itself never does this. Its own callers, including the code that TLS uses to load CA certificates, always pass NULL. When the stack is NULL, the function frees only the entries that it created itself, which is safe. We expect that very few applications pass an existing stack. An attacker can make the read fail with malformed PEM data, but cannot make an application pass an existing stack. The same problem affects PEM_X509_INFO_read_bio(), PEM_X509_INFO_read() and PEM_X509_INFO_read_ex(), which use the same code. OpenSSL 1.1.1 and 1.0.2 have only the first two of these functions. FIPS impact: no The affected code is outside the FIPS module boundary.

Fixed packages 6

ReleasePackageFixed in
Amazon Linux · 2 openssl 1:1.0.2k-24.amzn2.0.24
Amazon Linux · 2 openssl-debuginfo 1:1.0.2k-24.amzn2.0.24
Amazon Linux · 2 openssl-devel 1:1.0.2k-24.amzn2.0.24
Amazon Linux · 2 openssl-libs 1:1.0.2k-24.amzn2.0.24
Amazon Linux · 2 openssl-perl 1:1.0.2k-24.amzn2.0.24
Amazon Linux · 2 openssl-static 1:1.0.2k-24.amzn2.0.24

Vulnerabilities 3

  • High 7.7

    Use-After-Free in PEM_X509_INFO_read_bio_ex() when appending to a caller-supplied stack fails

    Issue summary: When an application passes a stack to PEM_X509_INFO_read_bio_ex() to add entries to, and reading fails, OpenSSL frees every entry in the stack, both the old ones and any new ones, but leaves them in the stack. Impact summary: An application tha…

  • High 7.5

    Infinite Loop in CMS_encrypt() With an EC Group Order of 1

    Issue summary: Encrypting a CMS message to an EC certificate whose group order is 1 may cause CMS_encrypt() or CMS_encrypt_ex() to loop indefinitely. Impact summary: An attacker able to supply the recipient certificate to an application performing CMS encrypt…

  • High 7.5

    Relative CRL Distribution Point Names Rebuilt per CRL in X.509 Verification

    Issue summary: Verifying a maliciously crafted CMS or PKCS#7 SignedData message with CRL checking enabled may consume excessive CPU time, growing with the square of the message size. Impact summary: An attacker who can submit a CMS or PKCS#7 SignedData messag…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-107493.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-107496.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-121482.html