[Full-disclosure] rPSA-2007-0212-1 util-linux

yearsilent yearsilent at yahoo.com
Fri Oct 12 09:34:04 BST 2007


could anybody explain this bug?
   
  I saw the git diff:
   
   
  -                               setuid(getuid());
  -                               setgid(getgid());
  +                               if(setgid(getgid()) < 0)
  +                                       die(EX_FAIL, _("umount: cannot set group id: %s"), strerror(errno));
  +
  +                               if(setuid(getuid()) < 0)
  +                                       die(EX_FAIL, _("umount: cannot set user id: %s"), strerror(errno));
  +
   
   
  not only root can do mount ? what condition could cause setuid failed ?

rPath Update Announcements <announce-noreply at rpath.com> wrote:
  rPath Security Advisory: 2007-0212-1
Published: 2007-10-08
Products: rPath Linux 1
Rating: Major
Exposure Level Classification:
Local Root Deterministic Privilege Escalation
Updated Versions:
util-linux=/conary.rpath.com at rpl:devel//1/2.12r-1.5-1

rPath Issue Tracking System:
https://issues.rpath.com/browse/RPL-1757

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5191

Description:
Previous versions of the util-linux package contain mount and umount
utilities that do not correctly drop privileges, which may allow local
attackers to gain privileges via helper utilities (such as mount.cifs).

Copyright 2007 rPath, Inc.
This file is distributed under the terms of the MIT License.
A copy is available at http://www.rpath.com/permanent/mit-license.html

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.grok.org.uk/pipermail/full-disclosure/attachments/20071012/2f32f570/attachment.html 


Full-Disclosure is hosted and sponsored by Secunia.