cve.bz

CVE-2026-40170 tatsuhiro-t ngtcp2: Stack-based Buffer Overflow

7.5 highExploit referenceEPSS 0.8%Fix available

High (7.5) in tatsuhiro-t ngtcp2. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-04-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-121 Stack-based Buffer Overflow
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40170 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40170?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40170?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40170 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tatsuhiro-t:ngtcp2before 1.22.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ngtcp20.12.1+dfsg-1+deb12u1DEBIAN-CVE-2026-40170 DSA-6222-1
Debian13ngtcp21.11.0-1+deb13u1DEBIAN-CVE-2026-40170 DSA-6222-1
Debian14ngtcp21.22.1-1DEBIAN-CVE-2026-40170
Ubuntu24.04:LTSngtcp20.12.1+dfsg-1+deb12u1build0.24.04.1UBUNTU-CVE-2026-40170
Ubuntu25.10ngtcp21.11.0-1+deb13u1build0.25.10.1UBUNTU-CVE-2026-40170
Ubuntu26.04:LTSngtcp21.16.0-1ubuntu0.1UBUNTU-CVE-2026-40170
UbuntuPro:22.04:LTSngtcp20.1.0+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2026-40170
Red Hatenterprise_linux:9::appstreamsamba-client, samba-winexe, ctdb-debuginfo and 32 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::baseossamba, libldb, ldb-tools and 46 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::crbsamba-pidl, samba-test, samba-devel and 34 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::resilientstoragectdb, ctdb-debuginfo, samba-debuginfo and 26 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:10.2samba, libldb, ldb-tools and 62 more0:4.23.5-109.el10_2RHSA-2026:22963
Red Hathummingbird:1ngtcp2, ngtcp2-doc, ngtcp2-devel and 4 more0:1.22.1-1.hum1RHSA-2026:9113
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morenodejs2020.20.2-150500.11.30.1SUSE-SU-2026:3930-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7nodejs2222.23.0-150700.3.12.1SUSE-SU-2026:2695-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7nodejs2424.17.0-150700.15.11.1SUSE-SU-2026:2633-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6nodejs2020.20.2-150600.3.21.1SUSE-SU-2026:3929-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6nodejs2222.23.0-150600.13.18.1SUSE-SU-2026:2647-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2222.23.0-160000.1.1SUSE-SU-2026:22368-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2424.18.0-160000.1.1SUSE-SU-2026:22565-1
openSUSELeap 16.0nodejs2222.23.0-160000.1.1openSUSE-SU-2026:21058-1
openSUSELeap 16.0nodejs2424.18.0-160000.1.1openSUSE-SU-2026:21236-1
openSUSETumbleweedngtcp21.22.1-1.1openSUSE-SU-2026:10621-1
openSUSETumbleweednodejs2424.17.0-1.1openSUSE-SU-2026:11121-1
openSUSETumbleweedsamba4.23.8+git.477.f78166bceed-1.1openSUSE-SU-2026:10884-1
AlmaLinux9samba, libldb, ldb-tools and 34 more4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux10samba-pidl, samba-common, samba-gpupdate and 1 more4.23.5-109.el10_2ALSA-2026:22963
Rocky Linux9samba0:4.23.5-10.el9_8RLSA-2026:25049
Rocky Linux10samba0:4.23.5-109.el10_2RLSA-2026:22963
Alpinev3.20ngtcp21.5.0-r1ALPINE-CVE-2026-40170
Alpinev3.21ngtcp21.9.1-r1ALPINE-CVE-2026-40170
Alpinev3.22ngtcp21.12.0-r1ALPINE-CVE-2026-40170
Alpinev3.23, v3.24ngtcp21.22.1-r0ALPINE-CVE-2026-40170

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important vulnerability affects ngtcp2 when qlog is enabled and processing untrusted QUIC peer transport parameters, leading to a denial of service. In the context of Red Hat support products ngtcp2 is not shipped directly through any RPM package or supported product but is shipped as a bundled dependency by the nodejs packages to provide QUIC support. This feature is considered experimental by the NodeJS upstream and needs to be enabled during NodeJS's compilation time through (`--with-quic` configuration option), with that in mind the versions of NodeJS as shipped with Red Hat Enterprise Linux are not affected by this vulnerability as QUIC support is not enabled in the distributed supported packages. This means although the affected code is present in the package code base itself, it's not compiled when the package is built and therefore is not present in the final binary.

```

For Samba package, this vulnerability strictly affects environments running Red Hat Enterprise Linux (RHEL) 9.8 and newer, as well as RHEL 10.2 and newer. Only these versions ship with Samba 4.23 or above, which introduces native support for the integrated ngtcp2 library to handle SMB over QUIC functionality. Earlier versions of RHEL utilize older iterations of Samba that do not bundle or support ngtcp2 and are therefore unaffected.

```

Red Hat's mitigation

To mitigate this issue, disable the `qlog` callback in applications utilizing the ngtcp2 library. This action prevents the vulnerable code path from being exercised when processing untrusted QUIC peer transport parameters. Disabling `qlog` may impact logging and debugging capabilities. Applications linked against ngtcp2 must be restarted for the change to take effect.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10samba-0:4.23.5-109.el10_2Fixed 2026-06-03RHSA-2026:22963
Red Hat Enterprise Linux 9samba-0:4.23.5-10.el9_8Fixed 2026-06-10RHSA-2026:25049
Red Hat Hardened Imagesngtcp2-main-1.22.1-1.hum1Fixed 2026-04-20RHSA-2026:9113
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat Enterprise Linux 10nodejs24Not affected
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat Enterprise Linux 8nodejs:20/nodejsNot affected
Red Hat Enterprise Linux 8nodejs:22/nodejsNot affected
Red Hat Enterprise Linux 8nodejs:24/nodejsNot affected
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs:20/nodejsNot affected
Red Hat Enterprise Linux 9nodejs:22/nodejsNot affected
Red Hat Enterprise Linux 9nodejs:24/nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40170.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON