CVE-2020-25682
publisheddnsmasq: buffer overflow in extract_name() due to missing length check when DNSSEC is enabled
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | dnsmasqdnsmasq 2.83 | Affected | Not stated | redhat |
| Alpine Linux | edge | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Debian | buster | dnsmasq | Advisory build | 2.80-1+deb10u1 | DSA-4844-1 |
| Oracle Linux | 7 | dnsmasqaarch64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12971 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqaarch64 | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| SUSE / openSUSE | SLE-11-SP3 | dnsmasqi586 | Advisory build | 2.78-0.16.14.1 | SUSE-SU-2021:14604-1 |
| Ubuntu | bionic | dnsmasq | Advisory build | 2.79-1ubuntu0.2 | USN-4698-1 |
| Alpine Linux | v3.10 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.11 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.12 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.13 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.14 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.15 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.16 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.17 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.18 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.19 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.20 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.21 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.22 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.23 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Alpine Linux | v3.24 | dnsmasq | Fixed | 2.83-r0 | Package fix record |
| Debian | stretch | dnsmasq | Advisory build | 2.76-5+deb9u3 | DLA-2604-1 |
| Oracle Linux | 7 | dnsmasqaarch64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12972 |
| Oracle Linux | 7 | dnsmasqx86_64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12971 |
| Oracle Linux | 7 | dnsmasqx86_64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12972 |
| Oracle Linux | 8 | dnsmasqaarch64 | Advisory build | 0:2.79-13.el8_3.1 | ELSA-2021-0150 |
| Oracle Linux | 8 | dnsmasqx86_64 | Advisory build | 0:2.79-13.el8_3.1 | ELSA-2021-0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqaarch64 | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqaarch64 | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqppc64le | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqppc64le | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqppc64le | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqs390x | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqs390x | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqs390x | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqsrc | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqsrc | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqsrc | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqx86_64 | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqx86_64 | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasqx86_64 | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| SUSE / openSUSE | SLE-11-SP4 | dnsmasqi586 | Advisory build | 2.78-0.17.15.1 | SUSE-SU-2021:14603-1 |
| SUSE / openSUSE | SLE-11-SP4 | dnsmasqppc64 | Advisory build | 2.78-0.17.15.1 | SUSE-SU-2021:14603-1 |
| SUSE / openSUSE | SLE-11-SP4 | dnsmasqs390x | Advisory build | 2.78-0.17.15.1 | SUSE-SU-2021:14603-1 |
| SUSE / openSUSE | SLE-11-SP4 | dnsmasqx86_64 | Advisory build | 2.78-0.17.15.1 | SUSE-SU-2021:14603-1 |
| SUSE / openSUSE | SLE-12-SP2 | dnsmasqppc64le | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP2 | dnsmasqs390x | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP2 | dnsmasqx86_64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP3 | dnsmasqaarch64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP3 | dnsmasqppc64le | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP3 | dnsmasqs390x | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP3 | dnsmasqx86_64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP4 | dnsmasqaarch64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP4 | dnsmasqppc64le | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP4 | dnsmasqs390x | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP4 | dnsmasqx86_64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP5 | dnsmasqaarch64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP5 | dnsmasqppc64le | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP5 | dnsmasqs390x | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-12-SP5 | dnsmasqx86_64 | Advisory build | 2.78-18.15.1 | SUSE-SU-2021:0166-1 |
| SUSE / openSUSE | SLE-15 | dnsmasqaarch64 | Advisory build | 2.78-3.11.1 | SUSE-SU-2021:0162-1 |
| SUSE / openSUSE | SLE-15 | dnsmasqppc64le | Advisory build | 2.78-3.11.1 | SUSE-SU-2021:0162-1 |
| SUSE / openSUSE | SLE-15 | dnsmasqs390x | Advisory build | 2.78-3.11.1 | SUSE-SU-2021:0162-1 |
| SUSE / openSUSE | SLE-15 | dnsmasqx86_64 | Advisory build | 2.78-3.11.1 | SUSE-SU-2021:0162-1 |
| SUSE / openSUSE | SLE-15-SP1 | dnsmasqaarch64 | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP1 | dnsmasqppc64le | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP1 | dnsmasqs390x | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP1 | dnsmasqx86_64 | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP2 | dnsmasqaarch64 | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP2 | dnsmasqppc64le | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP2 | dnsmasqs390x | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | SLE-15-SP2 | dnsmasqx86_64 | Advisory build | 2.78-7.6.1 | SUSE-SU-2021:0163-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | dnsmasqi586 | Advisory build | 2.78-lp151.5.6.1 | OPENSUSE-SU-2021:0129-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | dnsmasqx86_64 | Advisory build | 2.78-lp151.5.6.1 | OPENSUSE-SU-2021:0129-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | dnsmasqi586 | Advisory build | 2.78-lp152.7.3.1 | OPENSUSE-SU-2021:0124-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | dnsmasqx86_64 | Advisory build | 2.78-lp152.7.3.1 | OPENSUSE-SU-2021:0124-1 |
| Ubuntu | focal | dnsmasq | Advisory build | 2.80-1.1ubuntu1.2 | USN-4698-1 |
| Ubuntu | xenial | dnsmasq | Advisory build | 2.75-1ubuntu0.16.04.7 | USN-4698-1 |
| Oracle Linux | 7 | dnsmasq-utilsaarch64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12971 |
| Oracle Linux | 7 | dnsmasq-utilsaarch64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12972 |
| Oracle Linux | 7 | dnsmasq-utilsx86_64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12971 |
| Oracle Linux | 7 | dnsmasq-utilsx86_64 | Advisory build | 0:2.76-17.0.3.el7_9.3 | ELSA-2023-12972 |
| Oracle Linux | 8 | dnsmasq-utilsaarch64 | Advisory build | 0:2.79-13.el8_3.1 | ELSA-2021-0150 |
| Oracle Linux | 8 | dnsmasq-utilsx86_64 | Advisory build | 0:2.79-13.el8_3.1 | ELSA-2021-0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfoaarch64 | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfoaarch64 | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfoaarch64 | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfoppc64le | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfoppc64le | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfoppc64le | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfos390x | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfos390x | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfos390x | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfox86_64 | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfox86_64 | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debuginfox86_64 | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debugsourceaarch64 | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debugsourceaarch64 | Advisory build | 2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debugsourceaarch64 | Advisory build | 2.79-6.el8_1.1 | RHSA-2021:0152 |
| Red Hat Enterprise Linux | RHEL-8 | dnsmasq-debugsourceppc64le | Advisory build | 2.79-11.el8_2.2 | RHSA-2021:0151 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | dnsmasq | dnsmasq 2.83 (affected) | redhat · cna |
Weaknesses
1- CWE-122
References
8- https://bugzilla.redhat.com/show_bug.cgi?id=1882014
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update https://lists.debian.org/debian-lts-announce/2021/03/msg00027.html
- FEDORA-2021-2e4c3d5a9d https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/
- FEDORA-2021-84440e87ba https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/
- GLSA-202101-17 https://security.gentoo.org/glsa/202101-17
- DSA-4844 https://www.debian.org/security/2021/dsa-4844
- https://www.jsof-tech.com/disclosures/dnspooq/
- https://www.kb.cert.org/vuls/id/434904
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 52a3ff6314e6722cf4957abeed12252d8270200d0b87197371bfe24511b21a2c
- Ingested
- 23 Sep 2026, 07:49:45 UTC
- Source record
- Official CVE record