CVE-2020-25682

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.

Categories

8.1
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 38.59% Top 5%
Vendor Advisory fedoraproject.org Vendor Advisory gentoo.org Vendor Advisory debian.org Vendor Advisory fedoraproject.org
Affected: n/a dnsmasq
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2020-25682?
CVE-2020-25682 has been scored as a high severity vulnerability.
How to fix CVE-2020-25682?
To fix CVE-2020-25682, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-25682 being actively exploited in the wild?
It is possible that CVE-2020-25682 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~39% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-25682?
CVE-2020-25682 affects n/a dnsmasq.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.