Bug 1553346 (CVE-2018-7648)

Summary: CVE-2018-7648 openjpeg2: stack buffer overflow in mj2/opj_mj2_extract.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: manisandro
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-10-21 19:57:32 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 Laura Pardo 2018-03-08 17:26:44 UTC
An issue was discovered in mj2/opj_mj2_extract.c in OpenJPEG 2.3.0 when the binary is built with -DBUILD_MJ2=On option. The output prefix was not checked for length, which could overflow a buffer, when providing a prefix with 50 or more characters on the command line. 


References:
https://github.com/uclouvain/openjpeg/issues/1088

Patch:
https://github.com/kbabioch/openjpeg/commit/6d8c0c06ee32dc03ba80acd48334e98728e56cf5