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
This issue should also affect RHEL2.1 and RHEL3.
Created attachment 113839 [details] Proposed patch from Steve Grubb
Created attachment 116230 [details] I suggest to use this patch. Steve's patch doesn't solve race condition on directories. My fix use mode 0700 for dir creation, which close some more holes.
We have not released an update for this issue on RHEL2.1 yet. RHEL3 and RHEL4 were fixed in RHSA-2005:378
The RHEL 2.1 bug in being tracked in bug #169760