Bug 2067052 (CVE-2022-1122) - CVE-2022-1122 openjpeg: segmentation fault in opj2_decompress due to uninitialized pointer
Summary: CVE-2022-1122 openjpeg: segmentation fault in opj2_decompress due to uninitia...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-1122
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: 2069370 2069371 2069787 2069788
Blocks: 2067041 2069344
TreeView+ depends on / blocked
 
Reported: 2022-03-23 06:18 UTC by Rohit Keshri
Modified: 2024-03-18 18:58 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the opj2_decompress program in openjpeg2 in the way it handles an input directory with a large number of files. When it fails to allocate a buffer to store the filenames of the input directory, it calls free() on an uninitialized pointer, leading to a segmentation fault and a denial of service.
Clone Of:
Environment:
Last Closed: 2022-12-07 02:16:56 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7645 0 None None None 2022-11-08 09:59:30 UTC
Red Hat Product Errata RHSA-2022:8207 0 None None None 2022-11-15 10:36:38 UTC

Description Rohit Keshri 2022-03-23 06:18:57 UTC
A flaw was found in OpenJPEG v2.4.0 in opj2_decompress in the way it handles an input directory with a large number of files. When it fails to allocate a buffer to store the filenames of the input directory, it calls free() on an uninitialized pointer, leading to a segmentation fault and DoS.

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

Upstream patch:
https://github.com/uclouvain/openjpeg/commit/0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d

Comment 1 Guilherme de Almeida Suckevicz 2022-03-28 19:25:26 UTC
Created mingw-openjpeg2 tracking bugs for this issue:

Affects: fedora-all [bug 2069370]


Created openjpeg2 tracking bugs for this issue:

Affects: fedora-all [bug 2069371]

Comment 4 errata-xmlrpc 2022-11-08 09:59:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7645 https://access.redhat.com/errata/RHSA-2022:7645

Comment 5 errata-xmlrpc 2022-11-15 10:36:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8207 https://access.redhat.com/errata/RHSA-2022:8207

Comment 6 Product Security DevOps Team 2022-12-07 02:16:55 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-2022-1122


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