Bug 1852869 (CVE-2020-15389)

Summary: CVE-2020-15389 openjpeg: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jaromir.capik, manisandro, nforro, oliver, rdieter
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-02 17:14:48 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: 1852870, 1852871, 1855113, 1855114, 1855115    
Bug Blocks: 1852872    

Description Guilherme de Almeida Suckevicz 2020-07-01 13:49:54 UTC
jp2/opj_decompress.c in OpenJPEG through 2.3.1 has a use-after-free that can be triggered if there is a mix of valid and invalid files in a directory operated on by the decompressor. Triggering a double-free may also be possible. This is related to calling opj_image_destroy twice.

Reference:
https://github.com/uclouvain/openjpeg/issues/1261

Comment 1 Guilherme de Almeida Suckevicz 2020-07-01 13:50:15 UTC
Created openjpeg tracking bugs for this issue:

Affects: fedora-all [bug 1852871]


Created openjpeg2 tracking bugs for this issue:

Affects: epel-all [bug 1852870]

Comment 10 errata-xmlrpc 2021-11-09 17:56:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4251 https://access.redhat.com/errata/RHSA-2021:4251