Heap-based buffer overflow in Dnsmasq - CVE-2017-14493

 

Heap-based buffer overflow in Dnsmasq - CVE-2017-14493

Published: October 3, 2017


Vulnerability identifier: #VU8662
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-14493
CWE-ID: CWE-122
Exploitation vector: Adjecent network
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to boundary error when processing DHCPv6 requests. A remote unauthenticated attacker on local network can send specially crafted DHCPv6 request to the affected service, trigger heap-based buffer overflow and crash the service or execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Dnsmasq
Debian Linux
Amazon Linux AMI
Gentoo Linux
Arch Linux
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
SUSE Linux
Ubuntu
Slackware Linux
Fedora
dnsmasq (Alpine package)
dnsmasq
Edgeline EL300 Converged Edge System

How to mitigate CVE-2017-14493

Update to version 2.78.

dnsmasq (Alpine package) - addressed in versions 2.76-r1, 2.76-r2
Edgeline EL300 Converged Edge System - update to 1.50
dnsmasq - addressed in versions 2.76-4.fc25, 2.76-5.fc26, 2.77-9.fc27

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins