PatchSiren cyber security CVE debrief
CVE-2026-40170 ngtcp2 CVE debrief
A stack buffer overflow vulnerability exists in ngtcp2, a C implementation of the IETF QUIC protocol, prior to version 1.22.1. The vulnerability is due to the lack of bounds checking when serializing peer transport parameters into a fixed 1024-byte stack buffer. This affects deployments that enable the qlog callback and process untrusted peer transport parameters.
- Vendor
- ngtcp2
- Product
- Unknown
- CVSS
- HIGH 7.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-16
- Original CVE updated
- 2026-11-11
- Advisory published
- 2026-04-16
- Advisory updated
- 2026-11-11
Who should care
Defenders responsible for QUIC protocol implementations, particularly those using ngtcp2, should assess exposure and prioritize upgrading to version 1.22.1 or later, or disabling the qlog on the client if an immediate upgrade is not possible.
Why it matters
The vulnerability in ngtcp2 allows for a stack buffer overflow, potentially leading to denial of service or remote code execution. Defenders should prioritize upgrading to version 1.22.1 or later, or disabling the qlog on the client if an immediate upgrade is not possible.
- Potential stack buffer overflow leading to denial of service
- Possible remote code execution if exploited
- Verification of QUIC protocol implementation is necessary
- Upgrade or mitigation is required to prevent exploitation
Technical summary
The ngtcp2_qlog_parameters_set_transport_params() function serializes peer transport parameters into a fixed 1024-byte stack buffer without bounds checking. When qlog is enabled, a remote peer can send sufficiently large transport parameters during the QUIC handshake to cause writes beyond the buffer boundary, resulting in a stack buffer overflow. This vulnerability affects deployments that enable the qlog callback and process untrusted peer transport parameters, potentially leading to denial of service or remote code execution. Defenders should prioritize upgrading to version 1.22.1 or later, or disabling the qlog on the client if an immediate upgrade is not possible, and review QUIC protocol implementations.
Defensive priority
Defenders should prioritize upgrading to version 1.22.1 or later, or disabling the qlog on the client if an immediate upgrade is not possible.
Recommended defensive actions
- Upgrade to ngtcp2 version 1.22.1 or later
- Disable the qlog on the client if an immediate upgrade is not possible
- Review and update QUIC protocol implementations to ensure proper bounds checking
- Perform thorough vulnerability assessment of affected deployments
- Implement compensating controls for exposed systems
- Monitor relevant logs for potential exploitation attempts
- Track and verify remediation of affected assets
Evidence notes
The vulnerability is confirmed to exist in ngtcp2 versions prior to 1.22.1. The CVE record and NVD entry provide details on the vulnerability, and the vendor has released a patch to address the issue.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-40170 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-40170
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-40170 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-40170
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/ngtcp2/ngtcp2/commit/708a7640c1f48fb8ffb540c4b8ea5b4c1dfb8ee5
[email protected] - Patch
-
Source reference
Unverified legacy reference
URL: https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-f523-465f-8c8f
[email protected] - Exploit, Mitigation, Patch, Vendor Advisory
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:22963
0b0ca135-0b70-47e7-9f44-1890c2a1c46c
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:25049
0b0ca135-0b70-47e7-9f44-1890c2a1c46c
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:9113
0b0ca135-0b70-47e7-9f44-1890c2a1c46c
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/security/cve/CVE-2026-40170
0b0ca135-0b70-47e7-9f44-1890c2a1c46c
-
Source reference
Unverified legacy reference
URL: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40170.json
0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.