← Vulnerability feed

Vulnerability record · CVE-2017-14495 · published 3 October 2017

CVE-2017-14495: dnsmasq memory leak in DNS response creation causes denial of service

Canonical · Ubuntu Linux

dnsmasq before 2.78 leaks memory when the --add-mac, --add-cpe-id or --add-subnet option is enabled, and DNS response creation triggers the leak. Repeated queries steadily consume memory until the resolver or DHCP service is exhausted, so it matters for any deployment running those options on an internet-reachable or client-facing instance.

7.5 CVSS 3.0 High EPSS 84% · top 0.3% CWE-772 · CWE-772
7.5CVSS 3.0 base score, v2 5.0
84%EPSS exploitation probability, 30 days
NoNot in CISA KEV
6Affected product versions listed by NVD
42References
17 Jun 2026Last modified by NVD

Description

Memory leak in dnsmasq before 2.78, when the --add-mac, --add-cpe-id or --add-subnet option is specified, allows remote attackers to cause a denial of service (memory consumption) via vectors involving DNS response creation.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.

high priorityNetwork-reachable, unauthenticated denial of service with a very high EPSS score and public exploit code, though limited to instances using the affected options.

What it is

dnsmasq before 2.78 leaks memory when the --add-mac, --add-cpe-id or --add-subnet option is enabled, and DNS response creation triggers the leak. Repeated queries steadily consume memory until the resolver or DHCP service is exhausted, so it matters for any deployment running those options on an internet-reachable or client-facing instance.

Impact

A remote attacker can drive unbounded memory consumption and cause a denial of service, taking down DNS and DHCP service for all clients relying on the affected dnsmasq instance.

Attack surface

Reachable over the network via DNS traffic with no authentication and no user interaction, per the CVSS vector AV:N/AC:L/PR:N/UI:N. It only applies where one of the three affected options is configured.

Exploitation

Not listed in CISA KEV, but EPSS is very high at 0.843 (99.7th percentile) and a public Exploit-DB entry (42945) exists, indicating mature public exploitation.

What to do

  • Upgrade dnsmasq to 2.78 or later, or apply the vendor patch for your distribution (Red Hat RHSA-2017:2836, Debian DSA-3989, Ubuntu USN-3430-1/2).
  • If patching is delayed, remove or disable the --add-mac, --add-cpe-id and --add-subnet options where they are not strictly required.
  • Restrict DNS and DHCP exposure to trusted networks and block external access to the resolver port.
  • Monitor dnsmasq process memory and restart on abnormal growth as a stopgap.
  • Track vendor advisories for embedded or appliance builds (Aruba, Siemens, Synology, NVIDIA) that bundle dnsmasq.

Detection

  • Monitor dnsmasq process RSS over time for steady growth without corresponding query volume increases.
  • Alert on OOM-killer events or service restarts affecting dnsmasq.
  • Baseline DNS query rates per source and flag sustained high-volume response generation from single sources.
  • Check configuration management data for hosts still running the affected options on unpatched dnsmasq versions.

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

Affected products

6 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
http://thekelleys.org.uk/dnsmasq/CHANGELOG Release NotesVendor Advisory
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=51eadb692a5123b9838e5a68ecace3ac579a3a45
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.securityfocus.com/bid/101977
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/security/vulnerabilities/3199382 Issue TrackingThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf
https://security.gentoo.org/glsa/201710-27
https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html Third Party Advisory
https://www.exploit-db.com/exploits/42945/ Third 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
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
http://thekelleys.org.uk/dnsmasq/CHANGELOG Release NotesVendor Advisory
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=51eadb692a5123b9838e5a68ecace3ac579a3a45
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.securityfocus.com/bid/101977
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/security/vulnerabilities/3199382 Issue TrackingThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf
https://security.gentoo.org/glsa/201710-27
https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html Third Party Advisory
https://www.exploit-db.com/exploits/42945/ Third 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

Track CVE-2017-14495 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 Open in platform

Related vulnerabilities

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

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

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