Ghostscript init_device_procs null pointer dereference

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
3.4$0-$5k0.00

Summaryinfo

A vulnerability described as problematic has been identified in Ghostscript. Affected by this vulnerability is an unknown functionality. Executing a manipulation of the argument init_device_procs can lead to null pointer dereference. This vulnerability is tracked as CVE-2022-2085. No exploit exists. Applying a patch is advised to resolve this issue.

Detailsinfo

A vulnerability classified as problematic was found in Ghostscript (Document Processing Software) (unknown version). This vulnerability affects an unknown code block. The manipulation of the argument init_device_procs with an unknown input leads to a null pointer dereference vulnerability. The CWE definition for the vulnerability is CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. As an impact it is known to affect availability. CVE summarizes:

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.

The weakness was disclosed 06/17/2022. The advisory is shared for download at git.ghostscript.com. This vulnerability was named CVE-2022-2085 since 06/15/2022. There are known technical details, but no exploit is available.

Applying the patch ae1061d948d88667bdf51d47d918c4684d0f67df is able to eliminate this problem. The bugfix is ready for download at git.ghostscript.com.

The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2022-34375). VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Name

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 3.5
VulDB Meta Temp Score: 3.4

VulDB Base Score: 3.5
VulDB Temp Score: 3.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Null pointer dereference
CWE: CWE-476 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: ae1061d948d88667bdf51d47d918c4684d0f67df

Timelineinfo

06/15/2022 🔍
06/17/2022 +2 days 🔍
06/17/2022 +0 days 🔍
05/24/2026 +1437 days 🔍

Sourcesinfo

Advisory: git.ghostscript.com
Status: Confirmed

CVE: CVE-2022-2085 (🔍)
GCVE (CVE): GCVE-0-2022-2085
GCVE (VulDB): GCVE-100-202312
EUVD: 🔍

Entryinfo

Created: 06/17/2022 08:31
Updated: 05/24/2026 10:16
Changes: 06/17/2022 08:31 (40), 05/24/2026 10:16 (15)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!