CVE-2020-25682
Heap-based Buffer Overflow
Description
A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the network, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-allocated memory, possibly executing code on the machine. The flaw is in the rfc1035.c:extract_name() function, which writes data to the memory pointed by name assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths, it is possible extract_name() gets passed an offset from the base buffer, thus reducing, in practice, the number of available bytes that can be written in the buffer. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Official description from the CVE record, published by redhat. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
EPSS
- Score
- 0.75066 (75.1% probability)
- Percentile
- 99.5%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
Weakness (CWE)
- CWE-122Heap-based Buffer Overflow
Affected products
dnsmasq
- affected: dnsmasq 2.83
References
- jsof-tech.com/disclosures/dnspooq
- bugzilla.redhat.com/show_bug.cgi?id=1882014
- FEDORA-2021-84440e87ba (lists.fedoraproject.org)vendor-advisory
- GLSA-202101-17 (security.gentoo.org)vendor-advisory
- DSA-4844 (debian.org)vendor-advisory
- FEDORA-2021-2e4c3d5a9d (lists.fedoraproject.org)vendor-advisory
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update (lists.debian.org)mailing-list
- kb.cert.org/vuls/id/434904
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:50 UTC. Sources and licenses