SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   Fileutils (GNU) Vendors:   [Multiple Authors/Vendors]
(Mandrake Issues Fix) GNU Fileutils Package Race Condition May Allow Local Users to Cause a Root User to Remove the Entire Filesystem
SecurityTracker Alert ID:  1004313
SecurityTracker URL:  http://securitytracker.com/id/1004313
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  May 17 2002
Impact:   Denial of service via local system, Modification of system information, Modification of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 4.1 stable and 4.1.6 development version
Description:   A race condition vulnerability was reported in the GNU Fileutils package. A local user may be able to cause the entire filesystem to be removed by a root level user when the root user attempts to remove another directory (under certain conditions).

It is reported that a race condition exists in several components of the GNU fileutils package that may allow a local user to cause the root user to delete the entire filesystem.

According to the report, an insecure chdir("..") syscall is performed after removing the content of a subdirectory in order to get back to the upper directory during recursive removal of directory tree.

Condsider the following example of 'rm -fr /tmp/a' removing '/tmp/a/b/c' directory tree:

(strace output simplified for better readability)

chdir("/tmp/a") = 0
chdir("b") = 0
chdir("c") = 0
chdir("..") = 0
rmdir("c") = 0
chdir("..") = 0
rmdir("b") = 0
fchdir(3) = 0
rmdir("/tmp/a") = 0

In the above example, the race condition occurs after the current directory is changed to /tmp/a/b/c. If a local user then moves the /tmp/a/b/c directory to the /tmp/c directory, the two subsequent chdir("..") syscalls will apparently change to the root directory / and then rm will start removing files from the entire file system (if the calling user has sufficient privileges).

Impact:   A local user may be able to cause the entire filesystem to be removed by a root level user when the root user attempts to remove another directory (under certain conditions).
Solution:   The vendor has released a fix for Mandrake Linux:

Mandrake Linux 8.1:
593e200c8b2f2c83e7a6bb90a54cd853 8.1/RPMS/fileutils-4.1-4.1mdk.i586.rpm
77b378e3eb3a323033cdd3acfafac1cc 8.1/SRPMS/fileutils-4.1-4.1mdk.src.rpm

Mandrake Linux 8.1/ia64:
ae05f3577f84578b724d1afbeba157ce ia64/8.1/RPMS/fileutils-4.1-4.1mdk.ia64.rpm
77b378e3eb3a323033cdd3acfafac1cc ia64/8.1/SRPMS/fileutils-4.1-4.1mdk.src.rpm

Mandrake Linux 8.2:
1e6190c59f161345caef5ea22680b820 8.2/RPMS/fileutils-4.1.5-4.1mdk.i586.rpm
7b018b86d14fc646058ca3cabc395b84 8.2/SRPMS/fileutils-4.1.5-4.1mdk.src.rpm

Mandrake Linux 8.2/ppc:
b76265d9f7f096a43ee05bfca2615bcd ppc/8.2/RPMS/fileutils-4.1.5-4.1mdk.ppc.rpm
7b018b86d14fc646058ca3cabc395b84 ppc/8.2/SRPMS/fileutils-4.1.5-4.1mdk.src.rpm

See the Source Message for the vendor's advisory containing directions on how to apply the appropriate fix.

Vendor URL:  www.gnu.org/software/fileutils/fileutils.html (Links to External Site)
Cause:   State error
Underlying OS:  Linux (Mandriva/Mandrake)
Underlying OS Comments:  8.1, 8.2

Message History:   This archive entry is a follow-up to the message listed below.
Mar 12 2002 GNU Fileutils Package Race Condition May Allow Local Users to Cause a Root User to Remove the Entire Filesystem



 Source Message Contents

Subject:  [Security Announce] MDKSA-2002:031 - fileutils update


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

________________________________________________________________________

                Mandrake Linux Security Update Advisory
________________________________________________________________________

Package name:           fileutils
Advisory ID:            MDKSA-2002:032
Date:                   May 16th, 2002
Affected versions:      8.1, 8.2
________________________________________________________________________

Problem Description:

 Wojciech Purczynski reported a race condition in some utilities in the
 GNU fileutils package that may cause root to delete the entire
 filesystem.  This only affects version 4.1 stable and 4.1.6 development
 versions, and the authors have fixed this in the latest development
 version.
________________________________________________________________________

