Security Bulletin: Buffer Overflow Vulnerability in IBM DB2 Java Stored Procedure Infrastructure (CVE-2012-2197).

Flash (Alert)


Abstract

Vulnerability in IBM DB2 could allow an authenticated user to cause a stack-based buffer overflow and possibly attain remote code execution.

Content

VULNERABILITY DETAILS

CVE ID: CVE-2012-2197

DESCRIPTION:

The IBM DB2 products listed below contain a security vulnerability that could
allow an authenticated user to exploit a vulnerability in DB2's Java Stored Procedure infrastructure to cause a stack-based buffer overflow and possibly attain remote code
execution.

To exploit the vulnerability the malicious user would need:
1. Valid credential to connect to database
2. CONNECT privilege on database
3. A Java stored procedure to which the user has EXECUTE privilege.

If you do not have any Java stored procedures installed then you are not affected. To find the names of your Java stored procedures, execute the following SQL statement using the DB2 Command Line Processor (CLP):

SELECT ROUTINENAME FROM SYSCAT.ROUTINES WHERE LANGUAGE='JAVA'

If you have no Java stored procedures installed then you would get back an empty result like the following:

ROUTINENAME
------------------------------------------------

0 record(s) selected.


CVSS:
CVSS Base Score: 8.5
CVSS Temporal Score: See http://xforce.iss.net/xforce/xfdb/76286 for the current score
CVSS Environmental Score*: Undefined
CVSS String: (AV:N/AC:M/Au:S/C:C/I:C/A:C)


AFFECTED PLATFORMS:

The following IBM DB2 V9.1, V9.5, V9.7 and V10.1 editions running on AIX, Linux, HP, Solaris and Windows:


IBM® DB2® 10.1 Express Edition
IBM® DB2® 10.1 Workgroup Server Edition
IBM® DB2® 10.1 Enterprise Server Edition
IBM® DB2® 10.1 Advanced Enterprise Server Edition
IBM® DB2® Connect™ 10.1 Application Server Edition
IBM® DB2® Connect™ 10.1 Enterprise Edition
IBM® DB2® Connect™ 10.1 Unlimited Edition for System i®
IBM® DB2® Connect™ 10.1 Unlimited Edition for System z®

IBM® DB2® 9.7 Express Edition
IBM® DB2® 9.7 Workgroup Server Edition
IBM® DB2® 9.7 Enterprise Server Edition
IBM® DB2® 9.7 Advanced Enterprise Server Edition
IBM® DB2® Connect™ 9.7 Application Server Edition
IBM® DB2® Connect™ 9.7 Enterprise Edition
IBM® DB2® Connect™ 9.7 Unlimited Edition for System i®
IBM® DB2® Connect™ 9.7 Unlimited Edition for System z®

IBM® DB2® 9.5 Express Edition
IBM® DB2® 9.5 Workgroup Server Edition
IBM® DB2® 9.5 Enterprise Server Edition
IBM® DB2® 9.5 Advanced Enterprise Server Edition
IBM® DB2® Connect™ 9.5 Application Server Edition
IBM® DB2® Connect™ 9.5 Enterprise Edition
IBM® DB2® Connect™ 9.5 Unlimited Edition for System i®
IBM® DB2® Connect™ 9.5 Unlimited Edition for System z®

IBM® DB2® 9.1 Express Edition
IBM® DB2® 9.1 Workgroup Server Edition
IBM® DB2® 9.1 Enterprise Server Edition
IBM® DB2® 9.1 Advanced Enterprise Server Edition
IBM® DB2® Connect™ 9.1 Application Server Edition
IBM® DB2® Connect™ 9.1 Enterprise Edition
IBM® DB2® Connect™ 9.1 Unlimited Edition for System i®
IBM® DB2® Connect™ 9.1 Unlimited Edition for System z®

NOTE: The DB2 Connect products mentioned are affected only if a local database has been created.


The following IBM V9.8 editions running on AIX and Linux:

IBM® DB2® pureScale™ Feature for Enterprise Server Edition


REMEDIATION:
The recommended solution is to apply the appropriate fix for this vulnerability.


Fix:
The fix for this vulnerability is available for download for DB2 release V9.1 FP12, V9.5 FP10, V9.7 FP7 and V10.1 FP1. For DB2 V9.8, the fix is planned to be made available in future fix packs.

In general, DB2 fix packs can be downloaded from the following site: http://www-01.ibm.com/support/docview.wss?uid=swg27007053. You may download the specific fix pack you need from the following:

Release APAR Download URL
V9.1 FP12 IC84555 http://www.ibm.com/support/docview.wss?uid=swg24033023
V9.5 FP10 IC84752 http://www.ibm.com/support/docview.wss?uid=swg24033308
V9.7 FP7 IC84753 http://www.ibm.com/support/docview.wss?uid=swg24033685
V9.8 IC84754 Not available. Please contact technical support.
V10.1 FP1 IC84755 http://www.ibm.com/support/docview.wss?uid=swg24033451

A special build with the interim fix will be made available for DB2 V9.8 FP5. Please contact your service representative to obtain the special build and reference the APAR number for the release you want.

Contact Technical Support:

In the United States and Canada dial 1-800-IBM-SERV
View the support contacts for other countries outside of the United States.
Electronically open a Service Request with DB2 Technical Support.

Workaround/Mitigation:
None known; apply fix.


REFERENCES:



ACKNOWLEDGEMENT:
This vulnerability was reported to IBM by Martin Rakhmanov of Application Security Inc.


CHANGE HISTORY:
August 8, 2012: Document created.
August 21, 2012 - V9.5 FP10 has shipped. Updated document to include V9.5 FP10 download URL.
September 17, 2012 - DB2 V10.1 FP1 has shipped. Updated document to include V10.1 FP1 download URL.
November 6, 2012 - DB2 V9.7 FP7 has shipped. Updated document to include V9.7 FP7 download URL.


*The CVSS Environment Score is customer environment specific and will ultimately impact the Overall CVSS Score. Customers can evaluate the impact of this vulnerability in their environments by accessing the links in the Reference section of this Flash.


Note: According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS

Note: IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.


Cross reference information
Segment Product Component Platform Version Edition
Information Management DB2 Connect 9.7, 9.5, 9.1, 10.1

Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows
Application Programming - DB2 Built-in functions/Built-in UDFs

Software version:

9.1, 9.5, 9.7, 9.8, 10.1

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Software edition:

Advanced Enterprise Server, Enterprise Server, Express, Express-C, Personal, Workgroup Server

Reference #:

1607628

Modified date:

2012-11-07

Translate my page

Machine Translation

Content navigation