cbcvebase.
CVE-2020-25683
published 2021-01-20

CVE-2020-25683: 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…

PriorityP351medium5.9CVSS 3.1
AVNACHPRNUINSUCNINAH
EPSS
86.04%
99.7th percentile
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.

Affected

18 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandnsmasq< dnsmasq 2.83-1 (bookworm)dnsmasq 2.83-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
msrccm1_dnsmasq_2.85-1_on_cbl_mariner_1.0
thekelleysdnsmasq< 2.832.83
thekelleysdnsmasq
thekelleysdnsmasq>= 0 < 2.83-12.83-1
thekelleysdnsmasq>= 0 < 2.83-12.83-1
thekelleysdnsmasq>= 0 < 2.83-12.83-1
thekelleysdnsmasq>= 0 < 2.83-12.83-1
thekelleysdnsmasq>= 0 < 2.75-1ubuntu0.16.04.72.75-1ubuntu0.16.04.7
thekelleysdnsmasq>= 0 < 2.75-1ubuntu0.16.04.82.75-1ubuntu0.16.04.8
thekelleysdnsmasq>= 0 < 2.79-1ubuntu0.22.79-1ubuntu0.2
thekelleysdnsmasq>= 0 < 2.79-1ubuntu0.32.79-1ubuntu0.3
thekelleysdnsmasq>= 0 < 2.80-1.1ubuntu1.22.80-1.1ubuntu1.2
thekelleysdnsmasq>= 0 < 2.80-1.1ubuntu1.32.80-1.1ubuntu1.3

Detection & IOCsextracted from sources · hover to see the quote

pathrfc1035.c
  • Vulnerability is only triggerable when dnsmasq is compiled with the HAVE_DNSSEC flag AND DNSSEC is actively enabled at runtime (e.g. via --dnssec option). Scope detection efforts to instances with DNSSEC enabled.
  • Attack vector is a crafted DNS reply; monitor for anomalous or oversized DNS response packets directed at dnsmasq instances with DNSSEC enabled, particularly those acting as open resolvers.
  • Attacker may force dnsmasq to process a controlled domain by tricking a user into visiting a website or opening an email, initiating DNS resolution through the vulnerable dnsmasq instance.
  • The crash manifests as a dnsmasq process termination (DoS); monitor for unexpected dnsmasq crashes or restarts, especially when DNSSEC is enabled, as an indicator of exploitation attempts.
  • ·Versions of dnsmasq shipped with Red Hat Enterprise Linux 5, 6, and 7 are NOT affected because they are not compiled with DNSSEC support (HAVE_DNSSEC flag absent).
  • ·The vulnerability is fixed in dnsmasq version 2.83 and later. Debian packages fixed in 2.83-1 across all active releases.
  • ·If DNSSEC cannot be patched immediately, the only known mitigation is to disable DNSSEC by removing the --dnssec command line option or the dnssec option from the dnsmasq configuration file.

CVSS provenance

nvdv3.15.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.07.1HIGHAV:N/AC:M/Au:N/C:N/I:N/A:C
osv5.9MEDIUM
vendor_cisco8.1HIGH
vendor_debian5.9MEDIUM
vendor_msrc5.9MEDIUM
vendor_redhat5.9MEDIUM
vendor_ubuntu3.7LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.