CVE-2026-40170: ngtcp2 has a qlog transport parameter serialization stack buffer overflow
Vulnerability summary
CVE-2026-40170 is a high (CVSS 7.5) Stack-based Buffer Overflow vulnerability in ngtcp2. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 55.8% of scored vulnerabilities. 2 public exploits are recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 12Timeline
- 16-04-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
Description
ngtcp2 is a C implementation of the IETF QUIC protocol. In versions prior to 1.22.1, ngtcp2_qlog_parameters_set_transport_params() 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 affects deployments that enable the qlog callback and process untrusted peer transport parameters. This issue has been fixed in version 1.22.1. If developers are unable to immediately upgrade, they can disable the qlog on client.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.78%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
Decrease -0.18 pp
From 0.95% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundNgtcp2
Maturity: poc
Exploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-121Stack-based Buffer OverflowThe product writes past the end of a buffer that was allocated on the stack.
- CWE-120Buffer Copy without Checking Size of InputThe product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat7 products
- ngtcp2< 0:1.22.1-1.hum1
- ngtcp2-crypto-gnutls< 0:1.22.1-1.hum1
- ngtcp2-crypto-gnutls-devel< 0:1.22.1-1.hum1
- ngtcp2-crypto-ossl< 0:1.22.1-1.hum1
- ngtcp2-crypto-ossl-devel< 0:1.22.1-1.hum1
Alpine1 product
- ngtcp2< 1.5.0-r1 | < 1.9.1-r1 | < 1.12.0-r1 | < 1.22.1-r0
Debian1 product
- ngtcp2< 0.12.1+dfsg-1+deb12u1 | < 1.11.0-1+deb13u1 | < 1.22.1-1
Ngtcp21 product
- ngtcp2< 1.22.1
Opensuse1 product
- ngtcp2&distro=openSUSE Tumbleweed< 1.22.1-1.1
Tatsuhiro-t1 product
- ngtcp2< 1.22.1
Ubuntu1 product
- ngtcp2< 0.1.0+dfsg-1ubuntu0.1~esm1 | < 0.12.1+dfsg-1+deb12u1build0.24.04.1 | < 1.11.0-1+deb13u1build0.25.10.1 | < 1.16.0-1ubuntu0.1
7 vendors · 13 products
References
19 links- github.com/ngtcp2/ngtcp2/security/advisories/GHSA-f523-465f-8c8fX Refsource CONFIRMARTICLEREPORTExploitMitigationPatchVendor Advisory
- github.com/ngtcp2/ngtcp2/commit/708a7640c1f48fb8ffb540c4b8ea5b4c1dfb8ee5X Refsource MISCARTICLEPatch
- www.openwall.com/lists/oss-security/2026/04/17/12ExploitMailing ListMitigationPatchThird Party Advisory
Show all 19 references
- images.redhat.comARTICLE