Artifex Ghostscript before 9.53.0 has an out-of-bounds write and use-after-free in devices/vector/gdevtxtw.c (for txtwrite) because a single character code in a PDF document can map to more than one Unicode code point (e.g., for a ligature).
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.
Link | Tags |
---|---|
https://bugs.ghostscript.com/show_bug.cgi?id=702229 | issue tracking patch |
https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=8c7bd787defa071c96289b7da9397f673fddb874 | broken link |
https://bugzilla.opensuse.org/show_bug.cgi?id=1177922 | issue tracking |
https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs9530 | release notes |