NULL Pointer Dereference Affecting ghostscript package, versions <9.55.0~dfsg1-0ubuntu5.1


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.43% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-GHOSTSCRIPT-2928866
  • published16 Jun 2022
  • disclosed16 Jun 2022

Introduced: 16 Jun 2022

CVE-2022-2085  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 ghostscript to version 9.55.0~dfsg1-0ubuntu5.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ghostscript package and not the ghostscript package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1