CVE-2020-25682: debian debian_linux Heap-based Buffer Overflow
Vulnerability summary
CVE-2020-25682 is a high (CVSS 8.3) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 70.75% chance of exploitation in the next 30 days, higher than 99.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 14 · Related 8Timeline
- 20-01-2021PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
70.75%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
0.00 pp
From 70.75% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Debian2 products
- dnsmasq< 2.83-1
- debian_linuxEOL9.0 | 10.0
Alpine1 product
- dnsmasq< 2.83-r0
Fedoraproject1 product
- fedoraEOL32 | 33
Thekelleys1 product
- dnsmasq< 2.83
Ubuntu1 product
- dnsmasq< 2.75-1ubuntu0.16.04.7 | < 2.79-1ubuntu0.2 | < 2.80-1.1ubuntu1.2
5 vendors · 6 products
References
15 links- lists.debian.org/debian-lts-announce/2021/03/msg00027.htmlMailing ListX Refsource MLISTThird Party Advisory