--------------------------------------------------------------------------
Debian Security Advisory DSA 228-1                     security@debian.org 
Debian -- Security Information                              Martin Schulze
January 14th, 2003                       Debian -- Debian security FAQ 
--------------------------------------------------------------------------

Package        : libmcrypt
Vulnerability  : buffer overflows and memory leak
Problem-type   : remote
Debian-specific: no
CVE  Id        : CAN-2003-0031 CAN-2003-0032

Ilia Alshanetsky discovered several buffer overflows in libmcrypt, a
decryption and encryption library, that originates in from improper or
lacking input validation.  By passing input which is longer then
expected to a number of functions (multiple functions are affected)
the user can successful make libmcrypt crash and may be able to insert
arbitrary, malicious, code which will be executed under the user
libmcrypt runs as, e.g. inside a web server.

Another vulnerability exists in the way libmcrypt loads algorithms via
libtool.  When different algorithms are loaded dynamically, each time
an algorithm is loaded a small part of memory is leaked.  In a
persistant enviroment (web server) this could lead to a memory
exhaustion attack that will exhaust all avaliable memory by launching
repeated requests at an application utilizing the mcrypt library.

For the current stable distribution (woody) this problem has been
fixed in version 2.5.0-1woody1.

The old stable distribution (potato) does not contain libmcrypt packages.

For the unstable distribution (sid) these problems have been fixed in
version 2.5.5-1.

We recommend that you upgrade your libmcrypt packages.


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:

      
      Size/MD5 checksum:      599 d8db647ab3b129e238b9521c6d1eeaec
      
      Size/MD5 checksum:     3374 fa752fede70fcbe88e690fe084edbe47
      
      Size/MD5 checksum:   498937 0d67938f9992f7ebd9906b128e2efd88

  Alpha architecture:

      
      Size/MD5 checksum:   510288 1facd4af685e1131ff7806a26a5be349
      
      Size/MD5 checksum:   169358 194c71dc0913bc321164ece862c13d1d

  ARM architecture:

      
      Size/MD5 checksum:   353544 b2e380c03a7c3400aa8eed3df460de39
      
      Size/MD5 checksum:   113614 e09f582ffdbd6194ddc21584574d3f15

  Intel IA-32 architecture:

      
      Size/MD5 checksum:   300576 940ad919f58bcf5e63aa2ae5d82dfc81
      
      Size/MD5 checksum:   109618 f7aca58ac7f137b9c4a5cb30c0aa3348

  Intel IA-64 architecture:

      
      Size/MD5 checksum:   365776 e18bdeea760929e2120544f2b264d42e
      
      Size/MD5 checksum:   189900 25875c90c0b2c2019208185c9e30afca

  HP Precision architecture:

      
      Size/MD5 checksum:   407922 70dc6f762134a61ad5732812abffad75
      
      Size/MD5 checksum:   132796 c3c6a6e01be6f31c133a1224373a4a7f

  Motorola 680x0 architecture:

      
      Size/MD5 checksum:   310176 a7a5760c2398060612eb79a80562c8c6
      
      Size/MD5 checksum:   110704 b4a557f582e2af90f85107748e786d43

  Big endian MIPS architecture:

      
      Size/MD5 checksum:   385604 9761cbfc9ef7328f9820f49f4a2edc38
      
      Size/MD5 checksum:   122324 d4c774942019642efa35236a59d425a9

  Little endian MIPS architecture:

      
      Size/MD5 checksum:   366450 3c0dcc1a9b2c5e0b3cddbff75505226e
      
      Size/MD5 checksum:   120550 24cf66a1951f3a41ab473f09d63babbf

  PowerPC architecture:

      
      Size/MD5 checksum:   380250 45e7571557368b2171947aa1b58e70ee
      
      Size/MD5 checksum:   116298 be1d6ae14bb2502d89fda6998fa3d987

  IBM S/390 architecture:

      
      Size/MD5 checksum:   371686 34cf7bc605ab0b7491032ecaab5b120c
      
      Size/MD5 checksum:   120802 bee501cf9ecdab88fbe95bb78f667ded

  Sun Sparc architecture:

      
      Size/MD5 checksum:   376994 ff79d1e9fc1ac1ee836b7293a1132b8e
      
      Size/MD5 checksum:   138610 620679999223d76bd35f3fca0ee5c954


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

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


