-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2012.0214
                   Low: sudo security and bug fix update
                             22 February 2012

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           sudo
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 5
                   Red Hat Enterprise Linux WS/Desktop 5
Impact/Access:     Increased Privileges -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2011-0010  

Reference:         ASB-2011.0005
                   ESB-2012.0202
                   ESB-2011.0544

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2012-0309.html

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Low: sudo security and bug fix update
Advisory ID:       RHSA-2012:0309-03
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2012-0309.html
Issue date:        2012-02-21
CVE Names:         CVE-2011-0010 
=====================================================================

1. Summary:

An updated sudo package that fixes one security issue and various bugs is
now available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having low
security impact. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available from the CVE link in
the References section.

2. Relevant releases/architectures:

Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64
Red Hat Enterprise Linux Desktop (v. 5 client) - i386, x86_64

3. Description:

The sudo (superuser do) utility allows system administrators to give
certain users the ability to run commands as root.

A flaw was found in the sudo password checking logic. In configurations
where the sudoers settings allowed a user to run a command using sudo
with only the group ID changed, sudo failed to prompt for the user's
password before running the specified command with the elevated group
privileges. (CVE-2011-0010)

In addition, this update fixes the following bugs:

* A NULL pointer dereference bug caused the sudo utility to terminate
unexpectedly with a segmentation fault. This happened if the utility was
run with the -g option and configured not to demand the password from the
user who ran the sudo utility. With this update, the code has been modified
and the problem no longer occurs. (BZ#673072)

* The sudo utility failed to load sudoers from an LDAP (Lightweight
Directory Access Protocol) server after the sudo tool was upgraded. This
happened because the upgraded nsswitch.conf file did not contain the
instruction to search for sudoers on the LDAP server. This update adds the
lost instruction to /etc/nsswitch.conf and the system searches for sources
of sudoers on the local file system and then on LDAP, if applicable.
(BZ#617061)

* The sudo tool interpreted a Runas alias specifying a group incorrectly as
a user alias and the alias seemed to be ignored. With this update, the code
for interpreting such aliases has been modified and the Runas group aliases
are honored as expected. (BZ#627543)

* Prior to this update, sudo did not parse comment characters (#) in the
ldap.conf file correctly and could fail to work. With this update, parsing
of the LDAP configuration file has been modified and the comment characters
are parsed correctly. (BZ#750318)

* The sudo utility formats its output to fit the width of the terminal
window. However, this behavior is undesirable if the output is redirected
through a pipeline. With this update, the output formatting is not applied
in the scenario described. (BZ#697111)

* Previously, the sudo utility performed Security-Enhanced Linux (SELinux)
related initialization after switching to an unprivileged user. This
prevented the correct setup of the SELinux environment before executing the
specified command and could potentially cause an access denial. The bug has
been fixed by backporting the SELinux related code and the execution model
from a newer version of sudo. (BZ#477185)

* On execv(3) function failure, the sudo tool executed an auditing call
before reporting the failure. The call reset the error state and,
consequently, the tool incorrectly reported that the command succeeded.
With this update, the code has been modified and the problem no longer
occurs. (BZ#673157)

All users of sudo are advised to upgrade to this updated package, which
resolves these issues.

4. Solution:

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259

5. Bugs fixed (http://bugzilla.redhat.com/):

477185 - sudo changes uid before calling SELInux calls, preventing it from setting terminal context when using non priv account
627543 - The Runas_Spec are ignored in sudoers file
668879 - CVE-2011-0010 sudo: does not ask for password on GID changes
673072 - sudo segfault
673157 - sudo fails to report error correctly when execv(3) fails
697111 - sudo -l inserts new lines based on terminal width, causing errors when output is piped.

6. Package List:

Red Hat Enterprise Linux Desktop (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/sudo-1.7.2p1-13.el5.src.rpm

i386:
sudo-1.7.2p1-13.el5.i386.rpm
sudo-debuginfo-1.7.2p1-13.el5.i386.rpm

x86_64:
sudo-1.7.2p1-13.el5.x86_64.rpm
sudo-debuginfo-1.7.2p1-13.el5.x86_64.rpm

Red Hat Enterprise Linux (v. 5 server):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/sudo-1.7.2p1-13.el5.src.rpm

i386:
sudo-1.7.2p1-13.el5.i386.rpm
sudo-debuginfo-1.7.2p1-13.el5.i386.rpm

ia64:
sudo-1.7.2p1-13.el5.ia64.rpm
sudo-debuginfo-1.7.2p1-13.el5.ia64.rpm

ppc:
sudo-1.7.2p1-13.el5.ppc.rpm
sudo-debuginfo-1.7.2p1-13.el5.ppc.rpm

s390x:
sudo-1.7.2p1-13.el5.s390x.rpm
sudo-debuginfo-1.7.2p1-13.el5.s390x.rpm

x86_64:
sudo-1.7.2p1-13.el5.x86_64.rpm
sudo-debuginfo-1.7.2p1-13.el5.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/#package

7. References:

https://www.redhat.com/security/data/cve/CVE-2011-0010.html
https://access.redhat.com/security/updates/classification/#low

8. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2012 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFPQyMDXlSAg2UNWIIRAn42AKCtVY7KQJSk2HpwSOuZfu9PjSRqvACgt3n2
HmtBMRhdgnVA/HlM2stOxd8=
=AyyQ
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBT0R86u4yVqjM2NGpAQKKNg//a2xj0zyuytM9ZwOIyJjw3gImttTzQwaf
O9qg7ebPt9bb3ChZiLUY+d6aewgr/On/0alT5YV1VTsjwtLoy5u5ddK9LXeeJ1PP
01kSRlCQeJ86anOYOMm0y8Ez6V/0AW3pDcyRvSJRbahFFB1LLsjXn65jSPhoM+HE
0Uw6FxfuR+X7abgaY8Qo64meoLstSKcuuzGewVKXVi8NyzipYqKCyEbgyoK518XG
GtTAIgvB7HL8V+FFcjMkvOduF1PvUY/d/rnB4iW4nZvneYtd5LOPm3iAulFwsldR
6wMbIGK2+SJabqdDYdQLbjKF+lgy/xGi7RnMCGHdaA9I5xXbkjXg6+iYZgzaymMI
xahlVPIKE9NVRgvazyB7ke/wEF0XRowV5GBheluRAe889wX0rcKmHhkUMqa/cs/I
sSgAwhcYzfdc1GRyAYDY01XRBGDxz2iXzDu+DQ60eDTVtviYQlN9zjxKwY4snP8y
XANH3NH5n3TSStIvflDsi+LLmIavdM3APcWmGsPfAum6F51B5kJ3jm4pb13IeQVQ
aQbt/qUqbVdCrDO72DbZka2nyCNj1WNe9PvewBYjXaevZLIFLROfQ/oXWyMn/5hb
ahAC9yWom6R20ZErA7YDf+qGR4QsUqHxnEbxvTSfPdRcypGwSvcTw0waMxvx0Wh8
6Ffykoj6dGI=
=BUHK
-----END PGP SIGNATURE-----