Skip to content
OpenAdvisories
Unscored CVE-2022-2085 EUVD-2022-34375GHSA-8932-gr4r-9hpv

A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. W…

Published Jun 16, 2022 · Updated Feb 13, 2025 · Assigned by redhat

Description

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.

Affected products

VendorProductAffectedFixed
— GhostScript Affects in Ghostscript v9.55.0 —

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.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 9.56.0~dfsg-1 —
Debian 13 ghostscript 9.56.0~dfsg-1 —
Debian 12 ghostscript 9.56.0~dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS ghostscript 9.55.0~dfsg1-0ubuntu5.1 USN-5643-1
Ubuntu 20.04 LTS ghostscript 9.50~dfsg-5ubuntu4.6 USN-5643-1
Ubuntu 18.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.18.04.17 USN-5643-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libgs +8 9.56.1-5.amzn2023.0.1 ALAS2023-2023-053

Advisories 3

References