Every CVE Search/ Get API key

CVE-2017-14495

Memory leak in dnsmasq before 2.78, when the --add-mac, --add-cpe-id or --add-subnet option is...

7.5 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

85.4%Up 60.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2017-14495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-772
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2017-14495
Updated
2026-11-02
EUVDEUVD-2017-5998 No score

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.

Record
EUVD-2017-5998
Updated
2026-11-03
GitHub AdvisoriesGHSA-rcfc-xq5g-7phm 7.5

Memory leak in dnsmasq before 2.78, when the --add-mac, --add-cpe-id or --add-subnet option is...

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.

Record
GHSA-rcfc-xq5g-7phm
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-772
Updated
2026-11-02
OSVALPINE-CVE-2017-14495 7.5

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.

Record
ALPINE-CVE-2017-14495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVBELL-CVE-2017-14495 7.5

CVE-2017-14495 does not affect BellSoft software

Record
BELL-CVE-2017-14495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 12 moreShow less
OSV 7.5

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.

Record
CVE-2017-14495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2017-14495 7.5

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.

Record
DEBIAN-CVE-2017-14495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2017:2836 9.8

Red Hat Security Advisory: dnsmasq security update

Record
RHSA-2017:2836
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2017-14495 7.5

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.

Record
UBUNTU-CVE-2017-14495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2017-0364 No score

Updated dnsmasq packages fix security vulnerabilities

CVE-2017-13704: Dnsmasq could be made to crash on a large DNS query. A DNS query received by UDP which exceeds 512 bytes (or the EDNS0 packet size, if different.) is enough to cause SIGSEGV.

CVE-2017-14491: A heap buffer overflow was found in dnsmasq in the code responsible for building DNS replies. An attacker could send crafted DNS packets to dnsmasq which would cause it to crash or, potentially, execute arbitrary code.

CVE-2017-14492: A heap buffer overflow was discovered in dnsmasq in the IPv6 router advertisement (RA) handling code. An attacker on the local network segment could send crafted RAs to dnsmasq which would cause it to crash or, potentially, execute arbitrary code. This issue only affected configurations using one of these options: enable-ra, ra-only, slaac, ra-names, ra-advrouter, or ra-stateless.

CVE-2017-14493: A stack buffer overflow was found in dnsmasq in the DHCPv6 code. An attacker on the local network could send a crafted DHCPv6 request to dnsmasq which would cause it to a crash or, potentially, execute arbitrary code.

CVE-2017-14494: An information leak was found in dnsmasq in the DHCPv6 relay code. An attacker on the local network could send crafted DHCPv6 packets to dnsmasq causing it to forward the contents of process memory, potentially leaking sensitive data.

CVE-2017-14495: A memory exhaustion flaw was found in dnsmasq in the EDNS0 code. An attacker could send crafted DNS packets which would trigger memory allocations which would never be freed, leading to unbounded memory consumption and eventually a crash. This issue only affected configurations using one of the options: add-mac, add-cpe-id, or add-subnet.

CVE-2017-14496: An integer underflow flaw leading to a buffer over-read was found in dnsmasq in the EDNS0 code. An attacker could send crafted DNS packets to dnsmasq which would cause it to crash. This issue only affected configurations using one of the options: add-mac, add-cpe-id, or add-subnet.

Record
MGASA-2017-0364
Updated
2026-11-02
OSVMGASA-2017-0367 No score

Updated dnsmasq packages fix security vulnerabilities

An audit by mozilla security found several vulnerability and potential vulnerability in dnsmasq:

  • Uninitialized buffer leads to memory leakage
  • Allocated memory is not cleared
  • Unchecked return value can lead to NULL pointer dereference
  • Hardcoded values in fscanf() format strings with aliased buffers

CVE-2017-13704: Dnsmasq could be made to crash on a large DNS query: A DNS query received by UDP which exceeds 512 bytes (or the EDNS0 packet size, if different.) is enough to cause SIGSEGV. (bug 21793)

