Vulnerability · Published Jun 16, 2022 · Assigned by redhat

CVE-2022-2085

Medium 5.5

In plain English

A medium-severity null pointer dereference in GhostScript. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)1.4%top 27.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ghostscript9.56.0~dfsg-1DEBIAN-CVE-2022-2085
Debian:13ghostscript9.56.0~dfsg-1DEBIAN-CVE-2022-2085
Debian:14ghostscript9.56.0~dfsg-1DEBIAN-CVE-2022-2085
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.1USN-5643-1
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.1UBUNTU-CVE-2022-2085

Affected products (as reported)

VendorProductVersions
n/a GhostScript Affects in Ghostscript v9.55.0

Weakness: CWE-476

References