Bug 1487236 (CVE-2017-12982)

Summary: CVE-2017-12982 openjpeg: Memory allocation failure in the opj_image_create function
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: erik-fedora, extras-orphan, hobbes1069, jaromir.capik, manisandro, nforro, oliver, phracek, 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: 2019-06-08 03:23:22 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:

Description Andrej Nemec 2017-08-31 13:28:52 UTC
The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG
2.2.0 does not reject headers with a zero biBitCount, which allows
remote attackers to cause a denial of service (memory allocation
failure) in the opj_image_create function in lib/openjp2/image.c,
related to the opj_aligned_alloc_n function in opj_malloc.c.

Upstream issue:

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

Upstream patch:

https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7