CVE-2017-13704 in the critical feed json
In dnsmasq before 2.78, if the DNS packet size does not match the expected size, the size parameter in a memset call gets a negative value.
published 2017-10-02 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-5221
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 65.4%
- EPSS 65.4% chance of exploitation in 30 days, percentile 99.2%
- public exploits
- 0
- none known
Summary
In dnsmasq before 2.78, if the DNS packet size does not match the expected size, the size parameter in a memset call gets a negative value. As it is an unsigned value, memset ends up writing up to 0xffffffff zero's (0xffffffffffffffff in 64 bit platforms), making dnsmasq crash.
Patch / fix
- dnsmasq Debian 14, Debian 13, Debian 12 2.78-1
debian advisories DEBIAN-CVE-2017-13704
- dnsmasq Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 2.78-r0
alpine advisories ALPINE-CVE-2017-13704
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-13704 updated cvss 7.5
dnsmasq: Size parameter overflow via large DNS query
-
Red Hat Enterprise Linux 5 dnsmasq Red Hat Enterprise Linux 6 dnsmasq, dnsmasq-utils Red Hat Enterprise Linux 7 dnsmasq, dnsmasq-utils Red Hat Enterprise Linux OpenStack Platform 6 (Juno) dnsmasq Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) dnsmasq-utils Red Hat OpenStack Platform 8 (Liberty) dnsmasq-utilsnot affected: vulnerable code not present
+4 more productsfewer
Red Hat OpenStack Platform 9 (Mitaka) dnsmasq-utils Red Hat OpenStack Platform 10 (Newton) dnsmasq-utils Red Hat OpenStack Platform 11 (Ocata) dnsmasq Red Hat OpenStack Platform 12 (Pike) dnsmasq-utils
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-17-332-01 updated cvss 5.3
Siemens SCALANCE W1750D, M800, S615, and RUGGEDCOM RM1224 (Update C)
-
Siemens RUGGEDCOM RM1224 <V5.0 Siemens SCALANCE M-800 / S615 <V5.0affected: fixed in V5.0, mitigation
-
Siemens SCALANCE W1750D <V6.5.1.5affected: fixed in V6.5.1.5, mitigation
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
Exploit prediction
65.41% chance of exploitation in the next 30 days, higher than 99.2% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/
vendor-advisory
-
thekelleys.org.uk
/dnsmasq/CHANGELOG
release-notes, vendor-advisory
-
securitytracker.com
/id/1039474
vdb-entry, third-party-advisory
- synology.com /support/security/Synology_SA_17_59_Dnsmasq
-
access.redhat.com
/security/vulnerabilities/3199382
issue-tracking, third-party-advisory
-
securityfocus.com
/bid/101085
vdb-entry, third-party-advisory
-
securityfocus.com
/bid/101977
vdb-entry
-
mail-archive.com
/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html
mailing-list
- thekelleys.org.uk /gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928
-
security.googleblog.com
/2017/10/behind-masq-yet-more-dns-and-dhcp.html
third-party-advisory
-
mail-archive.com
/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html
mailing-list
- cert-portal.siemens.com /productcert/pdf/ssa-689071.pdf
Sources
- CVE List CVE-2017-13704
- NVD CVE-2017-13704
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.