CVE-2026-40170 ngtcp2 has a qlog transport parameter serialization stack buffer overflow
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
18 packages: 17 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/ngtcp2(Alpine v3.20) | < 1.5.0-r1 | 1.5.0-r1 | Fixed |
| alpine/ngtcp2(Alpine v3.21) | < 1.9.1-r1 | 1.9.1-r1 | Fixed |
| alpine/ngtcp2(Alpine v3.22) | < 1.12.0-r1 | 1.12.0-r1 | Fixed |
| alpine/ngtcp2(Alpine v3.23) | < 1.22.1-r0 | 1.22.1-r0 | Fixed |
| alpine/ngtcp2(Alpine v3.24) | < 1.22.1-r0 | 1.22.1-r0 | Fixed |
| debian/ngtcp2(Debian 12) | < 0.12.1+dfsg-1+deb12u1; = 0.12.1+dfsg-1 | 0.12.1+dfsg-1+deb12u1 | Fixed |
| debian/ngtcp2(Debian 13) | < 1.11.0-1+deb13u1; = 1.11.0-1 | 1.11.0-1+deb13u1 | Fixed |
| debian/ngtcp2(Debian 14) | < 1.22.1-1; = 1.11.0-1; = 1.12.0-1~exp1; = 1.15.1-1 +6 more | 1.22.1-1 | Fixed |
| redhat enterprise linux | < 0:4.23.5-10.el9_8; < 0:4.23.5-109.el10_2; = 8; = 9 +1 more | 0:4.23.5-10.el9_8, 0:4.23.5-109.el10_2 | Fixed |
| redhat hummingbird | < 1.22.1-1.hum1 | 1.22.1-1.hum1 | Fixed |
| redhat/ngtcp2-main(Red Hat hummingbird 1) | < 1.22.1-1.hum1 | 1.22.1-1.hum1 | Fixed |
| redhat/samba(Red Hat enterprise_linux 10.2) | < 4.23.5-109.el10_2 | 4.23.5-109.el10_2 | Fixed |
| redhat/samba(Red Hat enterprise_linux 9) | < 4.23.5-10.el9_8 | 4.23.5-10.el9_8 | Fixed |
| tatsuhiro-t ngtcp2 | < 1.22.1 | 1.22.1 | Fixed |
| ubuntu/ngtcp2(Ubuntu 22.04) | < 0.1.0+dfsg-1ubuntu0.1~esm1 | 0.1.0+dfsg-1ubuntu0.1~esm1 | Fixed |
| ubuntu/ngtcp2(Ubuntu 24.04) | < 0.12.1+dfsg-1+deb12u1build0.24.04.1 | 0.12.1+dfsg-1+deb12u1build0.24.04.1 | Fixed |
| ubuntu/ngtcp2(Ubuntu 26.04) | < 1.16.0-1ubuntu0.1 | 1.16.0-1ubuntu0.1 | Fixed |
| ngtcp2 | = < 1.22.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ngtcp2 | = < 1.22.1 | No fix listed |
| redhat enterprise linux | < 0:4.23.5-109.el10_2 | 0:4.23.5-109.el10_2 |
| redhat enterprise linux | < 0:4.23.5-10.el9_8 | 0:4.23.5-10.el9_8 |
| redhat hummingbird | < 1.22.1-1.hum1 | 1.22.1-1.hum1 |
| redhat enterprise linux | = 10 | No fix listed |
| redhat enterprise linux | = 8 | No fix listed |
| redhat enterprise linux | = 9 | No fix listed |
| redhat/samba(Red Hat:enterprise_linux:10.2) | < 4.23.5-109.el10_2 | 4.23.5-109.el10_2 |
| redhat/samba(Red Hat:enterprise_linux:9) | < 4.23.5-10.el9_8 | 4.23.5-10.el9_8 |
| redhat/ngtcp2-main(Red Hat:hummingbird:1) | < 1.22.1-1.hum1 | 1.22.1-1.hum1 |
| ubuntu/ngtcp2(Ubuntu:22.04) | < 0.1.0+dfsg-1ubuntu0.1~esm1 | 0.1.0+dfsg-1ubuntu0.1~esm1 |
| alpine/ngtcp2(Alpine:v3.20) | < 1.5.0-r1 | 1.5.0-r1 |
| alpine/ngtcp2(Alpine:v3.21) | < 1.9.1-r1 | 1.9.1-r1 |
| alpine/ngtcp2(Alpine:v3.22) | < 1.12.0-r1 | 1.12.0-r1 |
| alpine/ngtcp2(Alpine:v3.23) | < 1.22.1-r0 | 1.22.1-r0 |
| alpine/ngtcp2(Alpine:v3.24) | < 1.22.1-r0 | 1.22.1-r0 |
| ubuntu/ngtcp2(Ubuntu:24.04) | < 0.12.1+dfsg-1+deb12u1build0.24.04.1 | 0.12.1+dfsg-1+deb12u1build0.24.04.1 |
| ubuntu/ngtcp2(Ubuntu:26.04) | < 1.16.0-1ubuntu0.1 | 1.16.0-1ubuntu0.1 |
| tatsuhiro-t ngtcp2 | < 1.22.1 | 1.22.1 |
| debian/ngtcp2(Debian:12) | < 0.12.1+dfsg-1+deb12u1 | 0.12.1+dfsg-1+deb12u1 |
| debian/ngtcp2(Debian:12) | = 0.12.1+dfsg-1 | No fix listed |
| debian/ngtcp2(Debian:13) | < 1.11.0-1+deb13u1 | 1.11.0-1+deb13u1 |
| debian/ngtcp2(Debian:13) | = 1.11.0-1 | No fix listed |
| debian/ngtcp2(Debian:14) | < 1.22.1-1 | 1.22.1-1 |
| debian/ngtcp2(Debian:14) | = 1.11.0-1 | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ngtcp2(Debian:14) | = 1.12.0-1~exp1 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.15.1-1 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.16.0-1 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.16.0-1~bpo13+1 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.16.0-1~bpo13+2 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.16.0-1~exp1 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.21.0-1 | No fix listed |
| debian/ngtcp2(Debian:14) | = 1.22.1-1~bpo13+1 | No fix listed |
References
- https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-f523-465f-8c8f exploit mitigation patch vendor-advisory
- https://github.com/ngtcp2/ngtcp2/commit/708a7640c1f48fb8ffb540c4b8ea5b4c1dfb8ee5 patch
- www.openwall.com exploit mailing-list mitigation patch third-party-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2459061 issue-tracking
- security.access.redhat.com
- RHSA-2026:22963 patch vendor-advisory
- RHSA-2026:25049 patch vendor-advisory
- RHSA-2026:9113 patch vendor-advisory
- Debian Security Tracker CVE-2026-40170 vendor-advisory
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-8300-1 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking