CVE-2022-2085
Fixed in a distro release EPSS 1%
A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. When allocating a buffer device, it relies on an init_device_procs defined for the device that uses it as a prototype that depends upon the number of bits per pixel. For bpp > 64, mem_x_device is used and does not have an init_device_procs defined. This flaw allows an attacker to parse a large number of bits (more than 64 bits per pixel), which triggers a NULL pointer dereference flaw, causing an application to crash.
Products: artifex ghostscript, fedoraproject fedora
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux 2023 | ghostscript | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | ghostscript-doc | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | ghostscript-gtk | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | ghostscript-tools-dvipdf | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | ghostscript-tools-fonts | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | ghostscript-tools-printing | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | ghostscript-x11 | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | libgs | 9.56.1-5.amzn2023.0.1 |
| Amazon Linux 2023 | libgs-devel | 9.56.1-5.amzn2023.0.1 |
| Debian 12 | ghostscript | 9.56.0~dfsg-1 |
| Debian 13 | ghostscript | 9.56.0~dfsg-1 |
| Debian 14 | ghostscript | 9.56.0~dfsg-1 |
| Ubuntu 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.17 |
| Ubuntu 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.6 |
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.1 |