References:

 http://isec.pl/vulnerabilities/0002.txt
 http://mail.gnu.org/pipermail/bug-fileutils/2002-March/002440.html
________________________________________________________________________

Updated Packages:

 Mandrake Linux 8.1:
 593e200c8b2f2c83e7a6bb90a54cd853  8.1/RPMS/fileutils-4.1-4.1mdk.i586.rpm
 77b378e3eb3a323033cdd3acfafac1cc  8.1/SRPMS/fileutils-4.1-4.1mdk.src.rpm

 Mandrake Linux 8.1/ia64:
 ae05f3577f84578b724d1afbeba157ce  ia64/8.1/RPMS/fileutils-4.1-4.1mdk.ia64.rpm
 77b378e3eb3a323033cdd3acfafac1cc  ia64/8.1/SRPMS/fileutils-4.1-4.1mdk.src.rpm

 Mandrake Linux 8.2:
 1e6190c59f161345caef5ea22680b820  8.2/RPMS/fileutils-4.1.5-4.1mdk.i586.rpm
 7b018b86d14fc646058ca3cabc395b84  8.2/SRPMS/fileutils-4.1.5-4.1mdk.src.rpm

 Mandrake Linux 8.2/ppc:
 b76265d9f7f096a43ee05bfca2615bcd  ppc/8.2/RPMS/fileutils-4.1.5-4.1mdk.ppc.rpm
 7b018b86d14fc646058ca3cabc395b84  ppc/8.2/SRPMS/fileutils-4.1.5-4.1mdk.src.rpm
________________________________________________________________________

Bug IDs fixed (see https://qa.mandrakesoft.com for more information):

________________________________________________________________________

To upgrade automatically, use MandrakeUpdate.  The verification of md5
checksums and GPG signatures is performed automatically for you.

If you want to upgrade manually, download the updated package from one 
of our FTP server mirrors and upgrade with "rpm -Fvh *.rpm".  A list of
FTP mirrors can be obtained from:

  http://www.mandrakesecure.net/en/ftp.php

Please verify the update prior to upgrading to ensure the integrity of
the downloaded package.  You can do this with the command:

  rpm --checksig <filename>

All packages are signed by MandrakeSoft for security.  You can obtain
the GPG public key of the Mandrake Linux Security Team from:

  https://www.mandrakesecure.net/RPM-GPG-KEYS

Please be aware that sometimes it takes the mirrors a few hours to 
update.

You can view other update advisories for Mandrake Linux at:

  http://www.mandrakesecure.net/en/advisories/

MandrakeSoft has several security-related mailing list services that
anyone can subscribe to.  Information on these lists can be obtained by
visiting:

  http://www.mandrakesecure.net/en/mlist.php

If you want to report vulnerabilities, please contact

  security@linux-mandrake.com
________________________________________________________________________

Type Bits/KeyID     Date       User ID
pub  1024D/22458A98 2000-07-10 Linux Mandrake Security Team
  <security@linux-mandrake.com>


- -----BEGIN PGP PUBLIC K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6/+hx75RURe1ebiJ9F77
9FQbpJ9Epz1KLSXvq974rnVb813zuGdmgFyk+ryA/rTR2RQ8h+EoNkwmATzRxBXV
Jb57fFQjxOu4eNjZAtfII/YXb0uyXXrdr5dlJ/3eXrcO4p0XAAMFBACCxo6Z269s
+A4v8C6Ui12aarOQcCDlV8cVG9LkyatU3FNTlnasqwo6EkaP572448weJWwN6SCX
Vl+xOYLiK0hL/6Jb/O9Agw75yUVdk+RMM2I4fNEi+y4hmfMh2siBv8yEkEvZjTcl
3TpkTfzYky85tu433wmKaLFOv0WjBFSikohGBBgRAgAGBQI5aefvAAoJEJqo0NAi
RYqYid0AoJgeWzXrEdIClBOSW5Q6FzqJJyaqAKC0Y9YI3UFlE4zSIGjcFlLJEJGX
lA==
=0ahQ
- -----END PGP PUBLIC KEY BLOCK-----

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE85BGzmqjQ0CJFipgRAge1AJwM9mH8XZf2VgUf1PEweVdfLf8G/QCgyY3+
DjrUTag2TIb68h1T8Q9ecy4=
=6CxJ
-----END PGP SIGNATURE-----

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC