Bug 157695

Summary: CAN-2005-0448 perl File::Path.pm rmtree race condition
Product: [Fedora] Fedora Reporter: Josh Bressers <bressers>
Component: perlAssignee: Petr Rockai <prockai>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 3CC: perl-devel, wtogami
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20050309,source=cve,reported=20050314
Fixed In Version: 5.8.5-14.FC3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-28 13:07:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
debian's 03_fix_file_path none

Description Josh Bressers 2005-05-13 20:42:32 UTC
+++ This bug was initially created as a clone of Bug #157694 +++

Race condition in the rmtree function in File::Path.pm in Perl before 5.8.4
allows local users to create arbitrary setuid binaries in the tree being
deleted, a different vulnerability than CAN-2004-0452.

http://marc.theaimsgroup.com/?l=bugtraq&m=111039131424834&w=2

attachment 114350 [details] contains the ubuntu patch (it needs some cleaning up)

Comment 1 Warren Togami 2005-05-28 06:05:58 UTC
"Race condition in the rmtree function in File::Path.pm in Perl before 5.8.4
allows local users to create arbitrary setuid binaries"

5.8.4 means FC3 is unaffected because we have perl-5.8.5?  Can someone confirm?

Comment 2 Josh Bressers 2005-05-28 12:41:46 UTC
Warren,

I just took a look at the latest perl source, this issue has not been fixed by
upstream.  It's proving very hard to do right, which is probably why upstream
hasn't done it yet.

Comment 3 Warren Togami 2005-05-31 10:40:27 UTC
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=114350
Attachment to fix this security bug is from Ubuntu, but we require help cleaning
it up and testing before issuing a FC3 update.  Apparently this is a difficult
problem to fix, and this is our second attempt doing so. =(


Comment 4 Petr Rockai 2005-06-15 18:01:52 UTC
Created attachment 115494 [details]
debian's 03_fix_file_path

Why not just use the debian patch? (attached)

Comment 5 Petr Rockai 2005-06-16 08:22:45 UTC
Assigning to self. 

Comment 6 Petr Rockai 2005-06-16 12:15:19 UTC
Patched in CVS. Testing requested - if anyone has an exploit or something like 
that, please try out. The testsuite passes exactly like before patching, but 
regression testing is welcome as well. 

Comment 7 Petr Rockai 2005-07-28 13:07:41 UTC
Fixed in FC3 update perl-5.8.5-14.FC3