CVE-2022-2085 Null dereference in GhostScript

Medium 5.5 Published Updated

An attacker can cause a denial of service by triggering a NULL pointer dereference in Ghostscript when processing images with more than 64 bits per pixel.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-2085?

CVE-2022-2085 is a medium-severity vulnerability in Artifex Ghostscript, published on 16 Jun 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2022-2085?

It affects 2 products.

Products include Artifex Ghostscript, Fedoraproject Fedora.

How do I fix CVE-2022-2085?

Apply the vendor's patch.

Is CVE-2022-2085 being exploited?

There is no known exploitation of CVE-2022-2085 in the wild and no public exploit code.

All Artifex Ghostscript vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-2085, GHSA-8932-gr4r-9hpv, OESA-2022-1754, UBUNTU-CVE-2022-2085.

Is CVE-2022-2085 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free