CVE-2020-25682 Memory corruption in dnsmasq
A buffer overflow in dnsmasq allows remote attackers to execute arbitrary code or cause denial of service via crafted DNS packets.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-25682?
CVE-2020-25682 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2020-25682?
It affects 3 products.
Products include Debian Debian Linux, Fedoraproject Fedora, Thekelleys Dnsmasq.
How do I fix CVE-2020-25682?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2020-25682 being exploited?
There is no known exploitation of CVE-2020-25682 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2020-25682, CLEANSTART-2026-KH33666, DEBIAN-CVE-2020-25682, GHSA-3qqq-357h-32gj, UBUNTU-CVE-2020-25682.