Bug 1907521 (CVE-2020-27844) - CVE-2020-27844 openjpeg: heap-based buffer overflow in opj_t2_encode_packet function in openjp2/t2.c
Summary: CVE-2020-27844 openjpeg: heap-based buffer overflow in opj_t2_encode_packet f...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2020-27844
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1907695 1907696 1907697 1907698
Blocks: 1906158 1907565
TreeView+ depends on / blocked
 
Reported: 2020-12-14 16:47 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-02-16 18:43 UTC (History)
6 users (show)

Fixed In Version: openjpeg 2.4.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in openjpeg's src/lib/openjp2/t2.c. This flaw allows an attacker to provide crafted input to openjpeg during conversion and encoding, causing an out-of-bounds write. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Clone Of:
Environment:
Last Closed: 2020-12-16 04:18:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-12-14 16:47:43 UTC
A flaw was found in OpenJPEG. Specially crafted input file can lead to a heap-based buffer overflow in opj_t2_encode_packet function in openjp2/t2.c.

Reference:
https://github.com/uclouvain/openjpeg/issues/1299

Comment 1 Todd Cullum 2020-12-15 02:00:09 UTC
Acknowledgments:

Name: zodf0055980 (SQLab NCTU Taiwan)

Comment 2 Todd Cullum 2020-12-15 02:19:23 UTC
Created mingw-openjpeg2 tracking bugs for this issue:

Affects: fedora-all [bug 1907698]


Created openjpeg tracking bugs for this issue:

Affects: fedora-all [bug 1907697]


Created openjpeg2 tracking bugs for this issue:

Affects: epel-7 [bug 1907695]
Affects: fedora-all [bug 1907696]

Comment 6 Todd Cullum 2020-12-16 01:05:24 UTC
Mitigation:

This flaw can be mitigated by not converting or encoding untrusted input data using openjpeg. For example, just reading a file with openjpeg does not trigger the flaw. Additionally, the fortify protection limits the degree of exploitation that the flaw could be used to achieve.

Comment 7 Product Security DevOps Team 2020-12-16 04:18:17 UTC
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-2020-27844

Comment 8 Sandro Mani 2020-12-17 15:24:15 UTC
This only affects unreleased versions of openjpeg2, specifically newer than https://github.com/uclouvain/openjpeg/commit/4edb8c83374f52cd6a8f2c7c875e8ffacccb5fa5


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