Debian: libtiff arbitrary code execution fix
Posted by Joe Shakespeare   
Debian "infamous41md" discovered a problem in libtiff, the Tag Image File Format library for processing TIFF graphics files. Upon reading a TIFF file it is possible to allocate a zero sized buffer and write to it which would lead to the execution of arbitrary code.

--------------------------------------------------------------------------
Debian Security Advisory DSA 617-1                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
December 24th, 2004                     http://www.debian.org/security/faq
--------------------------------------------------------------------------

Package        : tiff
Vulnerability  : insufficient input validation
Problem-Type   : remote
Debian-specific: no
CVE ID         : CAN-2004-1308

"infamous41md" discovered a problem in libtiff, the Tag Image File
Format library for processing TIFF graphics files.  Upon reading a
TIFF file it is possible to allocate a zero sized buffer and write to
it which would lead to the execution of arbitrary code.

For the stable distribution (woody) this problem has been fixed in
version 3.5.5-6woody2.

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

We recommend that you upgrade your libtiff packages immediately.


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/t/tiff/tiff_3.5.5-6.woody3.dsc
      Size/MD5 checksum:      637 340b528a9a2735be4445813d3b31bebd
    http://security.debian.org/pool/updates/main/t/tiff/tiff_3.5.5-6.woody3.diff.gz
      Size/MD5 checksum:    36863 0fcfc242c2912f11ddfa61e5acf6a3b5
    http://security.debian.org/pool/updates/main/t/tiff/tiff_3.5.5.orig.tar.gz
      Size/MD5 checksum:   693641 3b7199ba793dec6ca88f38bb0c8cc4d8

  Alpha architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_alpha.deb
      Size/MD5 checksum:   141430 e2a4e5353b5190ba2f271b9e430f4d8a
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_alpha.deb
      Size/MD5 checksum:   105324 61006312584ef5098a6fedfb8b8eec5c
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_alpha.deb
      Size/MD5 checksum:   423230 c37b5c0a9f11461b31552091e84f1034

  ARM architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_arm.deb
      Size/MD5 checksum:   116942 7e670291be3f1e88a7cf87238c8f4dc8
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_arm.deb
      Size/MD5 checksum:    90626 462d7e4027442042d9794f833fb42776
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_arm.deb
      Size/MD5 checksum:   404272 021f714fb0ba6297a7edab37288d0d1d

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_i386.deb
      Size/MD5 checksum:   112074 31124799ab739639d42ba7d994305c04
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_i386.deb
      Size/MD5 checksum:    81192 ff56b894c1f3d992daa72156eebf1bb8
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_i386.deb
      Size/MD5 checksum:   386982 4520ae6f631c76558b9d2e519018f331

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_ia64.deb
      Size/MD5 checksum:   158772 8dca52e254f5169876bdda83d5a73e62
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_ia64.deb
      Size/MD5 checksum:   135576 67bf80f51715e09f59bdae774b5ad53b
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_ia64.deb
      Size/MD5 checksum:   446536 54c08823147ca27851c1bb1c29aeced7

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_hppa.deb
      Size/MD5 checksum:   128308 e62fd69fdbf5dd6dc337347e907d341d
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_hppa.deb
      Size/MD5 checksum:   106956 296b0ead43581f15dee241d9c41141e2
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_hppa.deb
      Size/MD5 checksum:   420350 f1808003f1367691ea1d91227dfd9e09

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_m68k.deb
      Size/MD5 checksum:   107296 96ff857cd9e55fd6353285eeb7df7c33
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_m68k.deb
      Size/MD5 checksum:    79934 38565385a51542dcfe6c2fb25da5ef50
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_m68k.deb
      Size/MD5 checksum:   380168 85a1ad91ded95885ff7a3e5d95f51d53

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_mips.deb
      Size/MD5 checksum:   124070 6dbd5984962bbbeb495cfee6c8dcb084
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_mips.deb
      Size/MD5 checksum:    87990 fc176880406aa7a7b1cc5a8c72f94dae
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_mips.deb
      Size/MD5 checksum:   410780 319dd3f620c98980e1af2768900a65d3

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_mipsel.deb
      Size/MD5 checksum:   123700 ea4c56022faf06f7f83b1f67d2098f98
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_mipsel.deb
      Size/MD5 checksum:    88360 8d5acf467a5e30e7a748d454e1de6722
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_mipsel.deb
      Size/MD5 checksum:   411336 a8d1830a5e13862ec418e4765d421c9f

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_powerpc.deb
      Size/MD5 checksum:   116054 0d01da61ec3f6b9500d3f930f4f5f314
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_powerpc.deb
      Size/MD5 checksum:    89600 adcfaa660fb4892be2c07383e5e29e64
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_powerpc.deb
      Size/MD5 checksum:   402430 8e263f5531615f6a870ad83a8de1b56b

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_s390.deb
      Size/MD5 checksum:   116884 e99840003f0b894d57ca73831019d151
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_s390.deb
      Size/MD5 checksum:    91924 afa7e1b5f6784102f46ff3b51c2e89eb
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_s390.deb
      Size/MD5 checksum:   395340 4ebcdeeab43bd13178e8eb27fea9ba2a

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/t/tiff/libtiff-tools_3.5.5-6.woody3_sparc.deb
      Size/MD5 checksum:   132894 3819976028448bb9cee99fb0b9b197e4
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g_3.5.5-6.woody3_sparc.deb
      Size/MD5 checksum:    88714 31f53c25d338a8a44ae2c951d1c49221
    http://security.debian.org/pool/updates/main/t/tiff/libtiff3g-dev_3.5.5-6.woody3_sparc.deb
      Size/MD5 checksum:   397068 26af71d9e153480ffd79791794a5da86


  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/