Updated dnsmasq packages fix security vulnerabilities
Publication date: 09 Oct 2017Modification date: 09 Oct 2017
Type: security
Affected Mageia releases : 5
CVE: CVE-2017-13704 , CVE-2017-14491 , CVE-2017-14492 , CVE-2017-14493 , CVE-2017-14494 , CVE-2017-14495 , CVE-2017-14496
Description
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.
References
- https://bugs.mageia.org/show_bug.cgi?id=19528
- https://bugs.mageia.org/show_bug.cgi?id=21793
- https://wiki.mozilla.org/images/f/f7/Dnsmasq-report.pdf
- https://docs.google.com/document/d/14y2kiXgB69fLBY0xuMeqc-YiZg4UDCw2xd4-mZspoP8
- http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011692.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/
- https://access.redhat.com/errata/RHSA-2017:2836
- https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-13704
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14491
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14492
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14493
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14494
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14495
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14496
SRPMS
5/core
- dnsmasq-2.77-1.1.mga5