CVE-2017-14491: A heap buffer overflow was found in dnsmasq in the code responsible for building DNS replies. An attacker could send crafted DNS packets to dnsmasq which would cause it to crash or, potentially, execute arbitrary code.

CVE-2017-14492: A heap buffer overflow was discovered in dnsmasq in the IPv6 router advertisement (RA) handling code. An attacker on the local network segment could send crafted RAs to dnsmasq which would cause it to crash or, potentially, execute arbitrary code. This issue only affected configurations using one of these options: enable-ra, ra-only, slaac, ra-names, ra-advrouter, or ra-stateless.

CVE-2017-14493: A stack buffer overflow was found in dnsmasq in the DHCPv6 code. An attacker on the local network could send a crafted DHCPv6 request to dnsmasq which would cause it to a crash or, potentially, execute arbitrary code.

CVE-2017-14494: An information leak was found in dnsmasq in the DHCPv6 relay code. An attacker on the local network could send crafted DHCPv6 packets to dnsmasq causing it to forward the contents of process memory, potentially leaking sensitive data.

CVE-2017-14495: A memory exhaustion flaw was found in dnsmasq in the EDNS0 code. An attacker could send crafted DNS packets which would trigger memory allocations which would never be freed, leading to unbounded memory consumption and eventually a crash. This issue only affected configurations using one of the options: add-mac, add-cpe-id, or add-subnet.

CVE-2017-14496: An integer underflow flaw leading to a buffer over-read was found in dnsmasq in the EDNS0 code. An attacker could send crafted DNS packets to dnsmasq which would cause it to crash. This issue only affected configurations using one of the options: add-mac, add-cpe-id, or add-subnet.

Record
MGASA-2017-0367
Updated
2026-11-02
OSVopenSUSE-SU-2024:10721-1 No score

dnsmasq-2.86-1.1 on GA media

These are all security issues fixed in the dnsmasq-2.86-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10721-1
Updated
2026-11-02
OSVSUSE-SU-2017:2616-1 No score

Security update for dnsmasq

This update for dnsmasq fixes the following issues.

