Hide Forgot
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
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.
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]
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2018-16375