CVE-2026-32792
JSON

4.6medium

Packet of death with DNSCrypt

Severity
4.6medium CVSS:4.0 by NLnet Labs
Exploit likelihood
0.40% (higher than 26% of CVEs)
Published
Last changed
Assigned by
NLnet Labs

Description

NLnet Labs Unbound 1.6.2 up to and including version 1.25.0 has a denial of service vulnerability when compiled with DNSCrypt support ('--enable-dnscrypt'). A bad DNSCrypt query could underflow Unbound's DNSCrypt packet reading procedure that may lead to heap overflow. A malicious actor can exploit the vulnerability with a single bad DNSCrypt query that its decrypted plaintext consists entirely of '0x00' bytes and does not contain the expected '0x80' marker. Unbound would then start reading more bytes than necessary until it finds a non-'0x00' byte. Based on the underlying memory allocator and the memory layout, it could lead to heap overflow while reading followed by a crash. Likelihood of a crash is low, since it relies heavily on the underlying memory allocator and the memory layout. If the heap overflow does not happen, Unbound's later packet checks will deny the packet. Unbound 1.25.1 contains a patch with a fix to bound reading in the given buffer space.

Affected

Product or packageVersionsReported by
NLnet Labs Unboundfrom 1.6.2 before 1.25.1CVE List
nlnetlabs unboundfrom 1.6.2 before 1.25.1NVD

All scores

NLnet Labs4.6medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-125CWE-166

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

NLnet Labs Unbound 1.6.2 up to and including version 1.25.0 has a denial of service vulnerability when compiled with DNSCrypt support ('--enable-dnscrypt'). A bad DNSCrypt query could underflow Unbound's DNSCrypt packet reading procedure that may lead to heap overflow. A malicious actor can exploit the vulnerability with a single bad DNSCrypt query that its decrypted plaintext consists entirely of '0x00' bytes and does not contain the expected '0x80' marker. Unbound would then start reading more bytes than necessary until it finds a non-'0x00' byte. Based on the underlying memory allocator and the memory layout, it could lead to heap overflow while reading followed by a crash. Likelihood of a crash is low, since it relies heavily on the underlying memory allocator and the memory layout. If the heap overflow does not happen, Unbound's later packet checks will deny the packet. Unbound 1.25.1 contains a patch with a fix to bound reading in the given buffer space.

NVD (es)

NLnet Labs Unbound 1.6.2 hasta e incluyendo la versión 1.25.0 tiene una vulnerabilidad de denegación de servicio cuando se compila con soporte para DNSCrypt ('--enable-dnscrypt'). Una consulta DNSCrypt incorrecta podría causar un underflow en el procedimiento de lectura de paquetes DNSCrypt de Unbound que puede llevar a un desbordamiento de montículo. Un actor malicioso puede explotar la vulnerabilidad con una única consulta DNSCrypt incorrecta cuyo texto plano descifrado consiste enteramente en bytes '0x00' y no contiene el marcador '0x80' esperado. Unbound entonces comenzaría a leer más bytes de los necesarios hasta que encuentre un byte que no sea '0x00'. Basado en el asignador de memoria subyacente y la disposición de la memoria, podría llevar a un desbordamiento de montículo durante la lectura seguido de un fallo. La probabilidad de un fallo es baja, ya que depende en gran medida del asignador de memoria subyacente y de la disposición de la memoria. Si el desbordamiento de montículo no ocurre, las comprobaciones posteriores de paquetes de Unbound denegarán el paquete. Unbound 1.25.1 contiene un parche con una corrección para limitar la lectura en el espacio de búfer dado.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-32792 changed 2026-05-20CVE Terms of Use
NVDCVE-2026-32792 changed 2026-07-24Public domain