Description
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ghostscript | 9.15~dfsg-1 | — |
| Debian 13 | ghostscript | 9.15~dfsg-1 | — |
| Debian 12 | ghostscript | 9.15~dfsg-1 | — |
| Debian 8 | ghostscript | 9.06~dfsg-2+deb8u1 | DSA-3326-1 |
| Debian 7 | ghostscript | 9.05~dfsg-6.3+deb7u2 | DSA-3326-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | ghostscript | 8.71~dfsg2-9+squeeze2 | DLA-280-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | ghostscript | 9.10~dfsg-0ubuntu10.4 | USN-2697-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | ghostscript | 9.15-6.5 | SUSE-SU-2016:0884-1 |
| SLES 12 | ghostscript | 9.15-6.5 | SUSE-SU-2016:0884-1 |
| SLES 11 SP4 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
| SLES 11 SP3 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
| SLES 11 SP2 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | ghostscript | 9.15-6.5 | SUSE-SU-2016:0884-1 |
| SLES for SAP 12 | ghostscript | 9.15-6.5 | SUSE-SU-2016:0884-1 |
| SLES for SAP 11 SP4 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
| SUSE OpenStack Cloud 5 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
| SUSE Manager Proxy 2.1 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
| SUSE Manager 2.1 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | ghostscript-library | 8.62-32.38.1 | SUSE-SU-2016:2493-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.20-2.1 | openSUSE-SU-2024:10003-1 |
Advisories 6
- USN-2697-1 ghostscript vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-280-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3326-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:2493-1 Security update for ghostscript-library SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10003-1 ghostscript-9.20-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0884-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
References
- DSA-3326 vendor-advisory
- http://bugs.ghostscript.com/show_bug.cgi?id=696070
- 1033149 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1232805
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=0c0b0859
- http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
- http://bugs.ghostscript.com/show_bug.cgi?id=696041
- GLSA-201612-33 vendor-advisory
- 76017 vdb-entry
- USN-2697-1 vendor-advisory
- [oss-security] 20150723 CVE-2015-3228 - Ghostscript - Integer overflow mailing-list