VDB

CVE-2026-40170

CVE-2026-40170 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
samba-winbind-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
samba-toolserrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
libldberrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
samba-test-libserrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
libwbclienterrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
samba-dc-libs-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
samba-winbind-modules-debuginfoerrata.rockylinux.org4.23.5-109.el10
ngtcp2Alpine1.22.1-r0, 1.12.0-r1, 1.9.1-r1, 1.5.0-r1
ldb-tools-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
libnetapi-develerrata.rockylinux.org4.23.5-10.el9
samba-ldb-ldap-moduleserrata.rockylinux.org4.23.5-10.el9
libwbclient-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9

43 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
ngtcp2ngtcp2< 1.22.1
alpinengtcp20, 0, 0
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux CodeReady Linux Builder (v. 9)
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux 10
Red HatRed Hat Enterprise Linux AppStream (v. 9)
Red HatRed Hat Enterprise Linux 90:4.23.5-10.el9_8
Red HatRed Hat Enterprise Linux 8
amazon:2023ngtcp2-devel0
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 100:4.23.5-109.el10_2
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux AppStream (v. 10)
amazon:2023ngtcp2-crypto-ossl-devel0
Red HatRed Hat Enterprise Linux Resilient Storage (v. 9)
amazon:2023ngtcp2-crypto-gnutls0
Red HatRed 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›