Secunia Logo
 
IBM DB2 Multiple Vulnerabilities
Secunia Advisory: SA29784
Release Date: 2008-04-16
Last Update: 2008-07-31
Popularity: 3,899 views

Critical:
Less critical
Impact: Unknown
Manipulation of data
Privilege escalation
Where: Local system
Solution Status: Partial Fix

Software:DB2 Universal Database 8.x
IBM DB2 9.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-5664
CVE-2007-5758


Description:
Some vulnerabilities have been reported in IBM DB2, where one has an unknown impact, while others can be exploited by malicious, local users to perform certain actions with escalated privileges or gain escalated privileges.

1) A boundary error within the set-uid root db2dasrrm program can be exploited to cause a stack-based buffer overflow by setting the DASPROF environment variable to a specially crafted, overly long string.

Successful exploitation allows execution of arbitrary code with root privileges.

2) The "dasRecoveryIndex", "dasRecoveryIndex.tmp", ".dasRecoveryIndex.lock", and "dasRecoveryIndex.cor" files are created insecurely when the db2dasrrm program is started. This can be exploited via symlink attacks to overwrite arbitrary files with root privileges.

Successful exploitation requires access to an account that is allowed to start and stop the DB2 Administration Server (e.g. "dasusr1" or the "db2adm1" group).

These vulnerabilities are reported in version 9.1 (Fix Pack 4 and Fix Pack 3) on Linux. Other versions may also be affected.

3) An unspecified error exists related to the DB2FMP process. No further information is currently available.

4) A boundary error can be exploited to cause a buffer overflow in the DAS server process, which allows execution of arbitrary code with escalated privileges.

5) Two vulnerabilities can be exploited to overwrite arbitrary files or to execute arbitrary code on an affected system.

For more information see vulnerabilities #2 and #3 in:
SA29022

Vulnerabilities #3 to #5 are reported in versions prior to 9.5 Fixpak 1.

Solution:
Update to the latest versions.

Version 8 FixPak 16:
http://www-1.ibm.com/support/docview.wss?uid=swg21256235

NOTE: Reportedly, vulnerability #2 is not fixed in version 8.x.

Version 9.1 Fix Pack 4a:
http://www-1.ibm.com/support/docview.wss?uid=swg21255572

Version 9.5 Fix Pack 1:
http://www-1.ibm.com/support/docview.wss?uid=swg21287889

Provided and/or discovered by:
1) Discovered by an anonymous person and reported via iDefense Labs.
2) Joshua J. Drake, iDefense Labs.

Changelog:
2008-04-22: Added vulnerability #3 and link to "Original Advisory" section.
2008-05-16: Added vulnerability #4 and #5. Updated "Original Advisory" and "Other References" section.
2008-07-31: Updated "Solution" section with information about vulnerability #2 in DB2 8.x. Added link to "Original Advisory" section.

Original Advisory:
IBM (IZ19155):
ftp://ftp.software.ibm.com/ps/product...lish-us/aparlist/db2_v95/APARLIST.TXT
http://www-1.ibm.com/support/docview.wss?uid=swg1IZ12379
http://www-1.ibm.com/support/docview.wss?uid=swg1IZ10776
http://www-1.ibm.com/support/docview.wss?uid=swg1IZ10917
http://www-1.ibm.com/support/docview.wss?uid=swg1IZ07125

iDefense:
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=689
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=688

Other References:
SA29022:
http://secunia.com/advisories/29022/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Today
New advisories: 4
New vulnerabilities: 6
Updated advisories: 10

Moderately // 121 views
Ubuntu update for imagemagick
Moderately // 109 views
Ubuntu update for libvorbis
Less // 102 views
Debian update for phpmyadmin

1st Dec, 2008
New advisories: 33
New vulnerabilities: 55
Updated advisories: 56


Solutions | More...  


Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. ClamAV "cli_check_jpeg_exploit()" Denial of Service Vulnerability // 109 views
2. Ubuntu update for imagemagick // 85 views
3. Ubuntu update for libvorbis // 73 views
4. Debian update for phpmyadmin // 69 views
5. Microsoft Office Communications Server SIP INVITE Denial of Service // 41 views
6. Sun Java JDK / JRE Multiple Vulnerabilities // 41 views
7. VLC Media Player Real Demuxer Integer Overflow Vulnerability // 41 views
8. Adobe Flash Player Multiple Security Issues and Vulnerabilities // 31 views
9. RakhiSoftware Shopping Cart Multiple Vulnerabilities // 25 views
10. Basic PHP CMS "id" SQL Injection Vulnerability // 23 views