Bug 965574 (CVE-2015-8808) - VUL-1: CVE-2015-8808: GraphicsMagick: Out-of-bound read in the parsing of gif files using 1.3.18
Summary: VUL-1: CVE-2015-8808: GraphicsMagick: Out-of-bound read in the parsing of gif...
Status: RESOLVED FIXED
Alias: CVE-2015-8808
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P4 - Low : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/161609/
Whiteboard: CVSSv2:SUSE:CVE-2015-8808:4.3:(AV:N/A...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 09:26 UTC by Sebastian Krahmer
Modified: 2016-08-01 14:45 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Krahmer 2016-02-08 09:26:41 UTC
Via OSS-sec:

>We found a read out-of-bound in the parsing of gif files using
>GraphicsMagick. This issue was tested in Ubuntu 14.04 (x86_64) using
>GraphicsMagick 1.3.18.
>
>$ ./gm identify overflow.gif
>
>AddressSanitizer: heap-buffer-overflow
>READ of size 1
>
>SUMMARY: AddressSanitizer: heap-buffer-overflow coders/gif.c:276 DecodeImage
>
>This issue is caused by the use of unintialized memory in DecodeImage and
>fortunately it was fixed here:
>
>http://marc.info/?l=graphicsmagick-commit&m=142283721604323&w=2
>
>Date:       2015-02-02 0:33:27
>
>coders/gif.c (DecodeImage): Assure that GIF decoder does not use
>unitialized data.
>
> +  (void) memset(prefix,0,MaxStackSize*sizeof(short));
> +  (void) memset(suffix,0,MaxStackSize);

Use CVE-2015-8808.

The scope of this CVE does not include the "FIXME: Is the logic for
this loop (or the loop which inits suffix and prefix arrays) correct?
Values are intentionally accessed outside of the explictly initialized
range of 'clear'." observation in the same commit.


References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8808
http://seclists.org/oss-sec/2016/q1/290
Comment 1 Sebastian Krahmer 2016-02-08 09:27:41 UTC
Very little impact (read off by one), so setting VUL-1 as pending
issue.
Comment 2 Swamp Workflow Management 2016-02-08 23:00:32 UTC
bugbot adjusting priority
Comment 4 Petr Gajdos 2016-05-30 15:02:31 UTC
Package submitted.
Comment 5 Swamp Workflow Management 2016-06-17 16:08:35 UTC
SUSE-SU-2016:1614-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 851064,965574,982178
CVE References: CVE-2013-4589,CVE-2015-8808,CVE-2016-5118
Sources used:
SUSE Studio Onsite 1.3 (src):    GraphicsMagick-1.2.5-4.38.1
SUSE Linux Enterprise Software Development Kit 11-SP4 (src):    GraphicsMagick-1.2.5-4.38.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    GraphicsMagick-1.2.5-4.38.1
Comment 6 Marcus Meissner 2016-08-01 14:45:02 UTC
released