NULL pointer dereference in Ghostscript - CVE-2017-5951

 

NULL pointer dereference in Ghostscript - CVE-2017-5951

Published: May 25, 2017


Vulnerability identifier: #VU6708
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-5951
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error within the mem_get_bits_rectangle() function in base/gdevmem.c in Ghostscript. A remote attacker can create a specially crafted file, pass it to the affected application and crash it.

Affected software

Ghostscript
Debian Linux
SUSE Linux
Ubuntu
Fedora
ghostscript (Alpine package)
libgs9 (Ubuntu package)
ghostscript (Ubuntu package)
libgs9-common (Ubuntu package)
ghostscript-x (Ubuntu package)
ghostscript

How to mitigate CVE-2017-5951

Update to version 9.21.

ghostscript (Alpine package) - update to 9.21-r0
libgs9 (Ubuntu package) - addressed in versions 9.05~dfsg-0ubuntu4.5, 9.10~dfsg-0ubuntu10.7, 9.18~dfsg~0-0ubuntu2.4, 9.19~dfsg+1-0ubuntu6.4, 9.19~dfsg+1-0ubuntu7.2
ghostscript (Ubuntu package) - addressed in versions 9.05~dfsg-0ubuntu4.5, 9.10~dfsg-0ubuntu10.7, 9.18~dfsg~0-0ubuntu2.4, 9.19~dfsg+1-0ubuntu6.4, 9.19~dfsg+1-0ubuntu7.2
libgs9-common (Ubuntu package) - addressed in versions 9.05~dfsg-0ubuntu4.5, 9.10~dfsg-0ubuntu10.7, 9.18~dfsg~0-0ubuntu2.4, 9.19~dfsg+1-0ubuntu6.4, 9.19~dfsg+1-0ubuntu7.2
ghostscript-x (Ubuntu package) - addressed in versions 9.05~dfsg-0ubuntu4.5, 9.10~dfsg-0ubuntu10.7, 9.18~dfsg~0-0ubuntu2.4, 9.19~dfsg+1-0ubuntu6.4, 9.19~dfsg+1-0ubuntu7.2
ghostscript - addressed in versions 9.20-9.fc24, 9.20-9.fc25, 9.20-10.fc26

External References

Related Security Bulletins