- Issued:
- 2012-02-21
- Updated:
- 2012-02-21
RHSA-2012:0309 - Security Advisory
Synopsis
Low: sudo security and bug fix update
Type/Severity
Security Advisory: Low
Red Hat Insights patch analysis
Identify and remediate systems affected by this advisory.
Topic
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.
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.
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
Affected Products
- Red Hat Enterprise Linux Server 5 x86_64
- Red Hat Enterprise Linux Server 5 ia64
- Red Hat Enterprise Linux Server 5 i386
- Red Hat Enterprise Linux Workstation 5 x86_64
- Red Hat Enterprise Linux Workstation 5 i386
- Red Hat Enterprise Linux Desktop 5 x86_64
- Red Hat Enterprise Linux Desktop 5 i386
- Red Hat Enterprise Linux for IBM z Systems 5 s390x
- Red Hat Enterprise Linux for Power, big endian 5 ppc
- Red Hat Enterprise Linux Server from RHUI 5 x86_64
- Red Hat Enterprise Linux Server from RHUI 5 i386
Fixes
- BZ - 477185 - sudo changes uid before calling SELInux calls, preventing it from setting terminal context when using non priv account
- BZ - 627543 - The Runas_Spec are ignored in sudoers file
- BZ - 668879 - CVE-2011-0010 sudo: does not ask for password on GID changes
- BZ - 673072 - sudo segfault
- BZ - 673157 - sudo fails to report error correctly when execv(3) fails
- BZ - 697111 - sudo -l inserts new lines based on terminal width, causing errors when output is piped.
CVEs
Red Hat Enterprise Linux Server 5
SRPM | |
---|---|
sudo-1.7.2p1-13.el5.src.rpm | SHA-256: 8591b9bf8b0729c142401f9e00e879978046107a855a46793e583fc906b19267 |
x86_64 | |
sudo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 390fd1aeb84db50a408acc87220c3eec5049c7731f7c0974d077b7a2ab63411e |
sudo-debuginfo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 43e811c88d6a1d96365f4e6ab935fcd1d1a8a36f489c2424b29db228ce608e76 |
ia64 | |
sudo-1.7.2p1-13.el5.ia64.rpm | SHA-256: a5f87f6ef03873b2d7135e78198a5d2ac9722946a1a298b2c61b420fc2ce4eee |
sudo-debuginfo-1.7.2p1-13.el5.ia64.rpm | SHA-256: 4025818f7df289557214dfe6525c7af369d116057c21a8f89b8615037fb82dd7 |
i386 | |
sudo-1.7.2p1-13.el5.i386.rpm | SHA-256: a3f6461ac16d15b2348304408c75a3240bcdb8f029f85207b63ec8c15ed70484 |
sudo-debuginfo-1.7.2p1-13.el5.i386.rpm | SHA-256: 2effc074b2bf1d0761daf015d8f8a0ad26fad06bf39f5268ed28b3e10dbedb36 |
Red Hat Enterprise Linux Workstation 5
SRPM | |
---|---|
sudo-1.7.2p1-13.el5.src.rpm | SHA-256: 8591b9bf8b0729c142401f9e00e879978046107a855a46793e583fc906b19267 |
x86_64 | |
sudo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 390fd1aeb84db50a408acc87220c3eec5049c7731f7c0974d077b7a2ab63411e |
sudo-debuginfo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 43e811c88d6a1d96365f4e6ab935fcd1d1a8a36f489c2424b29db228ce608e76 |
i386 | |
sudo-1.7.2p1-13.el5.i386.rpm | SHA-256: a3f6461ac16d15b2348304408c75a3240bcdb8f029f85207b63ec8c15ed70484 |
sudo-debuginfo-1.7.2p1-13.el5.i386.rpm | SHA-256: 2effc074b2bf1d0761daf015d8f8a0ad26fad06bf39f5268ed28b3e10dbedb36 |
Red Hat Enterprise Linux Desktop 5
SRPM | |
---|---|
sudo-1.7.2p1-13.el5.src.rpm | SHA-256: 8591b9bf8b0729c142401f9e00e879978046107a855a46793e583fc906b19267 |
x86_64 | |
sudo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 390fd1aeb84db50a408acc87220c3eec5049c7731f7c0974d077b7a2ab63411e |
sudo-debuginfo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 43e811c88d6a1d96365f4e6ab935fcd1d1a8a36f489c2424b29db228ce608e76 |
i386 | |
sudo-1.7.2p1-13.el5.i386.rpm | SHA-256: a3f6461ac16d15b2348304408c75a3240bcdb8f029f85207b63ec8c15ed70484 |
sudo-debuginfo-1.7.2p1-13.el5.i386.rpm | SHA-256: 2effc074b2bf1d0761daf015d8f8a0ad26fad06bf39f5268ed28b3e10dbedb36 |
Red Hat Enterprise Linux for IBM z Systems 5
SRPM | |
---|---|
sudo-1.7.2p1-13.el5.src.rpm | SHA-256: 8591b9bf8b0729c142401f9e00e879978046107a855a46793e583fc906b19267 |
s390x | |
sudo-1.7.2p1-13.el5.s390x.rpm | SHA-256: 476bfbb0e942135ef27e4e568274f62fb7a7bcd135839468898c0c07615f1d2a |
sudo-debuginfo-1.7.2p1-13.el5.s390x.rpm | SHA-256: 4962a2860a8c888d47fcc471bd6433b6af215eacc371dce15fb0ee47f5ba817e |
Red Hat Enterprise Linux for Power, big endian 5
SRPM | |
---|---|
sudo-1.7.2p1-13.el5.src.rpm | SHA-256: 8591b9bf8b0729c142401f9e00e879978046107a855a46793e583fc906b19267 |
ppc | |
sudo-1.7.2p1-13.el5.ppc.rpm | SHA-256: 51079730bba1d2d60b6519f1d2f033786da1af50fdd25aab7253684cd555b5f0 |
sudo-debuginfo-1.7.2p1-13.el5.ppc.rpm | SHA-256: a73c32ab55e2038220ea1a567fa9a8dfba34689ebbbce2833a097a67447b5f98 |
Red Hat Enterprise Linux Server from RHUI 5
SRPM | |
---|---|
sudo-1.7.2p1-13.el5.src.rpm | SHA-256: 8591b9bf8b0729c142401f9e00e879978046107a855a46793e583fc906b19267 |
x86_64 | |
sudo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 390fd1aeb84db50a408acc87220c3eec5049c7731f7c0974d077b7a2ab63411e |
sudo-debuginfo-1.7.2p1-13.el5.x86_64.rpm | SHA-256: 43e811c88d6a1d96365f4e6ab935fcd1d1a8a36f489c2424b29db228ce608e76 |
i386 | |
sudo-1.7.2p1-13.el5.i386.rpm | SHA-256: a3f6461ac16d15b2348304408c75a3240bcdb8f029f85207b63ec8c15ed70484 |
sudo-debuginfo-1.7.2p1-13.el5.i386.rpm | SHA-256: 2effc074b2bf1d0761daf015d8f8a0ad26fad06bf39f5268ed28b3e10dbedb36 |
The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.