CVE-2016-8602: Incorrect Type Cast

Published Oct 12, 2016
·
Updated

If you call .sethalftone5 with an empty operand stack, ghostscript crashes. This flaw could be exploitable

Upstream bug : - Bug 697203 - NULL dereference in .sethalftone5 http://bugs.ghostscript.com/showbug.cgi?id=697203

Upstream patch : - Bug 697203: check for sufficient params in .sethalftone5 http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f5c7555c303

Reference : http://seclists.org/oss-sec/2016/q4/98

Other sources

The .sethalftone5 function in psi/zht2.c in Ghostscript before 9.21 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted Postscript document that calls .sethalftone5 with an empty operand stack.

MITRE

Affected Software

1 affected component
Artifex ghostscript<=9.20

Event History

Oct 12, 2016
Data Sourced
08:18 AM
DescriptionSeverityAffected Software
Apr 14, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2016-8602?

CVE-2016-8602 is considered a crash vulnerability that impacts the stability of the Ghostscript software.

2

How do I fix CVE-2016-8602?

To fix CVE-2016-8602, update Ghostscript to the latest version beyond 9.20 where this vulnerability has been addressed.

3

What software versions are affected by CVE-2016-8602?

Ghostscript versions up to and including 9.20 are affected by CVE-2016-8602.

4

Is CVE-2016-8602 exploitable?

Yes, CVE-2016-8602 could be exploited under specific conditions, particularly when an empty operand stack is used.

5

What happens when you call .sethalftone5 with an empty operand stack in CVE-2016-8602?

Calling .sethalftone5 with an empty operand stack leads to a crash of the Ghostscript application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203