CVE-2026-40170
ngtcp2 has a qlog transport parameter serialization stack buffer overflow
Reported by github_m · Published April 16, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| samba-winbind-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| samba-tools | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| libldb | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| samba-test-libs | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| libwbclient | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| samba-dc-libs-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| samba-winbind-modules-debuginfo | errata.rockylinux.org | 4.23.5-109.el10 |
| ngtcp2 | Alpine | 1.22.1-r0, 1.12.0-r1, 1.9.1-r1, 1.5.0-r1 |
| ldb-tools-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| libnetapi-devel | errata.rockylinux.org | 4.23.5-10.el9 |
| samba-ldb-ldap-modules | errata.rockylinux.org | 4.23.5-10.el9 |
| libwbclient-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
43 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ngtcp2 | ngtcp2 | < 1.22.1 |
| alpine | ngtcp2 | 0, 0, 0 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 9) | |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.23.5-10.el9_8 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| amazon:2023 | ngtcp2-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 10 | 0:4.23.5-109.el10_2 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 10) | |
| amazon:2023 | ngtcp2-crypto-ossl-devel | 0 |
| Red Hat | Red Hat Enterprise Linux Resilient Storage (v. 9) | |
| amazon:2023 | ngtcp2-crypto-gnutls | 0 |
| Red Hat | Red Hat Enterprise Linux BaseOS (v. 10) |
…and 14 more
Timeline
- Apr 16, 2026 CVE Published
- Apr 17, 2026 PoC Published
- Apr 19, 2026 Security Advisory (5 in total, the first dated here)
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jun 4, 2026 Distribution Patch (5 in total, the first dated here)
- Jun 24, 2026 CVE Updated
- Jul 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-40170
vulnetix vdb fixes CVE-2026-40170
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40170/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-f523-465f-8c8f x_refsource_CONFIRM
- https://github.com/ngtcp2/ngtcp2/commit/708a7640c1f48fb8ffb540c4b8ea5b4c1dfb8ee5 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-40170 advisory
- https://access.redhat.com/errata/RHSA-2026:22963 advisory
- http://www.openwall.com/lists/oss-security/2026/04/17/12 url
- https://access.redhat.com/errata/RHSA-2026:9113 advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40170.json advisory
- https://access.redhat.com/errata/RHSA-2026:25049 advisory
- RHBZ#2459061 issue