Remote DNS-over-QUIC (DoQ) flow-control assertion failure in libngtcp2
Summary
| CVE | CVE-2026-55991 |
|---|---|
| State | PUBLISHED |
| Assigner | NLnet Labs |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-22 14:17:21 UTC |
| Updated | 2026-07-22 20:33:11 UTC |
| Description | In NLnet Labs Unbound 1.22.0 up to and including 1.25.1, a remote unauthenticated client can trigger a libngtcp2 assertion (if compiled with assertions on) and terminate the entire Unbound process using a single DNS-over-QUIC (DoQ) connection and one normal DNS query. This is caused by an erroneous error value passed to libngtcp2. When 'ngtcp2_conn_writev_stream()' returns 'NGTCP2_ERR_STREAM_DATA_BLOCKED', Unbound continues to call 'ngtcp2_ccerr_set_application_error()' with a '-1' error value. The 'int' literal '-1' is implicitly converted to the function's 'uint64_t error_code' parameter as '0xFFFFFFFFFFFFFFFF'. The follow-on 'ngtcp2_conn_write_connection_close()' serialises that value as a QUIC variable-length integer; because '2^64-1' exceeds the 62-bit varint ceiling, 'ngtcp2_put_uvarintlen()' fails 'assert(n < 4611686018427387904ULL)' and the whole resolver process aborts. A remote, unauthenticated DoQ client can trigger this deterministically with a single QUIC connection by advertising 'initial_max_stream_data_bidi_local = 1' in its transport parameters and sending one DoQ query without ever reading the stream. |
Risk And Classification
Primary CVSS: v3.1 5.9 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Problem Types: CWE-195 | CWE-195 CWE-195: Signed to Unsigned Conversion Error
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | CVSS | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | NLnet Labs | Unbound | affected 1.22.0 1.25.2 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.nlnetlabs.nl/downloads/unbound/CVE-2026-55991.txt | [email protected] | www.nlnetlabs.nl | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Qifan Zhang (Palo Alto Networks) (en)
CNA: Xuanchao Xie (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-27T00:00:00.000Z | Issue reported by Qifan Zhang |
| CNA | 2026-06-15T00:00:00.000Z | NLnet Labs shares patch with Qifan Zhang |
| CNA | 2026-06-17T00:00:00.000Z | Qifan Zhang verifies patch |
| CNA | 2026-07-11T00:00:00.000Z | Issue reported by Xuanchao Xie |
| CNA | 2026-07-12T00:00:00.000Z | NLnet Labs shares patch with Xuanchao Xie |
| CNA | 2026-06-13T00:00:00.000Z | Xuanchao Xie verifies patch |
| CNA | 2026-07-22T00:00:00.000Z | Fixes released with version 1.25.2 |
Solutions
CNA: This issue is fixed starting with version 1.25.2
There are currently no legacy QID mappings associated with this CVE.