__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN Sudo Security Update [Red Hat Security Advisory RHSA-2005:535-06] June 30, 2005 17:00 GMT Number P-238 [REVISED 01 Jul 2005] [REVISED 13 Jul 2005] ______________________________________________________________________________ PROBLEM: A race condition bug was found in the way sudo handles pathnames. PLATFORM: Red Hat Desktop (v. 3, 4) Red Hat Enterprise Linux AS (v. 2.1, 3, 4) Red Hat Enterprise Linux ES (v. 2.1, 3, 4) Red Hat Enterprise Linux WS (v. 2.1, 3, 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: It is possible that a local user with limited sudo access could create a race condition that would allow the execution of arbitrary commands as the root user. SOLUTION: An updated sudo package is available that fixes a race condition in sudo's pathname validation. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. Unprivileged users could run arbitrary ASSESSMENT: commands as the root user. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-238.shtml ORIGINAL BULLETIN: https://rhn.redhat.com/errata/RHSA-2005-535.html ADDITIONAL LINKS: Debian Security Advisory DSA-735-1 http://www.debian.org/security/2005/dsa-735 SGI Security Advisory Number 20050702-01-U ftp://patches.sgi.com/support/free/security/advisories/20050702-01-U.asc CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2005-1993 ______________________________________________________________________________ REVISION HISTORY: 07/01/05 - revised to add a link to Debian Security Advisory DSA-735-1. 07/13/05 - revised to add a link to SGI Security Update #43 that provides patches for SGI ProPack 3 Service Pack 6 for SGI Altix family of systems. [***** Start Red Hat Security Advisory RHSA-2005:535-06 *****] Moderate: sudo security update Advisory: RHSA-2005:535-06 Type: Security Advisory Issued on: 2005-06-29 Last updated on: 2005-06-29 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-2005-1993 Details An updated sudo package is available that fixes a race condition in sudo's pathname validation. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root with logging. A race condition bug was found in the way sudo handles pathnames. It is possible that a local user with limited sudo access could create a race condition that would allow the execution of arbitrary commands as the root user. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2005-1993 to this issue. Users of sudo should update to this updated package, which contains a backported patch and is not vulnerable to this issue. Solution Before applying this update, make sure all previously released errata relevant to your system have been applied. To update all RPMs for your particular architecture, run: rpm -Fvh [filenames] where [filenames] is a list of the RPMs you wish to upgrade. Only those RPMs which are currently installed will be updated. Those RPMs which are not installed but included in the list will not be updated. Note that you can also use wildcards (*.rpm) if your current directory *only* contains the desired RPMs. Please note that this update is also available via Red Hat Network. Many people find this an easier way to apply updates. 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 Desktop (v. 3) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-1.1.src.rpm 670bef4d82a287e9535f7fccd4efdfd1 IA-32: sudo-1.6.7p5-1.1.i386.rpm 23df531eed9ce711914e2f4d238d9322 x86_64: sudo-1.6.7p5-1.1.x86_64.rpm a79750a35344a477b9bcf27ec01805b3 Red Hat Desktop (v. 4) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-30.1.1.src.rpm 5e6b35806f71086e25c90c948e9de9eb IA-32: sudo-1.6.7p5-30.1.1.i386.rpm 9d5d60175e6466e4932fe03b8024f46a x86_64: sudo-1.6.7p5-30.1.1.x86_64.rpm 7f50e0aa42511cb9ac58146c1d365ef1 Red Hat Enterprise Linux AS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.5p2-1.7x.2.src.rpm db4e9debc37d376a713ca85ca13ebe78 IA-32: sudo-1.6.5p2-1.7x.2.i386.rpm a3bcf0e30524dfa8128f0d640f8acf0f IA-64: sudo-1.6.5p2-1.7x.2.ia64.rpm d8f61c937dec4c6b059b44537af9004c Red Hat Enterprise Linux AS (v. 3) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-1.1.src.rpm 670bef4d82a287e9535f7fccd4efdfd1 IA-32: sudo-1.6.7p5-1.1.i386.rpm 23df531eed9ce711914e2f4d238d9322 IA-64: sudo-1.6.7p5-1.1.ia64.rpm 78171d924237063a1b77dc9a95977cb9 PPC: sudo-1.6.7p5-1.1.ppc.rpm f4e53a727bbd3fb4980985b6966370de s390: sudo-1.6.7p5-1.1.s390.rpm 14a006ca6c3894523754879c622f0a94 s390x: sudo-1.6.7p5-1.1.s390x.rpm a72c3ed1380f5d891cf86e6a3f0cdc70 x86_64: sudo-1.6.7p5-1.1.x86_64.rpm a79750a35344a477b9bcf27ec01805b3 Red Hat Enterprise Linux AS (v. 4) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-30.1.1.src.rpm 5e6b35806f71086e25c90c948e9de9eb IA-32: sudo-1.6.7p5-30.1.1.i386.rpm 9d5d60175e6466e4932fe03b8024f46a IA-64: sudo-1.6.7p5-30.1.1.ia64.rpm 9662c228a8a6614234c9e322fa1b61a3 PPC: sudo-1.6.7p5-30.1.1.ppc.rpm a82f8e8cc9305999a9b1f72c7be8bf00 s390: sudo-1.6.7p5-30.1.1.s390.rpm ea83b07cfad766d5c72721df2c73187c s390x: sudo-1.6.7p5-30.1.1.s390x.rpm d84b151a5cc2047bbf4aacb79eeffdd9 x86_64: sudo-1.6.7p5-30.1.1.x86_64.rpm 7f50e0aa42511cb9ac58146c1d365ef1 Red Hat Enterprise Linux ES (v. 2.1) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.5p2-1.7x.2.src.rpm db4e9debc37d376a713ca85ca13ebe78 IA-32: sudo-1.6.5p2-1.7x.2.i386.rpm a3bcf0e30524dfa8128f0d640f8acf0f Red Hat Enterprise Linux ES (v. 3) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-1.1.src.rpm 670bef4d82a287e9535f7fccd4efdfd1 IA-32: sudo-1.6.7p5-1.1.i386.rpm 23df531eed9ce711914e2f4d238d9322 IA-64: sudo-1.6.7p5-1.1.ia64.rpm 78171d924237063a1b77dc9a95977cb9 x86_64: sudo-1.6.7p5-1.1.x86_64.rpm a79750a35344a477b9bcf27ec01805b3 Red Hat Enterprise Linux ES (v. 4) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-30.1.1.src.rpm 5e6b35806f71086e25c90c948e9de9eb IA-32: sudo-1.6.7p5-30.1.1.i386.rpm 9d5d60175e6466e4932fe03b8024f46a IA-64: sudo-1.6.7p5-30.1.1.ia64.rpm 9662c228a8a6614234c9e322fa1b61a3 x86_64: sudo-1.6.7p5-30.1.1.x86_64.rpm 7f50e0aa42511cb9ac58146c1d365ef1 Red Hat Enterprise Linux WS (v. 2.1) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.5p2-1.7x.2.src.rpm db4e9debc37d376a713ca85ca13ebe78 IA-32: sudo-1.6.5p2-1.7x.2.i386.rpm a3bcf0e30524dfa8128f0d640f8acf0f Red Hat Enterprise Linux WS (v. 3) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-1.1.src.rpm 670bef4d82a287e9535f7fccd4efdfd1 IA-32: sudo-1.6.7p5-1.1.i386.rpm 23df531eed9ce711914e2f4d238d9322 IA-64: sudo-1.6.7p5-1.1.ia64.rpm 78171d924237063a1b77dc9a95977cb9 x86_64: sudo-1.6.7p5-1.1.x86_64.rpm a79750a35344a477b9bcf27ec01805b3 Red Hat Enterprise Linux WS (v. 4) -------------------------------------------------------------------------------- SRPMS: sudo-1.6.7p5-30.1.1.src.rpm 5e6b35806f71086e25c90c948e9de9eb IA-32: sudo-1.6.7p5-30.1.1.i386.rpm 9d5d60175e6466e4932fe03b8024f46a IA-64: sudo-1.6.7p5-30.1.1.ia64.rpm 9662c228a8a6614234c9e322fa1b61a3 x86_64: sudo-1.6.7p5-30.1.1.x86_64.rpm 7f50e0aa42511cb9ac58146c1d365ef1 Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor -------------------------------------------------------------------------------- SRPMS: sudo-1.6.5p2-1.7x.2.src.rpm db4e9debc37d376a713ca85ca13ebe78 IA-64: sudo-1.6.5p2-1.7x.2.ia64.rpm d8f61c937dec4c6b059b44537af9004c (The unlinked packages above are only available from the Red Hat Network) Bugs fixed (see bugzilla for more information) 161116 - CAN-2005-1993 sudo trusted user arbitrary command execution References http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1993 http://www.securityfocus.com/archive/1/402741/30/0/threaded Keywords sudo -------------------------------------------------------------------------------- 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 Security Advisory RHSA-2005:535-06 *****] _______________________________________________________________________________ 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-228: ISA Server 2000 Cumulative Update P-229: Vulnerability in Microsoft Agent Could Allow Spoofing (890046) P-230: Vulnerability in Telnet Client Could Allow Information Disclosure (896428) P-231: Security Vulnerability in the lpadmin(1M) Utility P-232: VERITAS Security Updates P-233: RealNetworks Security Update P-234: RealPlayer SMIL File Vulnerability P-235: FTPSERV.NLM Abend and Security fixes P-236: Adobe Reader and Acrobat Malicious PDF Document P-237: Cisco RADIUS Authentication Bypass