CVE-2020-25682
Reported by redhat · Published January 20, 2021
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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | dnsmasq | dnsmasq 2.83 |
| n/a | dnsmasq | 2.83 |
| arch | dnsmasq | 0 |
| alpine | dnsmasq | 0 |
Timeline
- Jan 18, 2021 CVE Published
- Jan 20, 2021 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (19 in total, the first dated here)
- Mar 6, 2026 Security Advisory (27 in total, the first dated here)
- Sep 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-25682
vulnetix vdb fixes CVE-2020-25682
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-25682/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-84440e87ba vendor-advisoryx_refsource_FEDORA
- GLSA-202101-17 vendor-advisoryx_refsource_GENTOO
- DSA-4844 vendor-advisoryx_refsource_DEBIAN
- FEDORA-2021-2e4c3d5a9d vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update mailing-listx_refsource_MLIST
- https://www.kb.cert.org/vuls/id/434904 advisory