ALAS2023-2026-3560


Amazon Linux 2023 Security Advisory: ALAS2023-2026-3560
Advisory Released Date: 2026-12-04
Advisory Updated Date: 2026-12-04
Severity: Medium

Issue Overview:

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. (CVE-2026-107493)

The QUIC stack queues a RETIRE_CONNECTION_ID frame also for retransmitted NEW_CONNECTION_ID frames. This allows a remote malicious QUIC stack to queue an unlimited number of RETIRE_CONNECTION_ID frames. (CVE-2026-107494)

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-107496)

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-121482)

Issue summary: A server configured with the Suite B certificate flag through
SSL_CTX_set_cert_flags() and with TLS 1.3 enabled may read past the end of a
fixed group list when it processes a ClientHello whose supported_groups and
key_share contain no Suite B group.

Impact summary: A remote client can send a ClientHello that makes the server
read past the end of a static array. The values read are never returned to the
client, so no memory is disclosed; on builds with sanitizers or hardened
allocators the read may crash the process, causing Denial of Service.

CWE: CWE-125: Out-of-bounds Read

Description: When the Suite B certificate flag is set, OpenSSL restricts the
accepted groups to P-256 and P-384 by substituting a fixed two-element list
for the configured group list. The tuple machinery used for key-share
selection was not updated for this substitution: tls1_get_group_tuples() still
returns the configured tuples, which by default describe eight groups. The
server-side walk in tls_parse_ctos_key_share() then advances through the
two-element list using those tuple counts without checking the cumulative
offset against the number of groups present.

Only applications that call SSL_CTX_set_cert_flags() with
SSL_CERT_FLAG_SUITEB_128_LOS and leave TLS 1.3 enabled are affected. The
openssl s_server -suiteB_128 option sets an X.509 verification parameter
instead, so the stock command line server is not vulnerable. Default
configurations do not reach this code.

A client that offers only groups outside the Suite B set, such as X25519,
forces every tuple to be walked and the read to run past the array. The bytes
read are compared against client group IDs and never sent back, so no memory
is disclosed. On builds with address sanitizers or hardened allocators the
read can abort the process; in ordinary release builds it reads a few bytes of
adjacent constant data.

FIPS impact: no
The affected code is outside the FIPS module boundary. (CVE-2026-35190)

Issue summary: A QUIC peer that sends many small out-of-order STREAM fragments
while withholding the first byte of the stream may cause OpenSSL to buffer
a large number of reassembly nodes occupying much larger memory than
the actual data sent.

Impact summary: A remote peer can pin large amounts of memory on a server that
accepts incoming QUIC streams, potentially exhausting memory and causing
Denial of Service.

CWE: CWE-770: Allocation of Resources Without Limits or Throttling

Description: QUIC receive flow control limits the highest byte offset a peer
may reach on a stream. It does not limit how many out-of-order fragments the
receiver buffers. OpenSSL allocates a reassembly node for each non-adjacent
STREAM fragment and never caps the count. A peer that opens a stream and sends
many one-byte fragments at increasing offsets, while withholding the first
byte, makes the receiver retain one node per fragment without delivering any
data.

Only applications that accept incoming streams are exposed. With the default
policy, which rejects peer-initiated streams, the stream is torn down before
state accumulates. Because the read side never advances past the missing
prefix, the flow control window never slides and the nodes stay pinned for the
life of the connection.

The per-stream window bounds the highest offset, so the memory one stream can
pin is finite, but it can reach tens of megabytes and, across many streams and
connections, drive memory pressure and Denial of Service. The severity is
limited because the exhaustion is bounded by flow control and requires a
non-default configuration.

FIPS impact: no
The affected code is outside the FIPS module boundary. (CVE-2026-84785)

A DANE-enabled TLS client may crash by dereferencing a NULL pointer when processing an unusual combination of certificate and TLSA records. (CVE-2026-84786)

