CVE-2026-40170
Public on
Last Modified:
Description
A flaw was found in ngtcp2, a C implementation of the IETF QUIC (Quick UDP Internet Connections) protocol. A remote attacker can exploit a stack buffer overflow vulnerability by sending specially crafted, large transport parameters during the QUIC handshake. This occurs when the qlog callback is enabled and untrusted peer transport parameters are processed, leading to writes beyond a fixed-size buffer. This can result in a denial of service.
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.
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.
Additional information
- This content is not included.Bugzilla 2459061: ngtcp2: ngtcp2: Denial of service via stack buffer overflow during QUIC handshake
- Content from cwe.mitre.org is not included.CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Packages and Issued Red Hat Security Errata
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | samba | Fixed | RHSA-2026:22963 |
| Red Hat Enterprise Linux 10 | nodejs22 | Not affected | |
| Red Hat Enterprise Linux 10 | nodejs24 | Not affected | |
| Red Hat Enterprise Linux 8 | nodejs | Not affected | |
| Red Hat Enterprise Linux 8 | nodejs:20/nodejs | Not affected | |
| Red Hat Enterprise Linux 8 | nodejs:22/nodejs | Not affected | |
| Red Hat Enterprise Linux 8 | nodejs:24/nodejs | Not affected | |
| Red Hat Enterprise Linux 9 | samba | Fixed | RHSA-2026:25049 |
| Red Hat Enterprise Linux 9 | nodejs | Not affected | |
| Red Hat Enterprise Linux 9 | nodejs:20/nodejs | Not affected | |
| Red Hat Enterprise Linux 9 | nodejs:22/nodejs | Not affected | |
| Red Hat Enterprise Linux 9 | nodejs:24/nodejs | Not affected | |
| Red Hat Hardened Images | ngtcp2-main | Fixed | This content is not included.RHSA-2026:9113 |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| CVSS v3 Base Score | 7.5 | N/A | 7.5 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality Impact | None | N/A | None |
| Integrity Impact | None | N/A | None |
| Availability Impact | High | N/A | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
cve.org CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.