CVE-2022-2085
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ghostscript-tools-fonts | Amazon Linux | 9.56.1-5.amzn2023.0.1 |
| ghostscript-tools-printing | Amazon Linux | 9.56.1-5.amzn2023.0.1 |
| libgs | Amazon Linux | 9.56.1-5.amzn2023.0.1 |
| ghostscript-doc | Amazon Linux | 9.56.1-5.amzn2023.0.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | GhostScript | Affects in Ghostscript v9.55.0 |
| amazon:2023 | ghostscript-tools-fonts | 0 |
| amazon:2023 | ghostscript-tools-printing | 0 |
| amazon:2023 | libgs | 0 |
| amazon:2023 | ghostscript-doc | 0 |
| amazon:2023 | ghostscript-tools-dvipdf | 0 |
| n/a | GhostScript | 9.55.0 |
| amazon:2023 | libgs-devel | 0 |
| amazon:2023 | ghostscript-gtk | 0 |
| amazon:2023 | ghostscript | 0 |
| amazon:2023 | ghostscript-x11 | 0 |
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
- FEDORA-2022-d287230630 vendor-advisory
- GLSA-202211-11 vendor-advisory