The set_text_distance function in devices/vector/gdevpdts.c in the pdfwrite component in Artifex Ghostscript through 9.22 does not prevent overflows in text-positioning calculation, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted PDF document.
git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=39b1e54b2968620723bf32e96764c88797714879
www.securitytracker.com/id/1040729
access.redhat.com/errata/RHSA-2018:2918
bugs.ghostscript.com/show_bug.cgi?id=699255
lists.debian.org/debian-lts-announce/2018/04/msg00028.html
security.gentoo.org/glsa/201811-12
usn.ubuntu.com/3636-1/