AWS patches silent record drop and memory leak in s2n-tls library
Amazon Web Services released s2n-tls version 1.7.6 to fix two vulnerabilities, including a TLS 1.3 flaw allowing silent data drops by attackers.

Key points
- CVE-2026-16317 allows man-in-the-middle attackers to silently discard encrypted records in TLS 1.3 sessions.
- CVE-2026-16318 causes a memory leak in QUIC connections during HelloRetryRequest events.
- Amazon recommends upgrading to s2n-tls version 1.7.6; no full workaround exists for the record drop issue.
Amazon Web Services published security bulletin 2026-062-AWS on July 21, 2026, addressing two distinct vulnerabilities in s2n-tls. The open-source C99 implementation of TLS/SSL protocols contains flaws that affect data integrity and memory stability. AWS classified the advisory as important and requires immediate attention from maintainers and users of the library.
The first issue, tracked as CVE-2026-16317, involves missing validation of the outer content_type byte in TLS 1.3 encrypted records. According to the AWS advisory, this defect allows an active man-in-the-middle attacker to silently drop individual application data records. Neither endpoint detects the modification because the s2n-tls AEAD implementation hardcodes the content_type value in additional authenticated data rather than using the actual wire byte.
Technical details and scope
RFC 8446 Section 5.2 mandates that the outer content_type of all encrypted TLS 1.3 records must be application_data. The s2n-tls failure to cover this byte with the authentication tag creates the exploitation path. All TLS 1.3 connections using this library are affected, impacting both clients and servers equally. Connections using TLS 1.2 or QUIC are not impacted by this specific record-handling flaw.
The second vulnerability, CVE-2026-16318, stems from incorrect memory management in the QUIC transport parameters extension handler. The code incorrectly uses s2n_alloc instead of s2n_realloc, causing a memory allocation leak each time a QUIC-enabled TLS 1.3 connection undergoes a HelloRetryRequest. This event occurs during normal handshakes when a client offers a key share group the server does not prefer.
Affected systems and mitigations
Only deployments enabling QUIC are vulnerable to the memory leak described in CVE-2026-16318. Long-running server processes may experience increased memory consumption over time due to these unreachable allocations. For this specific issue, restarting server processes periodically can reclaim the leaked memory as a temporary mitigation measure while upgrades are prepared.
For CVE-2026-16317, AWS states there is no workaround that fully mitigates the risk. Configuring s2n-tls to use only TLS 1.2 security policies avoids the affected code path but removes the security benefits of TLS 1.3. Consequently, this configuration change is not recommended as a primary defense strategy against the silent record drop vulnerability.
What should you do?
AWS has addressed both issues in s2n-tls version 1.7.6. The company recommends upgrading to this latest version immediately. Administrators must also ensure that any forked or derivative code incorporates the new fixes. Deployments not using QUIC do not require action for CVE-2026-16318 but should still patch CVE-2026-16317 if they support TLS 1.3.
What to do and how to stay safe: AWS
- Audit your infrastructure to identify all instances of s2n-tls, including custom forks or embedded versions in proprietary applications.
- Plan and execute an upgrade to s2n-tls version 1.7.6 to resolve both the authentication bypass and memory leak issues.
- Monitor long-running QUIC-enabled server processes for abnormal memory growth if an immediate patch is not feasible.
- Review TLS configuration policies to ensure TLS 1.3 is enabled and that no insecure fallbacks are inadvertently introduced during patching.
Step-by-step guide: Risk-Based Vulnerability Management: Prioritize Fixes by Actual Danger
General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
Does CVE-2026-16317 affect TLS 1.2 connections?
No, the silent record drop vulnerability only affects TLS 1.3 connections. TLS 1.2 and QUIC connections are not impacted by this specific flaw.
Is there a workaround for the TLS 1.3 record drop issue?
There is no full workaround. Disabling TLS 1.3 avoids the flaw but reduces security, so AWS recommends upgrading to version 1.7.6 instead.
Who is affected by the memory leak CVE-2026-16318?
Only deployments that enable QUIC are affected. Systems not using QUIC do not require any action for this specific memory leak vulnerability.


