cve.bz

CVE-2017-13704 Improper Input Validation

7.5 highEPSS 65%

High (7.5). EPSS 65% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
65% (unchanged from 65% a week ago; 65% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-13704 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-13704?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-13704?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-13704 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.04
debian:debian_linux7.0
debian:debian_linux7.1
debian:debian_linux9.0
fedoraproject:fedora27
novell:leap42.2
novell:leap42.3
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_workstation7.0
thekelleys:dnsmasqthrough 2.77

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14dnsmasq2.78-1DEBIAN-CVE-2017-13704
Alpinev3.7, v3.8, v3.9 and 15 morednsmasq2.78-r0ALPINE-CVE-2017-13704

From the distributions' data via OSV.dev: the Debian Security Tracker; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5dnsmasqNot affected
Red Hat Enterprise Linux 6dnsmasqNot affected
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)dnsmasqNot affected
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)dnsmasqNot affected
Red Hat OpenStack Platform 10 (Newton)dnsmasqNot affected
Red Hat OpenStack Platform 11 (Ocata)dnsmasqNot affected
Red Hat OpenStack Platform 12 (Pike)dnsmasqNot affected
Red Hat OpenStack Platform 8 (Liberty)dnsmasqNot affected
Red Hat OpenStack Platform 9 (Mitaka)dnsmasqNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-13704.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-17-332-01Siemens SCALANCE W1750D, M800, S615, and RUGGEDCOM RM1224 (Update C)2017-11-17MultipleSiemens RUGGEDCOM RM1224: All versions < V5.0, Siemens SCALANCE M-800 / S615: All versions < V5.0, Siemens SCALANCE W1750D: All versions < V6.5.1.5none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON