Bug 1443940 (CVE-2017-7975) - CVE-2017-7975 jbig2dec: Integer overflow in jbig2_build_huffman_table allows OOB write
Summary: CVE-2017-7975 jbig2dec: Integer overflow in jbig2_build_huffman_table allows ...
Alias: CVE-2017-7975
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1443898 1443899 1443933 1443934
Blocks: 1443943
TreeView+ depends on / blocked
Reported: 2017-04-20 10:00 UTC by Adam Mariš
Modified: 2021-02-17 02:14 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-07-19 16:08:15 UTC

Attachments (Terms of Use)

Description Adam Mariš 2017-04-20 10:00:35 UTC
Artifex jbig2dec 0.13, as used in Ghostscript, allows out-of-bounds writes because of an integer overflow in the jbig2_build_huffman_table function in jbig2_huffman.c during operations on a crafted JBIG2 file, leading to a denial of service (application crash) or possibly execution of arbitrary code.

Upstream bug:


Comment 1 Adam Mariš 2017-04-20 10:00:50 UTC

Name: Jiaqi Peng (Chinese Academy of Sciences)

Comment 2 Andrej Nemec 2017-04-20 15:09:39 UTC
Created jbig2dec tracking bugs for this issue:

Affects: epel-all [bug 1443899]

Comment 4 Cedric Buissart 2017-07-10 09:57:04 UTC
Note: in 64 bits environment, OOB write concerns only the 0xffffffffxxxxxxxx range. This range is at best read-only, thus would not lead to a possible arbitrary code execution.

Comment 6 Cedric Buissart 2017-07-19 08:42:35 UTC
Reducing impact to low based on comment 4.

Comment 9 Cedric Buissart 2017-07-19 16:05:50 UTC
The vulnerability requires user defined Huffman table for the vulnerability to be triggered. ghostscript versions prior to 9.00 are not be affected by this vulnerability.
As a result, 
* RHEL-7 is shipped with only the 64 bit version of ghostscript, and is only vulnerable to DoS
* RHEL-5 & 6 are not affected.

Note You need to log in before you can comment on or make changes to this bug.