Gentoo: 201003-01: sudo: Privilege escalation
Posted by Benjamin D. Thomas   
Gentoo Two vulnerabilities in sudo might allow local users to escalateprivileges and execute arbitrary code with root privileges.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 201003-01
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: sudo: Privilege escalation
      Date: March 03, 2010
      Bugs: #306865
        ID: 201003-01

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Two vulnerabilities in sudo might allow local users to escalate
privileges and execute arbitrary code with root privileges.

Background
==========

sudo allows a system administrator to give users the ability to run
commands as other users.

Affected packages
=================

    -------------------------------------------------------------------
     Package         /  Vulnerable  /                       Unaffected
    -------------------------------------------------------------------
  1  app-admin/sudo     < 1.7.2_p4                         >= 1.7.2_p4

Description
===========

Multiple vulnerabilities have been discovered in sudo:

* Glenn Waller and neonsignal reported that sudo does not properly
  handle access control of the "sudoedit" pseudo-command
  (CVE-2010-0426).

* Harald Koenig reported that sudo does not properly set
  supplementary groups when using the "runas_default" option
  (CVE-2010-0427).

Impact
======

A local attacker with privileges to use "sudoedit" or the privilege to
execute commands with the "runas_default" setting enabled could
leverage these vulnerabilities to execute arbitrary code with elevated
privileges.

Workaround
==========

CVE-2010-0426: Revoke all "sudoedit" privileges, or use the full path
to sudoedit. CVE-2010-0427: Remove all occurrences of the
"runas_default" setting.

Resolution
==========

All sudo users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=app-admin/sudo-1.7.2_p4"

References
==========

  [ 1 ] CVE-2010-0426
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0426
  [ 2 ] CVE-2010-0427
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0427

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-201003-01.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======

Copyright 2010 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5