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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ghostscript | 9.56.0~dfsg-1 | DEBIAN-CVE-2022-2085 |
| Debian:13 | ghostscript | 9.56.0~dfsg-1 | DEBIAN-CVE-2022-2085 |
| Debian:14 | ghostscript | 9.56.0~dfsg-1 | DEBIAN-CVE-2022-2085 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.1 | USN-5643-1 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.1 | UBUNTU-CVE-2022-2085 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | GhostScript | Affects in Ghostscript v9.55.0 |
Weakness: CWE-476