Bug 1625846 (CVE-2018-16541) - CVE-2018-16541 ghostscript: Incorrect free logic in pagedevice replacement (699664)
Summary: CVE-2018-16541 ghostscript: Incorrect free logic in pagedevice replacement (6...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-16541
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1625847 1625848 1654621 1654622
Blocks: 1619570
TreeView+ depends on / blocked
 
Reported: 2018-09-06 05:27 UTC by Sam Fowler
Modified: 2021-02-16 23:05 UTC (History)
2 users (show)

Fixed In Version: ghostscript 9.24
Doc Type: If docs needed, set a value
Doc Text:
It was discovered that the ghostscript device cleanup did not properly handle devices replaced with a null device. An attacker could possibly exploit this to bypass the -dSAFER protection and crash ghostscript or, possibly, execute arbitrary code in the ghostscript context via a specially crafted PostScript document.
Clone Of:
Environment:
Last Closed: 2018-12-18 09:14:44 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3834 0 None None None 2018-12-17 19:58:20 UTC

Description Sam Fowler 2018-09-06 05:27:22 UTC
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use incorrect free logic in pagedevice replacement to crash the interpreter.


External Reference:

https://www.kb.cert.org/vuls/id/332928
https://www.artifex.com/news/ghostscript-security-resolved/


Upstream Bug:

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


Upstream Patch:

http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=241d9111

Comment 1 Sam Fowler 2018-09-06 05:27:51 UTC
Created ghostscript tracking bugs for this issue:

Affects: fedora-all [bug 1625847]

Comment 3 Stefan Cornelius 2018-09-19 08:19:52 UTC
Acknowledgments:

Name: Tavis Ormandy (Google Project Zero)

Comment 5 Stefan Cornelius 2018-09-19 08:20:21 UTC
Statement:

This issue affects the versions of ghostscript as shipped with Red Hat Enterprise Linux 5, 6, and 7.

Red Hat Enterprise Linux 5 is now in Extended Life Phase of the support and maintenance life cycle. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. This has been rated as having a security impact of Important, and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Comment 10 errata-xmlrpc 2018-12-17 19:58:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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


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