IBM AIX libodm ODMPATH Stack Overflow Vulnerability
iDefense Security Advisory 07.09.07
Jul 09, 2007
AIX applications use libodm to access system settings and device
configuration data stored in the Object Database Manager. The Manager
is responsible for accessing and updating such things as currently
installed software packages and devices. Many of the applications that
use libodm are installed set-uid root.
Local exploitation of a buffer overflow vulnerability in IBM Corp.'s AIX
libodm library could allow an attacker to execute arbitrary code on a
The vulnerability exists in the processing of the ODMPATH environment
variable within the odm_searchpath() function. This function reads the
ODMPATH variable from the user provided environment, and then copies it
into a fixed sized stack buffer without properly validating its length.
This results in a stack-based buffer overflow, and allows the saved
return address to be overwritten.
Exploitation allows an attacker to execute code with root privileges.
Since this is a local attack, an attacker has complete control over the
process environment and can reliably place shellcode at known
addresses. This makes exploitation of this vulnerability trivial.
iDefense has confirmed the existence of this vulnerability in AIX
version 5.3 SP 4. Previous versions may be vulnerable.
iDefense is currently unaware of any workarounds for this issue.
VI. VENDOR RESPONSE
IBM Corp. has addressed this vulnerability with interim fixes. More
information is available at the following URL.
VII. CVE INFORMATION
A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.
VIII. DISCLOSURE TIMELINE
04/02/2007 Initial vendor notification
04/05/2007 Initial vendor response
07/09/2007 Coordinated public disclosure
The discoverer of this vulnerability wishes to remain anonymous.
Get paid for vulnerability research
Free tools, research and upcoming events
X. LEGAL NOTICES
Copyright =A9 2007 iDefense, Inc.
Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDefense. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically,
please e-mail email@example.com for permission.
Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct,
indirect, or consequential loss or damage arising from use of, or
reliance on, this information.