Gentoo: GLSA-201701-28: c-ares: Heap-based buffer overflow
Summary
A hostname with an escaped trailing dot (such as "hello\\.") would have its size calculated incorrectly leading to a single byte written beyond the end of a buffer on the heap.
Resolution
All c-ares users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=net-dns/c-ares-1.12.0"
References
[ 1 ] CVE-2016-5180 http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-5180
Availability
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/201701-28
Concerns
Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users' machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.
![Dist Gentoo](/images/distros/dist-gentoo.png)
Synopsis
A heap-based buffer overflow in c-ares might allow remote attackers to cause a Denial of Service condition.
Background
c-ares is a C library for asynchronous DNS requests (including name resolves).
Affected Packages
------------------------------------------------------------------- Package / Vulnerable / Unaffected ------------------------------------------------------------------- 1 net-dns/c-ares < 1.12.0 >= 1.12.0
Impact
===== A remote attacker, able to provide a specially crafted hostname to an application using c-ares, could potentially cause a Denial of Service condition.
Workaround
There is no known workaround at this time.