Vulnerabilities/CVE-2017-14493, published 3 October 2017

CVE-2017-14493: dnsmasq DHCPv6 stack buffer overflow allows remote code execution

Canonical, Ubuntu Linux

dnsmasq before 2.78 contains a stack-based buffer overflow reachable through a crafted DHCPv6 request. A remote, unauthenticated attacker can crash the service or potentially execute arbitrary code on the host running dnsmasq. Because dnsmasq is widely embedded in routers, appliances and Linux distributions, the flaw affects a large installed base.

  • 9.8 CVSS 3.0 Critical
  • EPSS 85%, top 0.3%
  • CWE-119, Memory buffer overflow

Description

Stack-based buffer overflow in dnsmasq before 2.78 allows remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted DHCPv6 request.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

Critical priorityCVSS 9.8 with network reachability, no authentication, and public exploit code make this a high-impact, readily exploitable flaw.

What it is

dnsmasq before 2.78 contains a stack-based buffer overflow reachable through a crafted DHCPv6 request. A remote, unauthenticated attacker can crash the service or potentially execute arbitrary code on the host running dnsmasq. Because dnsmasq is widely embedded in routers, appliances and Linux distributions, the flaw affects a large installed base.

Impact

An attacker can cause a denial of service by crashing dnsmasq, or achieve arbitrary code execution in the context of the dnsmasq process, which often runs with elevated privileges. That can lead to full compromise of the affected device or host.

Attack surface

The flaw is reached over the network via a crafted DHCPv6 request, per the CVSS vector AV:N/PR:N/UI:N, so no authentication or user interaction is required. Any host exposing a dnsmasq DHCPv6 listener is potentially reachable.

Exploitation

CISA KEV does not list this CVE, but EPSS is very high (0.836 probability, 99.7th percentile) and a public Exploit-DB entry (42943) exists, indicating mature public exploitation capability.

What to do

  • Upgrade dnsmasq to 2.78 or later, or apply the vendor patch for your distribution (Red Hat RHSA-2017:2836/2837, Ubuntu USN-3430-1/2, Debian DSA-3989).
  • If patching is not immediately possible, disable or restrict the DHCPv6 listener and block DHCPv6 traffic from untrusted networks at the perimeter.
  • Run dnsmasq with the least privilege possible and isolate it from sensitive network segments.
  • Inventory embedded and appliance deployments (routers, NAS, network gear) that bundle dnsmasq and apply vendor firmware updates.

Detection

  • Monitor dnsmasq process crashes or restarts, especially correlated with DHCPv6 traffic.
  • Inspect DHCPv6 request payloads for oversized or malformed options that could trigger the overflow.
  • Watch for unexpected child processes or outbound connections originating from the dnsmasq process, which may indicate code execution.
  • Track DHCPv6 traffic from untrusted or unexpected source addresses toward dnsmasq listeners.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

7 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.opensuse.org/opensuse-security-announce/2017-10/msg00006.html Issue TrackingMailing ListThird Party Advisory
http://nvidia.custhelp.com/app/answers/detail/a_id/4561 Third Party Advisory
http://thekelleys.org.uk/dnsmasq/CHANGELOG Release NotesVendor Advisory
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=3d4ff1ba8419546490b464418223132529514033
http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-005.txt
http://www.debian.org/security/2017/dsa-3989 Third Party Advisory
http://www.securityfocus.com/bid/101085 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039474 Third Party AdvisoryVDB Entry
http://www.ubuntu.com/usn/USN-3430-1 Third Party Advisory
http://www.ubuntu.com/usn/USN-3430-2 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2836 PatchThird Party Advisory
https://access.redhat.com/errata/RHSA-2017:2837 PatchThird Party Advisory
https://access.redhat.com/security/vulnerabilities/3199382 Issue TrackingThird Party Advisory
https://security.gentoo.org/glsa/201710-27 Third Party Advisory
https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html Third Party Advisory
https://www.exploit-db.com/exploits/42943/ ExploitThird Party AdvisoryVDB Entry
https://www.kb.cert.org/vuls/id/973527 Third Party AdvisoryUS Government Resource
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html
https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2017-10/msg00006.html Issue TrackingMailing ListThird Party Advisory
http://nvidia.custhelp.com/app/answers/detail/a_id/4561 Third Party Advisory
http://thekelleys.org.uk/dnsmasq/CHANGELOG Release NotesVendor Advisory
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=3d4ff1ba8419546490b464418223132529514033
http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-005.txt
http://www.debian.org/security/2017/dsa-3989 Third Party Advisory
http://www.securityfocus.com/bid/101085 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039474 Third Party AdvisoryVDB Entry
http://www.ubuntu.com/usn/USN-3430-1 Third Party Advisory
http://www.ubuntu.com/usn/USN-3430-2 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:2836 PatchThird Party Advisory
https://access.redhat.com/errata/RHSA-2017:2837 PatchThird Party Advisory
https://access.redhat.com/security/vulnerabilities/3199382 Issue TrackingThird Party Advisory
https://security.gentoo.org/glsa/201710-27 Third Party Advisory
https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html Third Party Advisory
https://www.exploit-db.com/exploits/42943/ ExploitThird Party AdvisoryVDB Entry
https://www.kb.cert.org/vuls/id/973527 Third Party AdvisoryUS Government Resource
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html
https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html
https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq Third Party Advisory

Track CVE-2017-14493 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

5.3CVE-2015-4902Oracle Java SE Deployment integrity check bypassCVE-2015-4902 is an unspecified vulnerability in the Deployment component of Oracle Java SE 6u101, 7u85, and 8u60. It allows remote attackers to affe…KEVEPSS 14%analysed10.0CVE-2015-7220Opensuse leap memory buffer overflow vulnerabilityBuffer overflow in the XDRBuffer::grow function in js/src/vm/Xdr.cpp in Mozilla Firefox before 43.0 might allow remote attackers to cause a denial of…EPSS 4.5%10.0CVE-2015-7205Fedoraproject fedora vulnerabilityInteger underflow in the RTPReceiverVideo::ParseRtpPacket function in Mozilla Firefox before 43.0 and Firefox ESR 38.x before 38.5 might allow remote…EPSS 3.2%10.0CVE-2015-7203Mozilla firefox memory buffer overflow vulnerabilityBuffer overflow in the DirectWriteFontInfo::LoadFontFamilyData function in gfx/thebes/gfxDWriteFontList.cpp in Mozilla Firefox before 43.0 might allo…EPSS 4.3%10.0CVE-2015-7202Mozilla firefox memory buffer overflow vulnerabilityMultiple unspecified vulnerabilities in the browser engine in Mozilla Firefox before 43.0 allow remote attackers to cause a denial of service (memory…EPSS 5.9%10.0CVE-2015-7201Fedoraproject fedora memory buffer overflow vulnerabilityMultiple unspecified vulnerabilities in the browser engine in Mozilla Firefox before 43.0 and Firefox ESR 38.x before 38.5 allow remote attackers to …EPSS 6.0%10.0CVE-2009-0846Mit kerberos 5 vulnerabilityThe asn1_decode_generaltime function in lib/krb5/asn.1/asn1_decode.c in the ASN.1 GeneralizedTime decoder in MIT Kerberos 5 (aka krb5) before 1.6.4 a…EPSS 8.9%10.0CVE-2007-0061Vmware ace memory buffer overflow vulnerabilityThe DHCP server in EMC VMware Workstation before 5.5.5 Build 56455 and 6.x before 6.0.1 Build 55017, Player before 1.0.5 Build 56455 and Player 2 bef…EPSS 6.5%

Source: NIST National Vulnerability Database (record CVE-2017-14493), CISA KEV, FIRST EPSS (scores of 2026-12-05). This page is refreshed as NVD updates the record.