VDB

CVE-2022-2085

CVE-2022-2085 PUBLISHED

Reported by redhat · Published June 16, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ghostscript-tools-fontsAmazon Linux9.56.1-5.amzn2023.0.1
ghostscript-tools-printingAmazon Linux9.56.1-5.amzn2023.0.1
libgsAmazon Linux9.56.1-5.amzn2023.0.1
ghostscript-docAmazon Linux9.56.1-5.amzn2023.0.1

Affected products

VendorProductVersions
n/aGhostScriptAffects in Ghostscript v9.55.0
amazon:2023ghostscript-tools-fonts0
amazon:2023ghostscript-tools-printing0
amazon:2023libgs0
amazon:2023ghostscript-doc0
amazon:2023ghostscript-tools-dvipdf0
n/aGhostScript9.55.0
amazon:2023libgs-devel0
amazon:2023ghostscript-gtk0
amazon:2023ghostscript0
amazon:2023ghostscript-x110

Timeline

  • Jun 16, 2022 CVE Published
  • Jun 17, 2022 EPSS Score (30 in total, the first dated here)
  • Feb 13, 2025 CVE Updated
  • Mar 10, 2026 Security Advisory (4 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch
  • Jul 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-2085
vulnetix vdb fixes CVE-2022-2085

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-2085/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›