Bug 1383223 (CVE-2016-7996, CVE-2016-7997) - CVE-2016-7996 CVE-2016-7997 GraphicsMagick: WPG Reader Issues
Summary: CVE-2016-7996 CVE-2016-7997 GraphicsMagick: WPG Reader Issues
Alias: CVE-2016-7996, CVE-2016-7997
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1383225 1383226
TreeView+ depends on / blocked
Reported: 2016-10-10 08:50 UTC by Andrej Nemec
Modified: 2019-09-29 13:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-06-08 02:59:52 UTC

Attachments (Terms of Use)

Description Andrej Nemec 2016-10-10 08:50:09 UTC
Two security issues have been discovered in the WPG format reader in
GraphicsMagick 1.3.25 (and earlier):

1. CVE-2016-7996
   In a build with QuantumDepth=8 (the default), there is no check
   that the provided colormap is not larger than 256 entries,
   resulting in potential heap overflow.  This problem does not occur
   with larger QuantumDepth values.

2. CVE-2016-7997
   The assertion:

   ReferenceBlob: Assertion `blob != (BlobInfo *) NULL' failed.

   is thrown (causing a crash) for some files due to a logic error
   which leads to passing a NULL pointer where a NULL pointer is not

References (patch attached):


Comment 1 Andrej Nemec 2016-10-10 08:51:18 UTC
Created GraphicsMagick tracking bugs for this issue:

Affects: fedora-all [bug 1383225]
Affects: epel-all [bug 1383226]

Comment 2 Rex Dieter 2017-03-02 14:31:11 UTC
Fwiw, only el6's GraphicsMagick doesn't use --with-quantum-depth=16 build option, so I'm guessing that's the only one vulnerable here.

Comment 3 Rex Dieter 2017-03-02 14:50:12 UTC
Sorry, that's (apparently) only issue 1.  I'll pull in both fixes

Comment 4 Product Security DevOps Team 2019-06-08 02:59:52 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

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