Bug 627902 (CVE-2009-3743)
Summary: | CVE-2009-3743 ghostscript: TrueType bytecode intepreter integer overflow or wraparound | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Jan Lieskovsky <jlieskov> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | lijli, liko, rcvalle, twaugh |
Target Milestone: | --- | Keywords: | Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-02-14 13:55:15 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 755924, 755925, 755926, 755928, 755929 | ||
Bug Blocks: | 733386 |
Description
Jan Lieskovsky
2010-08-27 10:59:08 UTC
(In reply to comment #0) > Off-by-one error in the TrueType bytecode interpreter in Ghostscript While this may possibly allow off-by-one over-read, the more important issue is an integer underflow leading to memory corruption. Upstream patch fixes Ins_MINDEX() to skip standard processing when 0 is passed as an argument (L) to the function. Skipped code is: K = CUR.stack[CUR.args - L]; memmove( (&CUR.stack[CUR.args - L ]), (&CUR.stack[CUR.args - L + 1]), (L - 1) * sizeof ( Long ) ); CUR.stack[ CUR.args-1 ] = K; When L==0, memmove() is called with the third argument being (-1)*sizeof(long), which is close to SIZE_MAX or address space limit of the architecture. Hence program will try to move all its memory, which leads to crash before that memmove() call finishes. Memory corruption is under very limited control of an attacker, making it more difficult to reliably exploit for code execution. Toucan System advisory: [1] http://www.toucan-system.com/advisories/tssa-2010-01.txt Created ghostscript tracking bugs for this issue Affects: fedora-all [bug 755929] This issue has been addressed in following products: Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 6 Via RHSA-2012:0095 https://rhn.redhat.com/errata/RHSA-2012-0095.html |