s2n-tls fixes TLS 1.3 record-drop flaw and QUIC memory leak (CVE-2026-16317/16318)
AWS disclosed two vulnerabilities in the open-source s2n-tls library affecting versions up to v1.7.5, both fixed in v1.7.6. CVE-2026-16317 allows an active man-in-the-middle to silently drop TLS 1.3 application data records undetected due to missing validation of the outer content_type byte. CVE-2026-16318 causes a memory leak in QUIC-enabled TLS 1.3 connections during HelloRetryRequest handshakes due to incorrect memory allocation handling.
SECURITY · NETWORK · VULNERABILITY · SECURITY ADVISORY
PUBLISHED OCT 12, 2026 16:35 UTC
WHAT CHANGED
s2n-tls's AEAD implementation hardcoded the TLS 1.3 outer content_type value in the additional authenticated data instead of using the actual wire byte, meaning the authentication tag does not cover this field. This lets an active MITM drop individual application data records on any TLS 1.3 connection (client or server) without detection; TLS 1.2 and QUIC connections are not affected by this issue. Separately, the QUIC transport parameters extension handler used s2n_alloc instead of s2n_realloc, leaking one memory allocation each time a QUIC-enabled TLS 1.3 connection undergoes a HelloRetryRequest (e.g., when a client offers an unpreferred key share group), increasing memory consumption on long-running servers. Both issues are resolved in s2n-tls v1.7.6.
WHY IT MATTERS
The silent record-drop vulnerability affects all TLS 1.3 connections using s2n-tls and has no full workaround short of downgrading to TLS 1.2, which sacrifices TLS 1.3's security benefits — administrators must upgrade the library itself. The QUIC memory leak only affects QUIC-enabled deployments but can degrade long-running server processes over time through unbounded memory growth, requiring either an upgrade or periodic restarts as a stopgap.
WHO IS AFFECTED
- PRODUCTS
- s2n-tls (open-source TLS/SSL implementation)
- FEATURES
- TLS 1.3 encrypted record content_type validationQUIC transport parameters extension handler (HelloRetryRequest memory allocation)
- CONFIGURATIONS
- s2n-tls versions <= v1.7.5All TLS 1.3 connections (clients and servers) for CVE-2026-16317QUIC-enabled TLS 1.3 connections for CVE-2026-16318
- ENVIRONMENTS
- Long-running server processes with QUIC enabled
- EXCLUSIONS
- TLS 1.2 connections are not affected by CVE-2026-16317QUIC connections are not affected by CVE-2026-16317Deployments that do not enable QUIC are not affected by CVE-2026-16318
WHAT TO DO
- 01CRITICALAUTOMATABLE
Upgrade s2n-tls to version v1.7.6 or later to remediate both CVE-2026-16317 and CVE-2026-16318.
- 02HIGH
Audit and patch any forked or derivative copies of s2n-tls code to incorporate the v1.7.6 fixes.
- 03MEDIUMAUTOMATABLE
For QUIC-enabled deployments that cannot immediately upgrade, periodically restart server processes to reclaim memory leaked during HelloRetryRequest handling (CVE-2026-16318) as a temporary mitigation.
- 04LOW
Note that restricting to TLS 1.2-only security policies avoids the CVE-2026-16317 code path but is not recommended since it removes TLS 1.3 security benefits; prioritize upgrading instead.
TIMELINE
- ANNOUNCED
- JUL 21, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES
CVE-2026-16317 and CVE-2026-16318: Issues with s2n-tls: an open-source implementation of the TLS/SSL protocols
PUBLISHED JUL 21, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.