Bug 474317 (CVE-2008-5314) - CVE-2008-5314 clamav: DoS / crash via crafted jpeg image
Summary: CVE-2008-5314 clamav: DoS / crash via crafted jpeg image
Alias: CVE-2008-5314
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2008-12-03 10:09 UTC by Tomas Hoger
Modified: 2019-09-29 12:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-03-29 09:21:30 UTC

Attachments (Terms of Use)
Upstream patch (3.73 KB, patch)
2008-12-03 10:10 UTC, Tomas Hoger
no flags Details | Diff
Test case from the upstream bug report (993 bytes, text/plain)
2008-12-03 10:11 UTC, Tomas Hoger
no flags Details

Description Tomas Hoger 2008-12-03 10:09:46 UTC
Upstream clamav version 0.94.2 was released, which fixes an issue with stack overflow caused by deep recursion triggered by a crafted jpeg image.

Upstream bug report:

Upstream patch:
svn diff -c 4478 http://svn.clamav.net/svn/clamav-devel/

Comment 1 Tomas Hoger 2008-12-03 10:10:26 UTC
Created attachment 325508 [details]
Upstream patch

svn diff -c 4478 http://svn.clamav.net/svn/clamav-devel/

Comment 2 Tomas Hoger 2008-12-03 10:11:09 UTC
Created attachment 325509 [details]
Test case from the upstream bug report


Comment 3 Tomas Hoger 2008-12-03 10:16:10 UTC
JPEG file generated by the test case in comment #2 crashes clamav with outdated virus DB (e.g. one installed on F9 from Fedora archives), but no longer crashes clamav with up-to-date DB files (as noted in the upstream bug, affected functionality was disabled in the affected versions).

So we're back at the old, yet still unanswered question:

Is it worth backporting patches to older versions, when the affected code remains disabled there anyway, so they are not really affected in most cases, just clamav is getting more and more crippled in the time?

Comment 4 Robert Scheck 2008-12-03 10:33:29 UTC
Tomas, I think you should forward this question upstream, as I got different inofficial replies by them. Maybe as Security Team you've a better chance to
get a real answer how things should be and how it behaved in the past.

EPEL 4 and 5 as well as Fedora 10 and Rawhide are already on the new version;
only Fedora 8 and Fedora 9 maybe need to get backported or whatever turns out
after the ClamAV upstream response.

Comment 5 Tomas Hoger 2008-12-03 17:13:22 UTC
CVE id CVE-2008-5314 was assigned to this issue:

Stack consumption vulnerability in libclamav/special.c in ClamAV
before 0.94.2 allows remote attackers to cause a denial of service
(daemon crash) via a crafted JPEG file, related to the
cli_check_jpeg_exploit, jpeg_check_photoshop, and
jpeg_check_photoshop_8bim functions.

Comment 6 Fedora Update System 2008-12-07 04:20:34 UTC
clamav-0.94.2-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.