Bug 157695 - CAN-2005-0448 perl File::Path.pm rmtree race condition
CAN-2005-0448 perl File::Path.pm rmtree race condition
Product: Fedora
Classification: Fedora
Component: perl (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Petr Rockai
David Lawrence
: Security
Depends On:
  Show dependency treegraph
Reported: 2005-05-13 16:42 EDT by Josh Bressers
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 5.8.5-14.FC3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-28 09:07:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
debian's 03_fix_file_path (8.09 KB, patch)
2005-06-15 14:01 EDT, Petr Rockai
no flags Details | Diff

  None (edit)
Description Josh Bressers 2005-05-13 16:42:32 EDT
+++ 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.


attachment 114350 [details] contains the ubuntu patch (it needs some cleaning up)
Comment 1 Warren Togami 2005-05-28 02:05:58 EDT
"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 08:41:46 EDT

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 06:40:27 EDT
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 14:01:52 EDT
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 04:22:45 EDT
Assigning to self. 
Comment 6 Petr Rockai 2005-06-16 08:15:19 EDT
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 09:07:41 EDT
Fixed in FC3 update perl-5.8.5-14.FC3 

Note You need to log in before you can comment on or make changes to this bug.