Gentoo alert: Clamav 0.65 DoS vulnerability

Posted by dave on Feb 18, 2004 4:59 AM EDT
Mailing list
Mail this story
Print this story

Oliver Eikemeier has reported a vulnerability in clamav, which can be exploited by a malformed uuencoded message causing a denial of service for programs that rely on the clamav daemon, such as SMTP daemons.

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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gentoo Linux Security Advisory GLSA 200402-07 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ~ http://security.gentoo.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

~ Severity: Normal ~ Title: Clamav 0.65 DoS vulnerability ~ Date: February 11, 2004 ~ Bugs: #41248 ~ ID: 200402-07

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis ========

Oliver Eikemeier has reported a vulnerability in clamav, which can be exploited by a malformed uuencoded message causing a denial of service for programs that rely on the clamav daemon, such as SMTP daemons.

Background ==========

Clam AntiVirus is a GPLed anti-virus toolkit, designed for integration with mail servers to perform attachment scanning. Clam AV also provides a command line scanner and a tool for fetching updates of the virus database.

Description ===========

Oliver Eikemeier of Fillmore Labs discovered the overflow in Clam AV 0.65 when it handled malformed UUEncoded messages, causing the daemon to shut down.

The problem originated in libclamav which calculates the line length of an uuencoded message by taking the ASCII value of the first character minus 64 while doing an assertion if the length is not in the allowed range, effectively terminating the calling program as clamav would not be available.

Impact ======

A malformed message such as the one below would cause a denial of service, and depending on the server configuration this may impact other daemons relying on Clam AV in a fatal manner.

To exploit the vulnerability, you can add the following [ excluding the two lines ] to ~/clamtest.mbox:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ~From -

begin 644 byebye byebye end - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Then do "clamscan --mbox -v ~/clamtest.mbox" or "clamdscan -v ~/clamtest.mbox; ps ax | grep clam": the former will cause an assertion and a segmentation fault, the latter would cause the daemon to shut down.

Workaround ==========

There is no immediate workaround, a software upgrade is required.

Resolution ==========

All users are urged to upgrade their Clam AV installations to Clam AV 0.67:

~ # emerge sync ~ # emerge -pv ">=net-mail/clamav-0.6.7" ~ # emerge ">=net-mail/clamav-0.6.7"

Concerns? =========

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to [e-mail:security@gentoo.org] or alternatively, you may file a bug at http://bugs.gentoo.org.

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAM2WoMMXbAy2b2EIRAs5AAKCdFwwNjAn9N+/XWItkTlOS+RmFzQCg527H biZdE9YEL8aD1XsF3VnAesM= =vvEP -----END PGP SIGNATURE-----



  Nav
» Read more about: Story Type: Security; Groups: Gentoo

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.