Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1626088 - (CVE-2018-16375) CVE-2018-16375 openjpeg: Heap-based buffer overflow in pnmtoimage function in bin/jpwl/convert.c
CVE-2018-16375 openjpeg: Heap-based buffer overflow in pnmtoimage function in...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180903,repor...
: Security
Depends On: 1626330 1626331 1626336 1626332 1626333 1626334
Blocks: 1626090
  Show dependency treegraph
 
Reported: 2018-09-06 10:44 EDT by Pedro Sampaio
Modified: 2018-09-07 00:39 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pedro Sampaio 2018-09-06 10:44:28 EDT
An issue was discovered in OpenJPEG 2.3.0. Missing checks for header_info.height and header_info.width in the function pnmtoimage in bin/jpwl/convert.c can lead to a heap-based buffer overflow.

Upstream bug:

https://github.com/uclouvain/openjpeg/issues/1126
Comment 1 Huzaifa S. Sidhpurwala 2018-09-07 00:35:42 EDT
Upstream issue: https://github.com/uclouvain/openjpeg/issues/861
Patch: https://github.com/uclouvain/openjpeg/commit/c22cbd8bdf8ff2ae372f94391a4be2d322b36b41

Analysis:
Heap-buffer overflow while converting image from PNM format. Specially-crafted values in the header, could cause integer overflow. This leads to a small buffer being allocated. Later when file contents are read into this buffer it leads to heap-overflow. Arbitrary code execution could be possible.
Comment 2 Huzaifa S. Sidhpurwala 2018-09-07 00:36:40 EDT
Created mingw-openjpeg2 tracking bugs for this issue:

Affects: fedora-all [bug 1626333]


Created openjpeg tracking bugs for this issue:

Affects: fedora-all [bug 1626330]


Created openjpeg2 tracking bugs for this issue:

Affects: epel-all [bug 1626331]
Affects: fedora-all [bug 1626332]

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