5.9medium
A flaw was found in dnsmasq before version 2.83.
- Severity
- 5.9medium CVSS:3.1 by NVD
- Exploit likelihood
- 94.0% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries. This flaw allows a remote attacker, who can create valid DNS replies, to cause an overflow in a heap-allocated memory. This flaw is caused by the lack of length checks in rfc1035.c:extract_name(), which could be abused to make the code execute memcpy() with a negative size in sort_rrset() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| dnsmasq | dnsmasq 2.83 | CVE List |
| thekelleys dnsmasq | before 2.83 | NVD |
| fedoraproject fedora | 32, 33 | NVD |
| debian debian_linux | 9.0, 10.0 | NVD |
All scores
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.1high CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:C |
Classification
What each source says
CVE List
A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries. This flaw allows a remote attacker, who can create valid DNS replies, to cause an overflow in a heap-allocated memory. This flaw is caused by the lack of length checks in rfc1035.c:extract_name(), which could be abused to make the code execute memcpy() with a negative size in sort_rrset() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.
NVD (es)
Se encontró un fallo en dnsmasq versiones anteriores a 2.83. Se detectó un desbordamiento del búfer en la región heap de la memoria en dnsmasq cuando DNSSEC está habilitado y antes de comprobar las entradas DNS recibidas. Este fallo permite a un atacante remoto, que puede crear respuestas DNS válidas, causar un desbordamiento en una memoria asignada a la pila. Este fallo es causado por una falta de comprobación de longitud en la función rfc1035.c:extract_name(), que podría ser abusado para hacer que el código ejecutar memcpy() con un tamaño negativo en sort_rrset() y causar un bloqueo en dnsmasq, resultando en una denegación de servicio. La mayor amenaza de esta vulnerabilidad es la disponibilidad del sistema
References
| https://www.jsof-tech.com/disclosures/dnspooq/ | third-party-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1891568 | issue-tracking, patch, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/ | vendor-advisory | |
| https://security.gentoo.org/glsa/202101-17 | third-party-advisory, vendor-advisory | |
| https://www.debian.org/security/2021/dsa-4844 | third-party-advisory, vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/ | vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2021/03/msg00027.html | mailing-list, third-party-advisory | |
| https://www.kb.cert.org/vuls/id/434904 | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-25687 changed 2025-11-04 | CVE Terms of Use |
| NVD | CVE-2020-25687 changed 2026-06-17 | Public domain |