The OpenSSL QUIC stack contains a feature in which, when using an
already connected socket, it will auto-detect the peer address during the SSL
handshake. This feature uses the getpeername() function, passing a buffer of
sufficient length to hold any supported address family, but passes a buffer
length that is only sized such that larger addresses, such as IPv6, cannot be
retrieved. The getpeername() function however, still returns the full address
length, which is accepted as the valid input buffer length, leading to the
address buffer containing uninitialized stack data instead of the actual peer
address. The invalid peer address is then used as destination for the outgoing
packets which leads to a connectivity breakage and a leakage of the
uninitialized stack data to passive network observers. (CVE-2026-88822)

An application passing AAD in multiple chunks of which some have
zero length will have the previous AAD chunks effectively unauthenticated. Also,
on context re-initialisation, the AAD was not reset, which meant that any AAD
accumulated from the previous context usage were also included in the AAD of the
new message. (CVE-2026-88823)

During CRYPTO stream processing, a pointer into the first frame's
memory on the stream is lent to the TLS handshake processing. The memory
must remain stable until it is processed and released. However the processing
of retransmitted CRYPTO frames could release the memory if the retransmitted
frame fully overlapped the existing frame. This then causes use-after-free read
when the TLS handshake processing continues. (CVE-2026-95691)

AES-GCM-SIV copies the caller-supplied IV or nonce into its
internal state using a copy whose length is taken from the expected nonce size
rather than from the length the caller actually provided. When the caller
passes a shorter IV, the copy reads past the end of the caller's buffer;
AddressSanitizer confirms a heap out-of-bounds read reached through
EVP_CipherInit_ex() into ossl_aes_gcm_siv_init(). When the caller passes a
longer IV, the implementation silently discards the trailing bytes instead of
rejecting the length. (CVE-2026-95692)


Affected Packages:

openssl


Issue Correction:
Run dnf update openssl --releasever 2023.12.20261204 or dnf update --advisory ALAS2023-2026-3560 --releasever 2023.12.20261204 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation

New Packages:
aarch64:
    openssl-fips-provider-latest-3.5.8-1.amzn2023.0.5.aarch64
    openssl-fips-provider-latest-debuginfo-3.5.8-1.amzn2023.0.5.aarch64
    openssl-libs-debuginfo-3.5.8-1.amzn2023.0.5.aarch64
    openssl-debuginfo-3.5.8-1.amzn2023.0.5.aarch64
    openssl-perl-3.5.8-1.amzn2023.0.5.aarch64
    openssl-3.5.8-1.amzn2023.0.5.aarch64
    openssl-libs-3.5.8-1.amzn2023.0.5.aarch64
    openssl-snapsafe-libs-3.5.8-1.amzn2023.0.5.aarch64
    openssl-snapsafe-libs-debuginfo-3.5.8-1.amzn2023.0.5.aarch64
    openssl-debugsource-3.5.8-1.amzn2023.0.5.aarch64
    openssl-devel-3.5.8-1.amzn2023.0.5.aarch64

src:
    openssl-3.5.8-1.amzn2023.0.5.src

x86_64:
    openssl-libs-debuginfo-3.5.8-1.amzn2023.0.5.x86_64
    openssl-snapsafe-libs-debuginfo-3.5.8-1.amzn2023.0.5.x86_64
    openssl-perl-3.5.8-1.amzn2023.0.5.x86_64
    openssl-fips-provider-latest-debuginfo-3.5.8-1.amzn2023.0.5.x86_64
    openssl-fips-provider-latest-3.5.8-1.amzn2023.0.5.x86_64
    openssl-debuginfo-3.5.8-1.amzn2023.0.5.x86_64
    openssl-snapsafe-libs-3.5.8-1.amzn2023.0.5.x86_64
    openssl-libs-3.5.8-1.amzn2023.0.5.x86_64
    openssl-3.5.8-1.amzn2023.0.5.x86_64
    openssl-debugsource-3.5.8-1.amzn2023.0.5.x86_64
    openssl-devel-3.5.8-1.amzn2023.0.5.x86_64