CVE-2026-40170
JSON

7.5high

ngtcp2 has a qlog transport parameter serialization stack buffer overflow

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.99% (higher than 61% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
ngtcp2 ngtcp2< 1.22.1CVE List
sambaNot specified
Not affected: from 0:4.23.5-109.el10_2 before *, from 0:4.23.5-10.el9_8 before *
CVE List
ngtcp2-mainNot specified
Not affected: from 1.22.1-1.hum1 before *
CVE List
nodejs22Not specifiedCVE List
nodejs24Not specifiedCVE List
nodejsNot specifiedCVE List
nodejs:20/nodejsNot specifiedCVE List
nodejs:22/nodejsNot specifiedCVE List
nodejs:24/nodejsNot specifiedCVE List
tatsuhiro-t ngtcp2before 1.22.1NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-120CWE-121

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

ngtcp2 es una implementación en C del protocolo QUIC de la IETF. En versiones anteriores a la 1.22.1, ngtcp2_qlog_parameters_set_transport_params() serializa los parámetros de transporte del par en un búfer de pila fijo de 1024 bytes sin comprobación de límites. Cuando qlog está habilitado, un par remoto puede enviar parámetros de transporte suficientemente grandes durante el handshake QUIC para causar escrituras más allá del límite del búfer, lo que resulta en un desbordamiento de búfer de pila. Esto afecta a las implementaciones que habilitan la devolución de llamada de qlog y procesan parámetros de transporte de pares no confiables. Este problema ha sido solucionado en la versión 1.22.1. Si los desarrolladores no pueden actualizar de inmediato, pueden deshabilitar qlog en el cliente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40170 changed 2026-07-15CVE Terms of Use
NVDCVE-2026-40170 changed 2026-11-11Public domain