Gentoo Logo

GNU C Library: Integer overflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200707-04 / glibc
Release Date July 03, 2007
Latest Revision July 03, 2007: 01
Impact normal
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
sys-libs/glibc < 2.5-r4 >= 2.5-r4 Intel compatible

Related bugreports: #183844


An integer overflow in the dynamic loader,, could result in the execution of arbitrary code with escalated privileges.

2.  Impact Information


The GNU C library is the standard C library used by Gentoo Linux systems. It provides programs with basic facilities and interfaces to system calls. is the dynamic linker which prepares dynamically linked programs for execution by resolving runtime dependencies and related functions.


Tavis Ormandy of the Gentoo Linux Security Team discovered a flaw in the handling of the hardware capabilities mask by the dynamic loader. If a mask is specified with a high population count, an integer overflow could occur when allocating memory.


As the hardware capabilities mask is honored by the dynamic loader during the execution of suid and sgid programs, in theory this vulnerability could result in the execution of arbitrary code with root privileges. This update is provided as a precaution against currently unknown attack vectors.

3.  Resolution Information


There is no known workaround at this time.


All users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-libs/glibc-2.5-r4"

4.  References


Page updated July 03, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.