DSA-283-1 xfsdump -- insecure file creation

Related Vulnerabilities: CVE-2003-0173  

Ethan Benson discovered a problem in xfsdump, that contains administrative utilities for the XFS filesystem. When filesystem quotas are enabled xfsdump runs xfsdq to save the quota information into a file at the root of the filesystem being dumped. The manner in which this file is created is unsafe. While fixing this, a new option “-f path” has been added to xfsdq(8) to specify an output file instead of using the standard output stream. This file is created by xfsdq and xfsdq will fail to run if it exists already. The file is also created with a more appropriate mode than whatever the umask happened to be when xfsdump(8) was run. For the stable distribution (woody) this problem has been fixed in version 2.0.1-2. The old stable distribution (potato) is not affected since it doesn't contain xfsdump packages. For the unstable distribution (sid) this problem has been fixed in version 2.2.8-1. We recommend that you upgrade your xfsdump package immediately.

Debian Security Advisory

DSA-283-1 xfsdump -- insecure file creation

Date Reported:
11 Apr 2003
Affected Packages:
xfsdump
Vulnerable:
Yes
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 7321.
In Mitre's CVE dictionary: CVE-2003-0173.
CERT's vulnerabilities, advisories and incident notes: VU#111673.
More information:

Ethan Benson discovered a problem in xfsdump, that contains administrative utilities for the XFS filesystem. When filesystem quotas are enabled xfsdump runs xfsdq to save the quota information into a file at the root of the filesystem being dumped. The manner in which this file is created is unsafe.

While fixing this, a new option “-f path” has been added to xfsdq(8) to specify an output file instead of using the standard output stream. This file is created by xfsdq and xfsdq will fail to run if it exists already. The file is also created with a more appropriate mode than whatever the umask happened to be when xfsdump(8) was run.

For the stable distribution (woody) this problem has been fixed in version 2.0.1-2.

The old stable distribution (potato) is not affected since it doesn't contain xfsdump packages.

For the unstable distribution (sid) this problem has been fixed in version 2.2.8-1.

We recommend that you upgrade your xfsdump package immediately.

Fixed in:

Debian GNU/Linux 3.0 (woody)

Source:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2.dsc
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2.tar.gz
Alpha:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_alpha.deb
ARM:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_arm.deb
Intel IA-32:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_i386.deb
Intel IA-64:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_ia64.deb
HPPA:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_hppa.deb
Motorola 680x0:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_m68k.deb
Big endian MIPS:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_mips.deb
Little endian MIPS:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_mipsel.deb
PowerPC:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_powerpc.deb
IBM S/390:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_s390.deb
Sun Sparc:
http://security.debian.org/pool/updates/main/x/xfsdump/xfsdump_2.0.1-2_sparc.deb

MD5 checksums of the listed files are available in the original advisory.