Bugzilla – Full Text Bug Listing |
Summary: | VUL-0: CVE-2004-1308: libtiff directory entry count Int Overflow | ||
---|---|---|---|
Product: | [Novell Products] SUSE Security Incidents | Reporter: | Sebastian Krahmer <krahmer> |
Component: | Incidents | Assignee: | Marcus Meissner <meissner> |
Status: | RESOLVED FIXED | QA Contact: | Security Team bot <security-team> |
Severity: | Major | ||
Priority: | P3 - Medium | CC: | nadvornik, qa-bugs, security-team |
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | CVE-2004-1308: CVSS v2 Base Score: 10.0 (AV:N/AC:L/Au:N/C:C/I:C/A:C) | ||
Found By: | --- | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Attachments: |
libtiff.patchinfo
libtiff.9.2.patchinfo libtiff.maintained tiff.patch.maintained |
Description
Sebastian Krahmer
2004-12-22 21:12:33 UTC
<!-- SBZ_reproduce --> ... From: Dmitry V. Levin <ldv@altlinux.org> To: vendor-sec@lst.de Cc: Andrey Kiselev <dron@remotesensing.org> Subject: Re: [vendor-sec] Re: additional tiffdump vulnerability Parts/Attachments: 1 Shown ~28 lines Text 2 196 bytes Application ---------------------------------------- Hi, On Wed, Dec 22, 2004 at 12:52:40PM +0100, Martin Pitt wrote: [...] > This patch will cause the else clause to be executed, which will call > malloc() with a negative value. This can still lead to buffer > overflows AFAICS. Thus I propose the following patch: What about this? --- tiff-3.7.1/tools/tiffdump.c.orig 2004-09-03 12:16:01 +0400 +++ tiff-3.7.1/tools/tiffdump.c2004-12-22 01:57:51 +0300 @@ -307,6 +307,11 @@ ReadDirectory(int fd, unsigned ix, off_t continue; } space = dp->tdir_count * datawidth[dp->tdir_type]; + if (space <= 0) { + printf(">\n"); + Error("Invalid count for tag %u", dp->tdir_tag); + continue; + } if (space <= 4) { switch (dp->tdir_type) { case TIFF_FLOAT: -- ldv CAN-2004-1183 SWAMPID: 97 Packages are submitted to 8.1 - 9.2 Can you please submit patchinfos? will do that. Created attachment 27359 [details]
libtiff.patchinfo
8.1 - 9.0 box patchinfo
Created attachment 27360 [details]
libtiff.9.2.patchinfo
9.2 box patchinfo
Created attachment 27361 [details]
libtiff.maintained
libtiff maintained patchinfo
Created attachment 27362 [details]
tiff.patch.maintained
tiff maintained patchinfo (for tiffdump)
updated packages approved. CAN-2004-1308 more likely ... CAN-2004-1183 is for the tiffdump problem also fixed here. (comment #2) advisory released. CVE-2004-1308: CVSS v2 Base Score: 10.0 (AV:N/AC:L/Au:N/C:C/I:C/A:C) |