search menu icon-carat-right cmu-wordmark

CERT Coordination Center


glibc unsetenv fails to properly handle environment variables passed more than once to a program

Vulnerability Note VU#846832

Original Release Date: 2001-05-17 | Last Revised: 2002-09-13

Overview

The glibc implementation of unsetenv() fails to properly remove one of two successive occurrences of the same environment variable if the variable is redundently passed to a program.

Description

The glibc implementation of unsetenv(), if called to remove an environment variable that occurs two times in succession on the environment variable list, will fail to remove one of the occurences due to an off-by-one error in the implementation.

Impact

An attacker can pass multiple occurrences of a sensitive environment variable (such as LD_LIBRARY_PATH, LD_PRELOAD, etc.) to a setuid root program. Even if glibc forces that program to ignore these variables, they may be passed along to a program called from the setuid root program. Using this indirect execution, an attacker might cause malicious code to be executed as root.

Solution

Apply vendor patches; see the Systems Affected section below.

Vendor Information

846832
Expand all

Conectiva

Notified:  August 31, 2000 Updated:  May 16, 2001

Status

  Vulnerable

Vendor Statement

http://www.linuxsecurity.com/advisories/other_advisory-689.html

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

The CERT/CC has no additional comments at this time.

If you have feedback, comments, or additional information about this vulnerability, please send us email.

Debian

Notified:  August 31, 2000 Updated:  September 13, 2002

Status

  Vulnerable

Vendor Statement

http://www.linuxsecurity.com/advisories/debian_advisory-683.html

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

The CERT/CC has no additional comments at this time.

If you have feedback, comments, or additional information about this vulnerability, please send us email.

MandrakeSoft

Notified:  August 29, 2000 Updated:  May 16, 2001

Status

  Vulnerable

Vendor Statement

http://www.linuxsecurity.com/advisories/mandrake_advisory-667.html

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

The CERT/CC has no additional comments at this time.

If you have feedback, comments, or additional information about this vulnerability, please send us email.

TurboLinux

Notified:  August 31, 2000 Updated:  May 16, 2001

Status

  Vulnerable

Vendor Statement

http://www.linuxsecurity.com/advisories/turbolinux_advisory-698.html

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

The CERT/CC has no additional comments at this time.

If you have feedback, comments, or additional information about this vulnerability, please send us email.


CVSS Metrics

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A

References

Credit

The original report of this vulnerability was by Tymm Twillman <tymm@coe.missouri.edu>.

This document was last modified by Tim Shimeall.

Other Information

CVE IDs: CVE-2000-0824
Severity Metric: 7.09
Date Public: 1999-09-17
Date First Published: 2001-05-17
Date Last Updated: 2002-09-13 17:19 UTC
Document Revision: 9

Sponsored by the Department of Homeland Security Office of Cybersecurity and Communications.