CVE-2022-2085

ghostscript: Null pointer dereference in gx_default_create_buf_device()

Published Jun 16, 2022 CVSS 3.1 · 5.5 Medium EPSS 1.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-34375 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.
Ubuntu USN Ubuntu USN USN-5643-1 Ghostscript vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Feb 13, 2025, 4:28 PM
Reserved
Jun 15, 2022, 12:00 AM
Status
Modified
Published
Jun 16, 2022, 6:15 PM
Modified
Jun 17, 2026, 4:41 AM
Severity
Moderate
Public date
Feb 14, 2022, 12:00 AM