Debian: libmcrypt multiple vulnerabilities

January 14, 2003
There are multiple vulnerabilities in libmcrypt including a buffer overflow and a memory leak.

Summary

Ilia Alshanetsky discovered several buffer overflows in libmcrypt, a
decryption and encryption library, that originates in from improper or
lacking input validation. By passing input which is longer then
expected to a number of functions (multiple functions are affected)
the user can successful make libmcrypt crash and may be able to insert
arbitrary, malicious, code which will be executed under the user
libmcrypt runs as, e.g. inside a web server.

Another vulnerability exists in the way libmcrypt loads algorithms via
libtool. When different algorithms are loaded dynamically, each time
an algorithm is loaded a small part of memory is leaked. In a
persistant enviroment (web server) this could lead to a memory
exhaustion attack that will exhaust all avaliable memory by launching
repeated requests at an application utilizing the mcrypt library.

For the current stable distribution (woody) this problem has been
fixed in version 2.5.0-1woody1.

The old stable distribution (potato) does not contain libmcrypt packages.

For the unstable distribution (sid) these problems have been fixed in
version 2.5.5-1.

We recommend that you upgrade your libmcrypt packages.


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:


Size/MD5 checksum: 599 d8db647ab3b129e238b9521c6d1eeaec

Size/MD5 checksum: 3374 fa752fede70fcbe88e690fe084edbe47

Size/MD5 checksum: 498937 0d67938f9992f7ebd9906b128e2efd88

Alpha architecture:


Size/MD5 checksum: 510288 1facd4af685e1131ff7806a26a5be349

Size/MD5 checksum: 169358 194c71dc0913bc321164ece862c13d1d

ARM architecture:


Size/MD5 checksum: 353544 b2e380c03a7c3400aa8eed3df460de39

Size/MD5 checksum: 113614 e09f582ffdbd6194ddc21584574d3f15

Intel IA-32 architecture:


Size/MD5 checksum: 300576 940ad919f58bcf5e63aa2ae5d82dfc81

Size/MD5 checksum: 109618 f7aca58ac7f137b9c4a5cb30c0aa3348

Intel IA-64 architecture:


Size/MD5 checksum: 365776 e18bdeea760929e2120544f2b264d42e

Size/MD5 checksum: 189900 25875c90c0b2c2019208185c9e30afca

HP Precision architecture:


Size/MD5 checksum: 407922 70dc6f762134a61ad5732812abffad75

Size/MD5 checksum: 132796 c3c6a6e01be6f31c133a1224373a4a7f

Motorola 680x0 architecture:


Size/MD5 checksum: 310176 a7a5760c2398060612eb79a80562c8c6

Size/MD5 checksum: 110704 b4a557f582e2af90f85107748e786d43

Big endian MIPS architecture:


Size/MD5 checksum: 385604 9761cbfc9ef7328f9820f49f4a2edc38

Size/MD5 checksum: 122324 d4c774942019642efa35236a59d425a9

Little endian MIPS architecture:


Size/MD5 checksum: 366450 3c0dcc1a9b2c5e0b3cddbff75505226e

Size/MD5 checksum: 120550 24cf66a1951f3a41ab473f09d63babbf

PowerPC architecture:


Size/MD5 checksum: 380250 45e7571557368b2171947aa1b58e70ee

Size/MD5 checksum: 116298 be1d6ae14bb2502d89fda6998fa3d987

IBM S/390 architecture:


Size/MD5 checksum: 371686 34cf7bc605ab0b7491032ecaab5b120c

Size/MD5 checksum: 120802 bee501cf9ecdab88fbe95bb78f667ded

Sun Sparc architecture:


Size/MD5 checksum: 376994 ff79d1e9fc1ac1ee836b7293a1132b8e

Size/MD5 checksum: 138610 620679999223d76bd35f3fca0ee5c954


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

Severity
Package : libmcrypt
Vulnerability : buffer overflows and memory leak
Problem-type : remote
Debian-specific: no
CVE Id : CAN-2003-0031 CAN-2003-0032

Related News