Debian: lintian insecure temporary directory fix
Posted by Joe Shakespeare   
Debian Jeroen van Wolffelaar discovered a problem in lintian, the Debian package checker. The program removes the working directory even if it wasn't created at program start, removing an unrelated file or directory a malicious user inserted via a symlink attack.

--------------------------------------------------------------------------
Debian Security Advisory DSA 630-1                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
January 10th, 2005                      http://www.debian.org/security/faq
--------------------------------------------------------------------------

Package        : lintian
Vulnerability  : insecure temporary directory
Problem-Type   : local
Debian-specific: yes
CVE ID         : CAN-2004-1000
Debian Bug     : 286681

Jeroen van Wolffelaar discovered a problem in lintian, the Debian
package checker.  The program removes the working directory even if it
wasn't created at program start, removing an unrelated file or
directory a malicious user inserted via a symlink attack.

For the stable distribution (woody) this problem has been fixed in
version 1.20.17.1.

For the unstable distribution (sid) this problem has been fixed in
version 1.23.6.

We recommend that you upgrade your lintian package.


Upgrade Instructions
--------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 3.0 alias woody
--------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/l/lintian/lintian_1.20.17.1.dsc
      Size/MD5 checksum:      505 03d54a4d67f1c784cbee0fdac29fd9d6
    http://security.debian.org/pool/updates/main/l/lintian/lintian_1.20.17.1.tar.gz
      Size/MD5 checksum:   198277 886c05fe72a348ca3db23856c59bf8af

  Architecture independent components:

    http://security.debian.org/pool/updates/main/l/lintian/lintian_1.20.17.1_all.deb
      Size/MD5 checksum:   171384 bc968e0eeebad128e743d716e4bc10e7


  These files will probably be moved into the stable distribution on
  its next update.

---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show ' and http://packages.debian.org/