The gs_alloc_ref_array function in psi/ialloc.c in Artifex Ghostscript 9.21 allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted PostScript document. This is related to a lack of an integer overflow check in base/gsalloc.c.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://security.gentoo.org/glsa/201811-12 | third party advisory vendor advisory |
https://bugs.ghostscript.com/show_bug.cgi?id=697985 | third party advisory issue tracking exploit |
http://www.debian.org/security/2017/dsa-3986 | third party advisory vendor advisory |
http://www.securityfocus.com/bid/99991 | third party advisory vdb entry |
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=cfde94be1d4286bc47633c6e6eaf4e659bd78066 |