CVE-2026-6238
JSON

6.5medium

Buffer overread in ns_printrrf with corrupted RDATA field

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.36% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
glibc

Description

The deprecated functions ns_printrrf, ns_printrr and fp_nquery in the GNU C Library version 2.0.1 to version 2.43 fail to validate the RDATA content against the RDATA length in a DNS response when processing A6, CERT, LOC, TKEY or TSIG records, which may allow an attacker to craft a DNS response, causing a target application to crash or read uninitialized memory. These functions are for application debugging only and hence not in the path of code executed by the DNS resolver. Further, they have been deprecated since version 2.34 and should not be used by any new applications. Applications should consider porting away from these interfaces since they may be removed in future versions.

Affected

Product or packageVersionsReported by
The GNU C Library glibcfrom 2.0.1 up to 2.43CVE List
gnu glibcfrom 2.2NVD

Classification

CWE-126

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

What each source says

CVE List

The deprecated functions ns_printrrf, ns_printrr and fp_nquery in the GNU C Library version 2.0.1 to version 2.43 fail to validate the RDATA content against the RDATA length in a DNS response when processing A6, CERT, LOC, TKEY or TSIG records, which may allow an attacker to craft a DNS response, causing a target application to crash or read uninitialized memory. These functions are for application debugging only and hence not in the path of code executed by the DNS resolver. Further, they have been deprecated since version 2.34 and should not be used by any new applications. Applications should consider porting away from these interfaces since they may be removed in future versions.

NVD (es)

Las funciones obsoletas ns_printrrf, ns_printrr y fp_nquery en la GNU C Library versión 2.2 y posteriores no validan el contenido RDATA contra la longitud RDATA en una respuesta DNS al procesar registros LOC, CERT, TKEY o TSIG, lo que puede permitir a un atacante crear una respuesta DNS, causando que una aplicación objetivo se bloquee o lea memoria no inicializada. Estas funciones son solo para depuración de aplicaciones y por lo tanto no están en la ruta del código ejecutado por el resolvedor DNS. Además, han sido obsoletas desde la versión 2.34 y no deben ser utilizadas por ninguna aplicación nueva. Las aplicaciones deberían considerar migrar fuera de estas interfaces ya que pueden ser eliminadas en versiones futuras.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-6238 changed 2026-10-15CVE Terms of Use
NVDCVE-2026-6238 changed 2026-11-11Public domain