W NLnet Labs Unbound w wersjach od 1.22.0 do 1.25.1 włącznie, zdalny niezauthentykowany klient może wyzwolić asercję libngtcp2 (jeśli kompilacja zawiera asercje) i zakończyć cały proces Unbound za pomocą jednego połączenia DNS-over-QUIC (DoQ) i jednego normalnego zapytania DNS. Problem wynika z błędnej wartości błędu przekazywanej do libngtcp2. Gdy `ngtcp2_conn_writev_stream()` zwraca `NGTCP2_ERR_STREAM_DATA_BLOCKED`, Unbound dalej wywołuje `ngtcp2_ccerr_set_application_error()` z wartością błędu `-1`. Literał `int` `-1` jest niejawnie konwertowany na parametr `uint64_t error_code` funkcji jako `0xFFFFFFFFFFFFFFFF`. Następujące `ngtcp2_conn_write_connection_close()` serializuje tę wartość jako QUIC varint; ponieważ `2^64-1` przekracza limit
▸ Pokaż oryginał (EN)
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HNlnetlabs Unbound
APPNlnetlabs1.22.0 – 1.25.2 (bez)
Powiązane podatności
Use-after-free w validatorze DNSSEC Unbound — RCE i DoS
Integer overflow w Unbound przed 1.9.5 prowadzący do zapisu poza buforem
Integer overflow w alokatorze regionalnym Unbound DNS (przed wersją 1.9.5)
Integer overflow w Unbound przed wersją 1.9.5 (makro ALIGN_UP)
Out-of-bounds write w Unbound przed wersją 1.9.5 (sldns_bget_token_par)