GLSA 201701-28: c-ares: Heap-based buffer overflow

Severity:normal
Title:c-ares: Heap-based buffer overflow
Date:01/11/2017
Bugs: #595536
ID:201701-28

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 Architecture(s)
net-dns/c-ares < 1.12.0 >= 1.12.0 All supported architectures

Description

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.

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.

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

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-201701-28.xml

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.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!