__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN AIX lqueryvg Buffer Overflow Vulnerability Document Number: 3982 November 6, 2007 14:00 GMT Number S-033 ______________________________________________________________________________ PROBLEM: A buffer overflow vulnerability exists in the 'bos.rte.lvm' fileset command whereby a local attacker may execute arbitrary code with root privileges. PLATFORM: AIX 5.2, 5.3 DAMAGE: A local attacker may run arbitrary code with root privileges. SOLUTION: Upgrade to the appropriate version. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. A local attacker may run arbitrary code ASSESSMENT: with root privileges. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/s-033.shtml ORIGINAL BULLETIN: http://www14.software.ibm.com/webapp/set2/subscriptions/ ijhifoeblist?mode=1&prefsOnOff=null&heading= AIX53&topic=SECURITY&month=200710 CVE: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CVE-2007-4513 ______________________________________________________________________________ [****** Start IBM Bulletin 3982 ******] AIX lquerypv buffer overflow vulnerability -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 IBM SECURITY ADVISORY First Issued: Thu Oct 18 10:03:58 CDT 2007 =============================================================================== VULNERABILITY SUMMARY VULNERABILITY: AIX lquerypv buffer overflow vulnerability PLATFORMS: AIX 5.2, 5.3 SOLUTION: Apply the APAR, interim fix or workaround as described below. THREAT: A local attacker may run arbitrary code with root privileges. CERT VU Number: n/a CVE Number: n/a =============================================================================== DETAILED INFORMATION I. OVERVIEW The AIX Logical Volume Manager provides a suite of utilities for AIX logical volume management features and functions. The primary fileset for the AIX Logical Volume Manager is 'bos.rte.lvm'. One low-level command provided by this fileset for providing intermediate services to higher-level logical volume management tasks has been identified as containing a buffer overflow vulnerability. II. DESCRIPTION A buffer overflow vulnerability exists in the 'bos.rte.lvm' fileset command listed below whereby a local attacker may execute arbitrary code with root privileges. The following 'bos.rte.lvm' commands are vulnerable: /usr/sbin/lquerypv III. IMPACT The successful exploitation of this vulnerability allows a non-privileged user to execute code with root privileges. IV. PLATFORM VULNERABILITY ASSESSMENT To determine if your system is vulnerable, run the following commands: # lslpp -l bos.rte.lvm The following fileset levels are vulnerable: AIX Fileset AIX Level Lower Level Upper Level ---------------------------------------------------------------- bos.rte.lvm 5.2.0 5.2.0.0 5.2.0.106 bos.rte.lvm 5.3.0 5.3.0.0 5.3.0.62 NOTE: IBM only supports the latest two releases (AIX 5.2 and 5.3) and the latest three Technology Levels (AIX 5.2 TL08, TL09, TL10 and AIX 5.3 TL04, TL05, TL06). Affected customers are urged to upgrade to the latest applicable Technology Level and Service Pack. V. SOLUTIONS A. APARS IBM provides the following fixes: AIX Level APAR number Availability -------------------------------------------------------------------- 5.2.0 IZ05877 10/31/2007 5.3.0 IZ05971 11/27/2007 Subscribe to the APARs here: http://www.ibm.com/support/docview.wss?uid=isg1IZ05877 http://www.ibm.com/support/docview.wss?uid=isg1IZ05971 By subscribing, you will receive periodic email alerting you to the status of the APAR, and a link to download the fix once it becomes available. AIX Version 5 APARs can be downloaded from: http://www.ibm.com/servers/eserver/support/unixservers/aixfixes.html NOTE: Affected customers are urged to upgrade to the latest applicable Technology Level and Service Pack. B. INTERIM FIXES Interim fixes are available. The interim fix can be downloaded via ftp from: ftp://aix.software.ibm.com/aix/efixes/security/lquerypv_ifix.tar The link above is to a tar file containing this signed advisory, interim fix packages, and PGP signatures for each package. The interim fixes below include prerequisite checking. This will enforce the correct mapping between the fixes and AIX Technology Levels. AIX Fileset AIX Release and Interim fix Technology Level ----------------------------------------------------------------- bos.rte.lvm 5300-04 IZ05877_08.071003.epkg.Z bos.rte.lvm 5300-05 IZ05877_09.071003.epkg.Z bos.rte.lvm 5300-06 IZ05877_10.071003.epkg.Z bos.rte.lvm 5200-08 IZ05971_04.071004.epkg.Z bos.rte.lvm 5200-09 IZ05971_05.071004.epkg.Z bos.rte.lvm 5200-10 IZ05971_06.071004.epkg.Z IMPORTANT: If possible, it is recommended that a mksysb backup of the system be created. Verify it is both bootable and readable before proceeding. These interim fixes have not been fully regression tested; thus, IBM does not warrant the fully correct functionality of the interim fix. Verify you have retrieved the fixes intact: The checksums below were generated using the "sum", "cksum", "csum -h MD5" (md5sum), and "csum -h SHA1" (sha1sum) commands and are as follows: sum filename ------------------------------------ 37689 19 IZ05877_08.071003.epkg.Z 25937 19 IZ05877_09.071003.epkg.Z 45979 19 IZ05877_10.071003.epkg.Z 17538 19 IZ05971_04.071004.epkg.Z 34708 19 IZ05971_05.071004.epkg.Z 14940 19 IZ05971_06.071004.epkg.Z cksum filename ----------------------------------------- 2420732395 18810 IZ05877_08.071003.epkg.Z 2938658268 18814 IZ05877_09.071003.epkg.Z 428709258 18845 IZ05877_10.071003.epkg.Z 1841678169 18458 IZ05971_04.071004.epkg.Z 1488778612 18488 IZ05971_05.071004.epkg.Z 2812337926 18530 IZ05971_06.071004.epkg.Z csum -h MD5 (md5sum) filename ---------------------------------------------------------- cfb9f2f9079cc0e723e8f455bfbc35d9 IZ05877_08.071003.epkg.Z cb57b5fe9fd0040291186c462a3d65e8 IZ05877_09.071003.epkg.Z 24537b9d859a5e2196b2140237c2edb8 IZ05877_10.071003.epkg.Z 511feef6c800a344932c5ff623419698 IZ05971_04.071004.epkg.Z a9d564f9b7f6ced5bdfd5760430ba684 IZ05971_05.071004.epkg.Z c576a8e37c78b221b2d4d20e1d1f8250 IZ05971_06.071004.epkg.Z csum -h SHA1 (sha1sum) filename ------------------------------------------------------------------ b03c5db2fa0b50e01ff10b79f625c72185d9dc26 IZ05877_08.071003.epkg.Z a7aebd9afe18a1749863c4c69ec6e15b7f6a2fab IZ05877_09.071003.epkg.Z 7534737924bc5fa4bb44df4e4d9a24e87adff75a IZ05877_10.071003.epkg.Z df91f4b06f6eab11999750a63213f04c3b8b2d8b IZ05971_04.071004.epkg.Z 0c7cda22c67c641560185195f79eb16f2fe9defb IZ05971_05.071004.epkg.Z 85449491ddb9d30177ab9eb82a71c6bc59145ff6 IZ05971_06.071004.epkg.Z To verify the sums, use the text of this advisory as input to csum, md5sum, or sha1sum. For example: csum -h SHA1 -i Advisory.asc md5sum -c Advisory.asc sha1sum -c Advisory.asc These sums should match exactly. The PGP signatures in the compressed tarball and on this advisory can also be used to verify the integrity of the various files they correspond to. If the sums or signatures cannot be confirmed, double check the command results and the download site address. If those are OK, contact IBM AIX Security at security-alert@austin.ibm.com and describe the discrepancy. C. INTERIM FIX INSTALLATION These packages use the new Interim Fix Management Solution to install and manage interim fixes. More information can be found at: http://www14.software.ibm.com/webapp/set2/sas/f/aix.efixmgmt/home.html To preview an epkg interim fix installation execute the following command: # emgr -e ipkg_name -p # where ipkg_name is the name of the # interim fix package being previewed. To install an epkg interim fix package, execute the following command: # emgr -e ipkg_name -X # where ipkg_name is the name of the # interim fix package being installed. The "X" flag will expand any filesystems if required. VI. WORKAROUNDS There are two possible workarounds that may be implemented. A. OPTION 1 Change the permissions of these commands to remove the setuid bit using the following commands: # chmod 500 /usr/sbin/lquerypv NOTE: This will disable functionality of these commands for all users except root. B. OPTION 2 (AIX 5.3 TL6 only) Use the File Permissions Manager (fpm) command to manage the setuid-bit on the following commands: /usr/sbin/lquerypv NOTE: This will disable functionality of these commands for all users except root. VII. OBTAINING FIXES AIX Version 5 APARs can be downloaded from: http://www.ibm.com/servers/eserver/support/unixservers/aixfixes.html Security related Interim Fixes can be downloaded from: ftp://aix.software.ibm.com/aix/efixes/security VIII. CONTACT INFORMATION If you would like to receive AIX Security Advisories via email, please visit: http://www14.software.ibm.com/webapp/set2/subscriptions/pqvcmjd Comments regarding the content of this announcement can be directed to: security-alert@austin.ibm.com To request the PGP public key that can be used to communicate securely with the AIX Security Team you can either: A. Send an email with "get key" in the subject line to: security-alert@austin.ibm.com B. Download the key from a PGP Public Key Server. The key ID is: 0xA6A36CCC Please contact your local IBM AIX support center for any assistance. eServer is a trademark of International Business Machines Corporation. IBM, AIX and pSeries are registered trademarks of International Business Machines Corporation. All other trademarks are property of their respective holders. [****** End IBM Bulletin 3982 ******] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of IBM 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) S-023: RealPlayer Playlist Vulnerability S-024: libpng Security Update S-025: reprepro Vulnerability S-026: xfce4-terminal Vulnerability S-027: t1lib Vulnerability S-028: Vulnerability in Java Runtime Environment Virtual Machine S-029: IBM Lotus Notes Vulnerabilities S-030: Adobe Security Update S-031: RSA Keon Vulnerability S-032: CUPS Security Update and Bug Fix Update