Bug 1619756 (CVE-2018-15908)

Summary: CVE-2018-15908 ghostscript: .tempfile file permission issues (699657)
Product: [Other] Security Response Reporter: Stefan Cornelius <scorneli>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abhgupta, ahardin, bleanhar, ccoleman, dbaker, dedgar, jgoulding, jokerman, mchappel, mosvald, sthangav, trankin, twaugh, yozone, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ghostscript 9.24 Doc Type: If docs needed, set a value
Doc Text:
It was discovered that the ghostscript .tempfile function did not properly handle file permissions. An attacker could possibly exploit this to exploit this to bypass the -dSAFER protection and delete files or disclose their content via a specially crafted PostScript document.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-28 15:41:15 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: 1621159, 1621162, 1621164, 1654367    
Bug Blocks: 1619570    

Description Stefan Cornelius 2018-08-21 16:19:21 UTC
It was discovered that the ghostscript .tempfile function did not properly handle file permissions. A specially crafted PostScript document could possibly exploit this to bypass the -dSAFER protection and delete files or disclose their content.

Comment 1 Stefan Cornelius 2018-08-21 16:26:02 UTC
External References:

http://seclists.org/oss-sec/2018/q3/142

Comment 2 Stefan Cornelius 2018-08-22 10:19:49 UTC
Mitigation:

Please see https://bugzilla.redhat.com/show_bug.cgi?id=1619748#c3

Comment 6 Stefan Cornelius 2018-08-23 15:36:34 UTC
Acknowledgments:

Name: Tavis Ormandy (Google Project Zero)

Comment 10 errata-xmlrpc 2018-11-27 01:21:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:3650 https://access.redhat.com/errata/RHSA-2018:3650

Comment 11 Cedric Buissart 2018-11-28 15:40:20 UTC
Created ghostscript tracking bugs for this issue:

Affects: fedora-all [bug 1654367]