← back
CVE-2020-25687

CVE-2020-25687

EPSS 86.8%CWE-122
In short

A flaw in dnsmasq allows a remote attacker to crash the DNS service by sending specially crafted DNS replies when DNSSEC validation is enabled. This happens because the software doesn't properly check the length of data before copying it to memory.

Technical detail

A heap-based buffer overflow in dnsmasq's extract_name() function (rfc1035.c) occurs before DNSSEC validation, triggered by remote DNS replies with insufficient length checks. The vulnerability leads to negative-size memcpy() calls in sort_rrset(), causing a denial of service; exploitation requires the ability to craft valid DNS responses.

Summary generated and translated by AI from the official 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 products
n/a · dnsmasq

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →