Bug 1553346 (CVE-2018-7648) - CVE-2018-7648 openjpeg2: stack buffer overflow in mj2/opj_mj2_extract.c
Summary: CVE-2018-7648 openjpeg2: stack buffer overflow in mj2/opj_mj2_extract.c
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-7648
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-08 17:26 UTC by Laura Pardo
Modified: 2021-10-21 19:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-21 19:57:32 UTC


Attachments (Terms of Use)

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


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