__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN GDB Security Update [Red Hat RHSA-2005:801-4] October 20, 2005 17:00 GMT Number Q-026 [REVISED 21 Jul 2006] [REVISED 11 Aug 2006] ______________________________________________________________________________ PROBLEM: A bug was found in the way gdb loads .gdbinit files, the GNU debugger. PLATFORM: Red Hat Desktop (v. 3, v. 4) Red Hat Enterprise Linux AS, ES, WS (v. 2.1, v. 3, & v. 4) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor DAMAGE: It is possible for a local user to execute arbitrary commands as the user running gdb by placing a malicious .gdbinit file in a location where gdb may be run. SOLUTION: Upgrade to the appropriate version. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. It is possible for a local user to execute ASSESSMENT: arbitrary commands as the user running gdb by placing a malicious .gdbinit file in a location where gdb may be run. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/q-026.shtml ORIGINAL BULLETIN: Red Hat RHSA-2005:801-4 https://rhn.redhat.com/errata/RHSA-2005-801.html ADDITIONAL LINKS: Red Hat RHSA-2006:0368-7 https://rhn.redhat.com/errata/RHSA-2006-0368.html Red Hat RHSA-2006:0354-9 https://rhn.redhat.com/errata/RHSA-2006-0354.html CVE: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CVE-2005-1705 ______________________________________________________________________________ REVISION HISTORY: 07/21/2006 - revised to add a link to Red Hat RHSA-2006:0368-7 for Red Hat Desktop (v. 3) and Enterprise Linux AS, ES, WS (v. 3). 08/11/2006 - revised to add a link to Red Hat RHSA-2006:0354-9 for Red Hat Desktop (v. 4) and Enterprise Linux AS, ES, WS (v. 4). [***** Start Red Hat RHSA-2005:801-4 *****] Low: gdb security update Advisory: RHSA-2005:801-4 Type: Security Advisory Issued on: 2005-10-18 Last updated on: 2005-10-18 Affected Products: Red Hat Enterprise Linux AS (v. 2.1) Red Hat Enterprise Linux ES (v. 2.1) Red Hat Enterprise Linux WS (v. 2.1) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor CVEs (cve.mitre.org): CAN-2005-1704 CAN-2005-1705 Details An updated gdb package that fixes minor security issues is now available. This update has been rated as having low security impact by the Red Hat Security Response Team. GDB, the GNU debugger, allows debugging of programs written in C, C++, and other languages by executing them in a controlled fashion, then printing their data. Several integer overflow bugs were found in gdb. If a user is tricked into processing a specially crafted executable file, it may allow the execution of arbitrary code as the user running gdb. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-1704 to this issue. A bug was found in the way gdb loads .gdbinit files. When a user executes gdb, the local directory is searched for a .gdbinit file which is then loaded. It is possible for a local user to execute arbitrary commands as the user running gdb by placing a malicious .gdbinit file in a location where gdb may be run. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-1705 to this issue. All users of gdb should upgrade to this updated package, which contains backported patches that resolve these issues. Solution Before applying this update, make sure all previously released errata relevant to your system have been applied. This update is available via Red Hat Network. To use Red Hat Network, launch the Red Hat Update Agent with the following command: up2date This will start an interactive process that will result in the appropriate RPMs being upgraded on your system. Updated packages Red Hat Enterprise Linux AS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: gdb-5.3.90-0.20030710.41.2.4.src.rpm a0d991bc72cdaab10d791acbf1b6bbcf IA-32: gdb-5.3.90-0.20030710.41.2.4.i386.rpm 1580045e0f9937fcb4e03d99b3d73bd0 IA-64: gdb-5.3.90-0.20030710.41.2.4.ia64.rpm 741a4ff87ee5bb6737dcc545b762658c Red Hat Enterprise Linux ES (v. 2.1) -------------------------------------------------------------------------------- SRPMS: gdb-5.3.90-0.20030710.41.2.4.src.rpm a0d991bc72cdaab10d791acbf1b6bbcf IA-32: gdb-5.3.90-0.20030710.41.2.4.i386.rpm 1580045e0f9937fcb4e03d99b3d73bd0 Red Hat Enterprise Linux WS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: gdb-5.3.90-0.20030710.41.2.4.src.rpm a0d991bc72cdaab10d791acbf1b6bbcf IA-32: gdb-5.3.90-0.20030710.41.2.4.i386.rpm 1580045e0f9937fcb4e03d99b3d73bd0 Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor -------------------------------------------------------------------------------- SRPMS: gdb-5.3.90-0.20030710.41.2.4.src.rpm a0d991bc72cdaab10d791acbf1b6bbcf IA-64: gdb-5.3.90-0.20030710.41.2.4.ia64.rpm 741a4ff87ee5bb6737dcc545b762658c (The unlinked packages above are only available from the Red Hat Network) Bugs fixed (see bugzilla for more information) 169905 - CAN-2005-1705 gdb arbitrary command execution 169906 - CAN-2005-1704 Integer overflow in gdb References http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1704 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1705 -------------------------------------------------------------------------------- These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from: https://www.redhat.com/security/team/key/#package The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/ [***** End Red Hat RHSA-2005:801-4 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) Q-016: Ruby Q-017: Sun Java System Application Server May Disclose Source Code of Java Server Pages Q-018: VERITAS NetBackup Java User Interface Format String Vulnerability Q-019: Lynx Security Update Q-020: Multiple Security Vulnerabilities in Mozilla Q-021: Openldap and nss_ldap Security Update Q-022: Snort 2.4.3 Released Q-023: UW-IMAP Vulnerability Q-024: Oracle Critical Patch Update - October 2005 Q-025: HP OpenView Operations and OpenView Vantage Point Java Runtime Environment (JRE) Vulnerability