__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Buffer Overflow in “sharutils” [Red Hat Security Advisory RHSA-2005:377-07] April 26, 2005 22:00 GMT Number P-194 [REVISED 09 May 2005] ______________________________________________________________________________ PROBLEM: Vulnerabilities have been found in the sharutils package. This package contains a set of tools for encoding and decoding packages of files in binary or text format. PLATFORM: Red Hat Desktop (v. 3 and v. 4) Red Hat Enterprise Linux AS, ES, WS (v. 2.1, v. 3 and v. 4) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor SGI ProPack 3 Service Pack 5 for SGI Altix family of systems DAMAGE: Buffer overflows were found in the –o option and wc command options. Exploiting the vulnerability would require an attacker to coerce a victim into running a specially crafted command on their machine. Also a bug was found in the way unshar creates temporary files. SOLUTION: Apply available security updates. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. Exploiting these vulnerabilities requires ASSESSMENT: tricking a victim into running specially crafted commands and this may allow an attacker to execute arbitrary code. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-194.shtml ORIGINAL BULLETIN: https://rhn.redhat.com/errata/RHSA-2005-377.html ADDITIONAL LINK: SGI Security Advisory Number 20050501-01-U ftp://patches.sgi.com/support/free/security/advisories/20050501-01-U.asc CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2004-1772 CAN-2004-1773 CAN-2005-0990 ______________________________________________________________________________ REVISION HISTORY: 05/09/2005 - added a link to SGI Security Advisory 20050501-01-U that provides updated SGI ProPack 3 Service Pack 5 RPMs. [***** Start Red Hat Security Advisory RHSA-2005:377-07 *****] Low: sharutils security update Advisory: RHSA-2005:377-07 Type: Security Advisory Issued on: 2005-04-26 Last updated on: 2005-04-26 Affected Products: Red Hat Desktop (v. 3) Red Hat Desktop (v. 4) Red Hat Enterprise Linux AS (v. 2.1) Red Hat Enterprise Linux AS (v. 3) Red Hat Enterprise Linux AS (v. 4) Red Hat Enterprise Linux ES (v. 2.1) Red Hat Enterprise Linux ES (v. 3) Red Hat Enterprise Linux ES (v. 4) Red Hat Enterprise Linux WS (v. 2.1) Red Hat Enterprise Linux WS (v. 3) Red Hat Enterprise Linux WS (v. 4) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor CVEs (cve.mitre.org): CAN-2004-1772 CAN-2004-1773 CAN-2005-0990 Details An updated sharutils package is now available. This update has been rated as having low security impact by the Red Hat Security Response Team. The sharutils package contains a set of tools for encoding and decoding packages of files in binary or text format. A stack based overflow bug was found in the way shar handles the -o option. If a user can be tricked into running a specially crafted command, it could lead to arbitrary code execution. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-1772 to this issue. Please note that this issue does not affect Red Hat Enterprise Linux 4. Two buffer overflow bugs were found in sharutils. If an attacker can place a malicious 'wc' command on a victim's machine, or trick a victim into running a specially crafted command, it could lead to arbitrary code execution. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-1773 to this issue. A bug was found in the way unshar creates temporary files. A local user could use symlinks to overwrite arbitrary files the victim running unshar has write access to. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-0990 to this issue. All users of sharutils should upgrade to this updated package, which includes backported fixes to correct these issues. Solution Before applying this update, make sure that all previously-released errata relevant to your system have been applied. Use Red Hat Network to download and update your packages. To launch the Red Hat Update Agent, use the following command: up2date For information on how to install packages manually, refer to the following Web page for the System Administration or Customization guide specific to your system: http://www.redhat.com/docs/manuals/enterprise/ Updated packages Red Hat Desktop (v. 3) SRPMS: sharutils-4.2.1-16.2.src.rpm 06a6b26786f3674b33280441417316c8 IA-32: sharutils-4.2.1-16.2.i386.rpm 3228571c5d375ff8ae96e6f7bf00a046 x86_64: sharutils-4.2.1-16.2.x86_64.rpm 337510c9c7925ed4e916b2733059d35d Red Hat Desktop (v. 4) SRPMS: sharutils-4.2.1-22.2.src.rpm fb0f041f40c952667fa9e2415bb95481 IA-32: sharutils-4.2.1-22.2.i386.rpm 5528e7145b01b940474eed14da1a4bf5 x86_64: sharutils-4.2.1-22.2.x86_64.rpm 96fa0ac9f458ea3bed71aca056478e91 Red Hat Enterprise Linux AS (v. 2.1) SRPMS: sharutils-4.2.1-8.9.x.src.rpm 4ff9ccec228d473e8983f60cec4f7bba IA-32: sharutils-4.2.1-8.9.x.i386.rpm a11c9f7ce6ec7e339554f88dd586ca53 IA-64: sharutils-4.2.1-8.9.x.ia64.rpm c80d5a08b52b452b2c11cb7b0dffc59b Red Hat Enterprise Linux AS (v. 3) SRPMS: sharutils-4.2.1-16.2.src.rpm 06a6b26786f3674b33280441417316c8 IA-32: sharutils-4.2.1-16.2.i386.rpm 3228571c5d375ff8ae96e6f7bf00a046 IA-64: sharutils-4.2.1-16.2.ia64.rpm caa4872797cbb61cbb3d86c9bc6b9c17 PPC: sharutils-4.2.1-16.2.ppc.rpm cf2564b18459cea9958c373396894ecc s390: sharutils-4.2.1-16.2.s390.rpm ee6bb67d0ea5d5d79539437f78f1128f s390x: sharutils-4.2.1-16.2.s390x.rpm 89114c0f739d46695fa787f3227a960c x86_64: sharutils-4.2.1-16.2.x86_64.rpm 337510c9c7925ed4e916b2733059d35d Red Hat Enterprise Linux AS (v. 4) SRPMS: sharutils-4.2.1-22.2.src.rpm fb0f041f40c952667fa9e2415bb95481 IA-32: sharutils-4.2.1-22.2.i386.rpm 5528e7145b01b940474eed14da1a4bf5 IA-64: sharutils-4.2.1-22.2.ia64.rpm 14609e1cd1f1d403ad562a27ff7090d0 PPC: sharutils-4.2.1-22.2.ppc.rpm 83ae1ab7519ccd7905256da2319e006e s390: sharutils-4.2.1-22.2.s390.rpm f81531770bdd340cf5bd39ebed7c211b s390x: sharutils-4.2.1-22.2.s390x.rpm c68d22a3a01ad42d71b7d34b35a49896 x86_64: sharutils-4.2.1-22.2.x86_64.rpm 96fa0ac9f458ea3bed71aca056478e91 Red Hat Enterprise Linux ES (v. 2.1) SRPMS: sharutils-4.2.1-8.9.x.src.rpm 4ff9ccec228d473e8983f60cec4f7bba IA-32: sharutils-4.2.1-8.9.x.i386.rpm a11c9f7ce6ec7e339554f88dd586ca53 Red Hat Enterprise Linux ES (v. 3) SRPMS: sharutils-4.2.1-16.2.src.rpm 06a6b26786f3674b33280441417316c8 IA-32: sharutils-4.2.1-16.2.i386.rpm 3228571c5d375ff8ae96e6f7bf00a046 IA-64: sharutils-4.2.1-16.2.ia64.rpm caa4872797cbb61cbb3d86c9bc6b9c17 x86_64: sharutils-4.2.1-16.2.x86_64.rpm 337510c9c7925ed4e916b2733059d35d Red Hat Enterprise Linux ES (v. 4) SRPMS: sharutils-4.2.1-22.2.src.rpm fb0f041f40c952667fa9e2415bb95481 IA-32: sharutils-4.2.1-22.2.i386.rpm 5528e7145b01b940474eed14da1a4bf5 IA-64: sharutils-4.2.1-22.2.ia64.rpm 14609e1cd1f1d403ad562a27ff7090d0 x86_64: sharutils-4.2.1-22.2.x86_64.rpm 96fa0ac9f458ea3bed71aca056478e91 Red Hat Enterprise Linux WS (v. 2.1) SRPMS: sharutils-4.2.1-8.9.x.src.rpm 4ff9ccec228d473e8983f60cec4f7bba IA-32: sharutils-4.2.1-8.9.x.i386.rpm a11c9f7ce6ec7e339554f88dd586ca53 Red Hat Enterprise Linux WS (v. 3) SRPMS: sharutils-4.2.1-16.2.src.rpm 06a6b26786f3674b33280441417316c8 IA-32: sharutils-4.2.1-16.2.i386.rpm 3228571c5d375ff8ae96e6f7bf00a046 IA-64: sharutils-4.2.1-16.2.ia64.rpm caa4872797cbb61cbb3d86c9bc6b9c17 x86_64: sharutils-4.2.1-16.2.x86_64.rpm 337510c9c7925ed4e916b2733059d35d Red Hat Enterprise Linux WS (v. 4) SRPMS: sharutils-4.2.1-22.2.src.rpm fb0f041f40c952667fa9e2415bb95481 IA-32: sharutils-4.2.1-22.2.i386.rpm 5528e7145b01b940474eed14da1a4bf5 IA-64: sharutils-4.2.1-22.2.ia64.rpm 14609e1cd1f1d403ad562a27ff7090d0 x86_64: sharutils-4.2.1-22.2.x86_64.rpm 96fa0ac9f458ea3bed71aca056478e91 Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor SRPMS: sharutils-4.2.1-8.9.x.src.rpm 4ff9ccec228d473e8983f60cec4f7bba IA-64: sharutils-4.2.1-8.9.x.ia64.rpm c80d5a08b52b452b2c11cb7b0dffc59b (The unlinked packages above are only available from the Red Hat Network) Bugs fixed (see bugzilla for more information) 152571 - CAN-2004-1772 buffer overflow with -o option 152573 - CAN-2004-1773 Buffer overflows in unshar 154049 - CAN-2005-0990 insecure temp file usage References http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1772 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1773 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0990 [***** End Red Hat Security Advisory RHSA-2005:377-07 *****] _______________________________________________________________________________ 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) P-184: libexif P-185: Apple Mac OS X v10.3.9 Security Update P-186: Possible Network Port Theft in Solaris P-187: Sun Java System Web Proxy Server Vulnerability P-188: Security Vulnerabilities Addressed in Red Hat Kernel Update P-189: RealNetworks Releases Security Updates P-190: Firefox Security Bugs P-191: KDE Image File Format Reader Vulnerabilities P-192: OpenOffice.org Buffer Overflow Vulnerability P-193: Mozilla Security Bugs