Bug 1495410 (CVE-2017-14492) - CVE-2017-14492 dnsmasq: heap overflow in the IPv6 router advertisement code
Summary: CVE-2017-14492 dnsmasq: heap overflow in the IPv6 router advertisement code
Alias: CVE-2017-14492
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1495516 1495517 1496264 1496265 1497691
Blocks: 1495418
TreeView+ depends on / blocked
Reported: 2017-09-26 01:47 UTC by Fabio Olive Leite
Modified: 2021-02-17 01:28 UTC (History)
23 users (show)

Fixed In Version: dnsmasq 2.78
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Last Closed: 2017-10-02 18:15:15 UTC

Attachments (Terms of Use)
Upstream commit (1.53 KB, patch)
2017-09-26 10:46 UTC, Tomas Hoger
no flags Details | Diff

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2836 0 normal SHIPPED_LIVE Critical: dnsmasq security update 2017-10-02 21:18:46 UTC
Red Hat Product Errata RHSA-2017:2837 0 normal SHIPPED_LIVE Critical: dnsmasq security update 2017-10-02 20:19:55 UTC

Description Fabio Olive Leite 2017-09-26 01:47:17 UTC
Red Hat Product Security has been made aware of a heap-based buffer overflow affecting the DHCP implementation of dnsmasq.

Comment 1 Doran Moppert 2017-09-26 05:11:36 UTC

Name: Felix Wilhelm (Google Security Team), Fermin J. Serna (Google Security Team), Gabriel Campana (Google Security Team), Kevin Hamacher (Google Security Team), Ron Bowes (Google Security Team)

Comment 2 Doran Moppert 2017-09-26 08:43:15 UTC
Versions of dnsmasq shipped with Red Hat Enterprise Linux 6 and 5 do not include the IPv6 Router Advertisement code which includes this flaw.

Comment 3 Tomas Hoger 2017-09-26 08:47:49 UTC
Further details from the 2.78 pre-release CHANGELOG:

    Fix heap overflow in IPv6 router advertisement code.
    This is a potentially serious security hole, as a
    crafted RA request can overflow a buffer and crash or
    control dnsmasq. Attacker must be on the local network.
    CVE-2017-14492 applies.
        Credit to Felix Wilhelm, Fermin J. Serna, Gabriel Campana
    and Kevin Hamacher of the Google Security Team for
    finding this.

Comment 5 Tomas Hoger 2017-09-26 10:46:49 UTC
Created attachment 1330990 [details]
Upstream commit

Comment 12 Adam Mariš 2017-10-02 13:19:52 UTC
Created dnsmasq tracking bugs for this issue:

Affects: fedora-all [bug 1497691]

Comment 14 errata-xmlrpc 2017-10-02 16:23:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.2 Extended Update Support
  Red Hat Enterprise Linux 7.3 Extended Update Support

Via RHSA-2017:2837 https://access.redhat.com/errata/RHSA-2017:2837

Comment 15 errata-xmlrpc 2017-10-02 17:20:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2836 https://access.redhat.com/errata/RHSA-2017:2836

Comment 16 Garth Mollett 2017-10-03 20:54:17 UTC

Red Hat OpenStack Platform includes the dnsmasq-utils RPM which does not contain this flaw's affected code-paths; Red Hat OpenStack Platform is therefore listed as not affected.

However, because all versions of Red Hat OpenStack Platform are based on Red Hat Enterprise Linux, all Red Hat OpenStack Platform users should absolutely upgrade the dnsmasq RPM from Red Hat Enterprise Linux as a matter of urgency using standard update mechanisms (such as 'yum update' or 'openstack overcloud update').

Note You need to log in before you can comment on or make changes to this bug.