A use-after-free vulnerability in xps_finish_image_path() in devices/vector/gdevxps.c of Artifex Software GhostScript v9.50 allows a remote attacker to escalate privileges via a crafted PDF file. This is fixed in v9.51.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Ghostscript | Artifex | 9.50 (including) | 9.50 (including) |
Red Hat Enterprise Linux 8 | RedHat | ghostscript-0:9.27-1.el8 | * |
Ghostscript | Ubuntu | bionic | * |
Ghostscript | Ubuntu | esm-infra/bionic | * |
Ghostscript | Ubuntu | esm-infra/focal | * |
Ghostscript | Ubuntu | focal | * |
Ghostscript | Ubuntu | trusty | * |
Ghostscript | Ubuntu | upstream | * |