← Vulnerability feed

Vulnerability record · CVE-2020-25683 · published 20 January 2021

CVE-2020-25683: dnsmasq DNSSEC heap buffer overflow via extract_name length checks

Thekelleys · Dnsmasq

dnsmasq before 2.83 has a heap-based buffer overflow in rfc1035.c:extract_name() when DNSSEC is enabled and before received DNS entries are validated. Missing length checks let a crafted reply drive memcpy() with a negative size in get_rdata(), crashing dnsmasq. The main threat is loss of availability for DNS resolution on affected hosts.

5.9 CVSS 3.1 Medium EPSS 86% · top 0.3% CWE-122 · Heap-based buffer overflow
5.9CVSS 3.1 base score, v2 7.1
86%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
15References
17 Jun 2026Last modified by NVD

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. A remote attacker, who can create valid DNS replies, could use this flaw 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 get_rdata() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityThe flaw is remotely reachable without authentication and causes denial of service, and EPSS is very high, though CVSS is only medium and exploitation is not confirmed in KEV.

What it is

dnsmasq before 2.83 has a heap-based buffer overflow in rfc1035.c:extract_name() when DNSSEC is enabled and before received DNS entries are validated. Missing length checks let a crafted reply drive memcpy() with a negative size in get_rdata(), crashing dnsmasq. The main threat is loss of availability for DNS resolution on affected hosts.

Impact

An attacker who can supply a valid-looking DNS reply can crash the dnsmasq process, causing denial of service for DNS resolution and any services relying on it. The record describes availability impact only; no confidentiality or integrity impact is stated.

Attack surface

Reachable remotely over the network via DNS replies when DNSSEC is enabled; no authentication or user interaction is required per the CVSS vector (AV:N/AC:H/PR:N/UI:N). The high attack complexity reflects the need to craft a reply that passes enough checks to reach the vulnerable code path.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented. EPSS is very high (0.86041, 99.7th percentile), and references include a patch and the DNSPooq disclosure, indicating public technical detail exists, but the record does not confirm in-the-wild exploitation.

What to do

  • Upgrade dnsmasq to version 2.83 or later, or apply the vendor patch referenced in the Red Hat bug and distribution advisories.
  • Apply the Debian, Fedora and Gentoo security updates for dnsmasq on affected systems.
  • If patching is delayed, disable DNSSEC validation in dnsmasq to avoid the vulnerable code path, accepting the loss of DNSSEC protection.
  • Restrict DNS resolver exposure to trusted networks and clients where feasible to reduce the pool of attackers able to send crafted replies.

Detection

  • Monitor dnsmasq process crashes or restarts and correlate them with DNS query volume or unusual upstream responses.
  • Alert on dnsmasq logs showing DNSSEC validation errors or malformed reply handling around the time of service interruptions.
  • Track DNS response sizes and patterns from upstream resolvers for anomalies that could indicate crafted replies targeting extract_name().
  • Use host or network monitoring to detect repeated dnsmasq availability loss on systems with DNSSEC enabled.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2020-25683 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2020-25683), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.