It was discovered that the type of the LockDistillerParams parameter is not properly verified. A specially crafted PostScript document could possibly exploit this to crash ghostscript or, possibly, execute arbitrary code in the context of the ghostscript process.
External References: http://seclists.org/oss-sec/2018/q3/142
Mitigation: Please see https://bugzilla.redhat.com/show_bug.cgi?id=1619748#c3
Patch: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c3476dde
Acknowledgments: Name: Tavis Ormandy (Google Project Zero)
Statement: This issue affects the versions of ghostscript as shipped with Red Hat Enterprise Linux 6 and 7. 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/.
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2018:2918 https://access.redhat.com/errata/RHSA-2018:2918
Created ghostscript tracking bugs for this issue: Affects: fedora-all [bug 1654358]