Bug 1402711 (CVE-2016-9573)

Summary: CVE-2016-9573 openjpeg: heap out-of-bounds read due to insufficient check in imagetopnm()
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dmoppert, erik-fedora, hobbes1069, jaromir.capik, manisandro, nforro, oliver, phracek, rdieter
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds read vulnerability was found in OpenJPEG, in the j2k_to_image tool. Converting a specially crafted JPEG2000 file to another format could cause the application to crash or, potentially, disclose some data from the heap.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:03:43 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: 1402718, 1402719, 1402720, 1402721, 1402722, 1419772, 1419774, 1435069    
Bug Blocks: 1374338    

Description Martin Prpič 2016-12-08 08:53:45 UTC
A heap buffer overflow flaw was found in the way openjpeg decompressed certain input images. Due to an insufficient check in the imagetopnm() function, an application using openjpeg to process image data could crash when processing a crafted image.

Upstream bug:

https://github.com/uclouvain/openjpeg/issues/862

Upstream patch:

https://github.com/szukw000/openjpeg/commit/7b28bd2b723df6be09fe7791eba33147c1c47d0d

Note that the above patch fixes two issues: CVE-2016-9573 as well as CVE-2016-9572.

Comment 1 Martin Prpič 2016-12-08 08:53:53 UTC
Acknowledgments:

Name: Liu Bingchang (IIE)

Comment 3 Martin Prpič 2016-12-08 09:16:41 UTC
Created mingw-openjpeg tracking bugs for this issue:

Affects: fedora-all [bug 1402721]


Created mingw-openjpeg2 tracking bugs for this issue:

Affects: fedora-all [bug 1402720]


Created openjpeg tracking bugs for this issue:

Affects: fedora-all [bug 1402719]


Created openjpeg2 tracking bugs for this issue:

Affects: epel-6 [bug 1402722]
Affects: fedora-all [bug 1402718]

Comment 9 errata-xmlrpc 2017-03-23 03:46:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0838 https://rhn.redhat.com/errata/RHSA-2017-0838.html

Comment 10 Doran Moppert 2017-03-23 04:09:49 UTC
Created openjpeg2 tracking bugs for this issue:

Affects: epel-7 [bug 1435069]