CVE-2026-16318
JSON

6.9medium

QUIC Transport Parameters Memory Leak During HelloRetryRequest in s2n-tls

Severity
6.9medium CVSS:4.0 by AMZN
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
AMZN

Description

The QUIC transport parameters extension handler in s2n-tls incorrectly uses s2n_alloc instead of s2n_realloc to store the peer's transport parameters. When a TLS 1.3 connection goes through a HelloRetryRequest, the handler is called twice on the same connection. On the second call, s2n_alloc zeroes the existing pointer before allocating new memory, causing the first allocation to be leaked. This can occur during normal QUIC traffic when a client offers a key share group the server does not prefer. An unauthenticated user can amplify the issue by deliberately forcing HelloRetryRequests, causing up to approximately 64 KB of unreachable memory per handshake. Over time, this can lead to increased memory consumption on long-running server processes. The unreachable memory is only reclaimed when the process is restarted. Only server-side QUIC-enabled deployments are affected. Non-QUIC TLS connections are not affected. We recommend you upgrade s2n-tls to version v1.7.6

Affected

Product or packageVersionsReported by
Amazon s2n-tlsup to v1.7.5CVE List

All scores

AMZN5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
AMZN6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

The QUIC transport parameters extension handler in s2n-tls incorrectly uses s2n_alloc instead of s2n_realloc to store the peer's transport parameters. When a TLS 1.3 connection goes through a HelloRetryRequest, the handler is called twice on the same connection. On the second call, s2n_alloc zeroes the existing pointer before allocating new memory, causing the first allocation to be leaked. This can occur during normal QUIC traffic when a client offers a key share group the server does not prefer. An unauthenticated user can amplify the issue by deliberately forcing HelloRetryRequests, causing up to approximately 64 KB of unreachable memory per handshake. Over time, this can lead to increased memory consumption on long-running server processes. The unreachable memory is only reclaimed when the process is restarted. Only server-side QUIC-enabled deployments are affected. Non-QUIC TLS connections are not affected. We recommend you upgrade s2n-tls to version v1.7.6

NVD (es)

El gestor de la extensión de parámetros de transporte QUIC en s2n-tls utiliza incorrectamente s2n_alloc en lugar de s2n_realloc para almacenar los parámetros de transporte del par. Cuando una conexión TLS 1.3 pasa por un HelloRetryRequest, el gestor es llamado dos veces en la misma conexión. En la segunda llamada, s2n_alloc pone a cero el puntero existente antes de asignar nueva memoria, lo que provoca una fuga de la primera asignación. Esto puede ocurrir durante el tráfico QUIC normal cuando un cliente ofrece un grupo de intercambio de claves que el servidor no prefiere. Un usuario no autenticado puede amplificar el problema forzando deliberadamente HelloRetryRequests, causando hasta aproximadamente 64 KB de memoria inalcanzable por handshake. Con el tiempo, esto puede llevar a un aumento del consumo de memoria en procesos de servidor de larga duración. La memoria inalcanzable solo se recupera cuando el proceso se reinicia. Solo las implementaciones del lado del servidor con QUIC habilitado se ven afectadas. Las conexiones TLS que no son QUIC no se ven afectadas. Recomendamos actualizar s2n-tls a la versión v1.7.6

References

Sources

SourceRecordLicence
CVE ListCVE-2026-16318 changed 2026-07-22CVE Terms of Use
NVDCVE-2026-16318 changed 2026-10-24Public domain