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 package | Versions | Reported by |
|---|---|---|
| ngtcp2 ngtcp2 | < 1.22.1 | CVE List |
| samba | Not specified Not affected: from 0:4.23.5-109.el10_2 before *, from 0:4.23.5-10.el9_8 before * | CVE List |
| ngtcp2-main | Not specified Not affected: from 1.22.1-1.hum1 before * | CVE List |
| nodejs22 | Not specified | CVE List |
| nodejs24 | Not specified | CVE List |
| nodejs | Not specified | CVE List |
| nodejs:20/nodejs | Not specified | CVE List |
| nodejs:22/nodejs | Not specified | CVE List |
| nodejs:24/nodejs | Not specified | CVE List |
| tatsuhiro-t ngtcp2 | before 1.22.1 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-f523-465f-8c8f | exploit, mitigation, patch, vendor-advisory | |
| https://github.com/ngtcp2/ngtcp2/commit/708a7640c1f48fb8ffb540c4b8ea5b4c1dfb8ee5 | patch | |
| http://www.openwall.com/lists/oss-security/2026/04/17/12 | exploit, mailing-list, mitigation, patch, third-party-advisory | |
| https://access.redhat.com/security/cve/CVE-2026-40170 | vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2459061 | issue-tracking | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40170.json | ||
| https://access.redhat.com/errata/RHSA-2026:22963 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:25049 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:9113 | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40170 changed 2026-07-15 | CVE Terms of Use |
| NVD | CVE-2026-40170 changed 2026-11-11 | Public domain |