Bug 155751

Summary: CAN-2005-1111 Race condition in cpio
Product: [Retired] Fedora Legacy Reporter: Josh Bressers <bressers>
Component: cpioAssignee: Fedora Legacy Bugs <bugs>
Status: CLOSED CANTFIX QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: fc3CC: mattdm, michal
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20050413,source=bugtraq,reported=20050413
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-10 19:16:39 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
patch fix cpio-2.6 race condition none

Description Josh Bressers 2005-04-22 18:51:29 UTC
+++ This bug was initially created as a clone of Bug #155749 +++

Race condition in cpio 2.6 and earlier allows local users to modify permissions
of arbitrary files via a hard link attack on a file while it is being
decompressed, whose permissions are changed by cpio after the decompression is
complete.

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

Comment 1 Peter Vrabec 2005-04-25 13:06:14 UTC
Created attachment 113628 [details]
patch fix cpio-2.6 race condition

I replaced some chown, chmod with fchmod and fchown. And close file descriptor
later.

Comment 2 Michal Jaegermann 2005-07-12 16:43:49 UTC
This bug is CLOSED RAWHIDE, and hopefuly fixed in cpio-2.6-7 from FC4 although
there is no explicit note to the effect in a changelog there, but I do not see
a security update for FC3 which would cover that bug and also CAN-2005-1229
(bug #156314) and this leaves those installations vulnerable.

Comment 3 Matthew Miller 2006-10-19 19:31:23 UTC
Reopening as per comment #2.

Comment 4 Matthew Miller 2006-10-19 19:32:53 UTC
also, confirming that this is fixed in FC4 and on.

Comment 5 Matthew Miller 2007-04-10 19:16:39 UTC
Fedora Core 3 is now completely unmaintained. These bugs can't be fixed in that
version. If the issue still persists in current Fedora Core, please reopen.
Thank you, and sorry about this.