Skip to content
Fencer Intel
high 7.5

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-utils
    +4 more products
    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
    not affected: vulnerable code not present

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.0
    affected: fixed in V5.0, mitigation
  • Siemens SCALANCE W1750D <V6.5.1.5
    affected: 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

Sources

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.