Remedy the following security issues:

  • CVE-2017-14491: 2 byte heap based overflow. [bsc#1060354]
  • CVE-2017-14492: heap based overflow. [bsc#1060355]
  • CVE-2017-14493: stack based overflow. [bsc#1060360]
  • CVE-2017-14494: DHCP - info leak. [bsc#1060361]
  • CVE-2017-14495: DNS - OOM DoS. [bsc#1060362]
  • CVE-2017-14496: DNS - DoS Integer underflow. [bsc#1060364]
  • Prevent a man-in-the-middle attack (bsc#972164, fate#321175).

Furthermore, the following issues have been fixed:

  • Fix DHCP relaying, broken in 2.76 and 2.77.
  • Update to version 2.78 (fate#321175, fate#322030, bsc#1035227).
  • Fix PXE booting for UEFI architectures (fate#322030).
  • Drop PrivateDevices=yes which breaks logging (bsc#902511, bsc#904537)
  • Build with support for DNSSEC (fate#318323, bsc#908137).

Please note that this update brings a (small) potential incompatibility in the handling of 'basename' in --pxe-service. Please read the CHANGELOG and the documentation if you are using this option.

Record
SUSE-SU-2017:2616-1
Updated
2026-11-02
OSVSUSE-SU-2017:2617-1 No score

Security update for dnsmasq

This update for dnsmasq fixes the following security issues:

  • CVE-2017-14491: 2 byte heap based overflow. [bsc#1060354]
  • CVE-2017-14492: heap based overflow. [bsc#1060355]
  • CVE-2017-14493: stack based overflow. [bsc#1060360]
  • CVE-2017-14494: DHCP - info leak. [bsc#1060361]
  • CVE-2017-14495: DNS - OOM DoS. [bsc#1060362]
  • CVE-2017-14496: DNS - DoS Integer underflow. [bsc#1060364]

This update brings a (small) potential incompatibility in the handling of 'basename' in --pxe-service. Please read the CHANGELOG and the documentation if you are using this option.

Record
SUSE-SU-2017:2617-1
Updated
2026-11-02
OSVSUSE-SU-2017:2618-1 No score

Security update for dnsmasq

This update for dnsmasq fixes the following security issues:

  • CVE-2017-14491: 2 byte heap based overflow. [bsc#1060354]
  • CVE-2017-14492: heap based overflow. [bsc#1060355]
  • CVE-2017-14493: stack based overflow. [bsc#1060360]
  • CVE-2017-14494: DHCP - info leak. [bsc#1060361]
  • CVE-2017-14495: DNS - OOM DoS. [bsc#1060362]
  • CVE-2017-14496: DNS - DoS Integer underflow. [bsc#1060364]
Record
SUSE-SU-2017:2618-1
Updated
2026-11-02
OSVSUSE-SU-2017:2619-1 No score

Security update for dnsmasq

This update for dnsmasq fixes the following security issues:

  • CVE-2017-14491: 2 byte heap based overflow. [bsc#1060354]
  • CVE-2017-14492: heap based overflow. [bsc#1060355]
  • CVE-2017-14493: stack based overflow. [bsc#1060360]
  • CVE-2017-14494: DHCP - info leak. [bsc#1060361]
  • CVE-2017-14495: DNS - OOM DoS. [bsc#1060362]
  • CVE-2017-14496: DNS - DoS Integer underflow. [bsc#1060364]

This update brings a (small) potential incompatibility in the handling of 'basename' in --pxe-service. Please read the CHANGELOG and the documentation if you are using this option.

Record
SUSE-SU-2017:2619-1
Updated
2026-11-02
OSVUSN-3430-1 No score

dnsmasq vulnerabilities

Felix Wilhelm, Fermin J. Serna, Gabriel Campana and Kevin Hamacher discovered that Dnsmasq incorrectly handled DNS requests. A remote attacker could use this issue to cause Dnsmasq to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-14491)

Felix Wilhelm, Fermin J. Serna, Gabriel Campana and Kevin Hamacher discovered that Dnsmasq incorrectly handled IPv6 router advertisements. A remote attacker could use this issue to cause Dnsmasq to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-14492)

Felix Wilhelm, Fermin J. Serna, Gabriel Campana and Kevin Hamacher discovered that Dnsmasq incorrectly handled DHCPv6 requests. A remote attacker could use this issue to cause Dnsmasq to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-14493)

Felix Wilhelm, Fermin J. Serna, Gabriel Campana and Kevin Hamacher discovered that Dnsmasq incorrectly handled DHCPv6 packets. A remote attacker could use this issue to possibly obtain sensitive memory contents. (CVE-2017-14494)

Felix Wilhelm, Fermin J. Serna, Gabriel Campana and Kevin Hamacher discovered that Dnsmasq incorrectly handled DNS requests. A remote attacker could use this issue to cause Dnsmasq to consume memory, resulting in a denial of service. (CVE-2017-14495)

Felix Wilhelm, Fermin J. Serna, Gabriel Campana and Kevin Hamacher discovered that Dnsmasq incorrectly handled DNS requests. A remote attacker could use this issue to cause Dnsmasq to crash, resulting in a denial of service. (CVE-2017-14496)

Record
USN-3430-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
dnsmasq
Alpine:v3.10
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.11
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.12
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.13
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.14
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.15
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.16
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.17
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.18
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.19
before 2.78-r0
2.78-r0
Show 51 moreShow less
Affected packages
PackageAffectedFixed
dnsmasq
Alpine:v3.20
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.21
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.22
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.23
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.24
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.3
before 2.76-r1
2.76-r1
dnsmasq
Alpine:v3.4
before 2.76-r1
2.76-r1
dnsmasq
Alpine:v3.5
before 2.76-r2
2.76-r2
dnsmasq
Alpine:v3.6
before 2.76-r5
2.76-r5
dnsmasq
Alpine:v3.7
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.8
before 2.78-r0
2.78-r0
dnsmasq
Alpine:v3.9
before 2.78-r0
2.78-r0
dnsmasq
Debian:12
before 2.78-1
2.78-1
dnsmasq
Debian:13
before 2.78-1
2.78-1
dnsmasq
Debian:14
before 2.78-1
2.78-1
dnsmasq
Mageia:6
From an advisory covering 7 CVEs
before 2.77-1.2.mga6
2.77-1.2.mga6
dnsmasq
Mageia:5
From an advisory covering 7 CVEs
before 2.77-1.1.mga5
2.77-1.1.mga5
dnsmasq
Red Hat:enterprise_linux:7::client
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-utils
Red Hat:enterprise_linux:7::client
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq
Red Hat:enterprise_linux:7::computenode
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-utils
Red Hat:enterprise_linux:7::computenode
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq
Red Hat:enterprise_linux:7::server
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-utils
Red Hat:enterprise_linux:7::server
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq
Red Hat:enterprise_linux:7::workstation
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq-utils
Red Hat:enterprise_linux:7::workstation
From an advisory covering 6 CVEs
before 0:2.76-2.el7_4.2
0:2.76-2.el7_4.2
dnsmasq
SUSE:Linux Enterprise Server 12-LTSS
From an advisory covering 8 CVEs
before 2.78-6.6.1
2.78-6.6.1
dnsmasq
SUSE:Linux Enterprise Point of Sale 11 SP3
From an advisory covering 8 CVEs
before 2.78-0.16.5.1
2.78-0.16.5.1
dnsmasq
SUSE:Linux Enterprise Server 11 SP3-LTSS
From an advisory covering 8 CVEs
before 2.78-0.16.5.1
2.78-0.16.5.1
dnsmasq
SUSE:Linux Enterprise Server 11 SP3-TERADATA
From an advisory covering 8 CVEs
before 2.78-0.16.5.1
2.78-0.16.5.1
dnsmasq
SUSE:OpenStack Cloud 6
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:OpenStack Cloud 7
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Desktop 12 SP2
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server 12 SP1-LTSS
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server 12 SP2
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 6 CVEs
before 2.78-18.3.1
2.78-18.3.1
dnsmasq
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 8 CVEs
before 2.78-0.17.5.1
2.78-0.17.5.1
dnsmasq
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 8 CVEs
before 2.78-0.17.5.1
2.78-0.17.5.1
dnsmasq
Ubuntu:14.04:LTS
before 2.68-1ubuntu0.2, plus listed versions
2.66-4ubuntu12.67-12.68-12.68-1ubuntu0.1
2.68-1ubuntu0.2
dnsmasq
Ubuntu:16.04:LTS
before 2.75-1ubuntu0.16.04.3, plus listed versions
2.75-12.75-1ubuntu0.16.04.12.75-1ubuntu0.16.04.2
2.75-1ubuntu0.16.04.3
dnsmasq
Ubuntu:14.04:LTS
From an advisory covering 6 CVEs
before 2.68-1ubuntu0.2, plus listed versions
2.66-4ubuntu12.67-12.68-12.68-1ubuntu0.1
2.68-1ubuntu0.2
dnsmasq
Ubuntu:16.04:LTS
From an advisory covering 6 CVEs
before 2.75-1ubuntu0.16.04.3, plus listed versions
2.75-12.75-1ubuntu0.16.04.12.75-1ubuntu0.16.04.2
2.75-1ubuntu0.16.04.3
dnsmasq
openSUSE:Tumbleweed
From an advisory covering 14 CVEs
before 2.86-1.1
2.86-1.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBDnsmasq < 2.78 - Lack of free() Denial of Service2017-10-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2017-14495 is a high vulnerability (CVSS 7.5) in Thekelleys Dnsmasq, published October 2, 2017. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 85.4%, the 99th percentile. Fixed in dnsmasq 2.78-r0.

References

Show 95 moreShow less
MoveEnter Open