Bug 1427440 (CVE-2017-6196)

Summary: CVE-2017-6196 ghostscript: Multiple use-after-free vulnerabilities in gx_image_enum_begin function
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, deekej, kseifried, tiwillia, twaugh, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-31 13:28:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1427442    
Bug Blocks: 1410024    

Description Andrej Nemec 2017-02-28 08:58:30 UTC
Multiple use-after-free vulnerabilities in the gx_image_enum_begin function in base/gxipixel.c in Ghostscript  allow attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted PostScript document.

Upstream bug:

https://bugs.ghostscript.com/show_bug.cgi?id=697596

Upstream patch:

http://git.ghostscript.com/?p=ghostpdl.git;h=ecceafe3abba2714ef9b432035fe0739d9b1a283

Comment 1 Andrej Nemec 2017-02-28 08:59:36 UTC
Created ghostscript tracking bugs for this issue:

Affects: fedora-all [bug 1427442]

Comment 2 Cedric Buissart 2017-03-31 13:00:43 UTC
RHEL-7 and earlier versions are not affected : The double-free is a side effect of the upstream commit cffb5712b (http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=cffb5712b), which was introduced in ghostscript-9.21.

Comment 3 David Kaspar // Dee'Kej 2017-04-06 14:12:16 UTC
(In reply to Cedric Buissart from comment #2)
> RHEL-7 and earlier versions are not affected : The double-free is a side
> effect of the upstream commit cffb5712b
> (http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=cffb5712b), which
> was introduced in ghostscript-9.21.

Please note that ghostscript-9.21 is already released, and I'm planning to do a rebase at some point when I have a time. Therefore I'm not sure we should close this BZ as a NOTABUG, because we might stumble upon this again in the future.