GNU C Library: Multiple vulnerabilities — GLSA 201602-02

Multiple vulnerabilities have been found in the GNU C library, the worst allowing for remote execution of arbitrary code.

Affected packages

sys-libs/glibc on all architectures
Affected versions < 2.21-r2
Unaffected versions >= 2.21-r2

Background

The GNU C library is the standard C library used by Gentoo Linux systems.

Description

Multiple vulnerabilities have been discovered in the GNU C Library:

  • The Google Security Team and Red Hat discovered a stack-based buffer overflow in the send_dg() and send_vc() functions due to a buffer mismanagement when getaddrinfo() is called with AF_UNSPEC (CVE-2015-7547).
  • The strftime() function access invalid memory when passed out-of-range data, resulting in a crash (CVE-2015-8776).
  • An integer overflow was found in the __hcreate_r() function (CVE-2015-8778).
  • Multiple unbounded stack allocations were found in the catopen() function (CVE-2015-8779).

Please review the CVEs referenced below for additional vulnerabilities that had already been fixed in previous versions of sys-libs/glibc, for which we have not issued a GLSA before.

Impact

A remote attacker could exploit any application which performs host name resolution using getaddrinfo() in order to execute arbitrary code or crash the application. The other vulnerabilities can possibly be exploited to cause a Denial of Service or leak information.

Workaround

A number of mitigating factors for CVE-2015-7547 have been identified. Please review the upstream advisory and references below.

Resolution

All GNU C Library users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-libs/glibc-2.21-r2"
 

It is important to ensure that no running process uses the old glibc anymore. The easiest way to achieve that is by rebooting the machine after updating the sys-libs/glibc package.

Note: Should you run into compilation failures while updating, please see bug 574948.

References

Release date
February 17, 2016

Latest revision
February 17, 2016: 1

Severity
high

Exploitable
local, remote

Bugzilla entries