CVE-2022-1122
Vulnerability Summary
Timeline
Description
A flaw was found in the opj2_decompress program in openjpeg2 2.4.0 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.
CVSS Metrics
- v3.1•MEDIUM•Score: 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- v2.0•MEDIUM•Score: 4.3AV:N/AC:M/Au:N/C:N/I:N/A:P
EPSS Trends
Current EPSS score: 1.10%• Percentile: 64%
Techniques & Countermeasures
- CWE-665•Improper Initialization
The product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used.
- CWE-824•Access of Uninitialized Pointer
The product accesses or uses a pointer that has not been initialized.
Affected Systems
- alpine•openjpeg
< 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0 | < 2.5.0-r0
- debian•openjpeg2
< 2.4.0-3+deb11u1 | < 2.5.0-1 | < 2.5.0-1 | < 2.5.0-1
- debian•debian_linux
9.0
- fedoraproject•fedora
34 | 35 | 36
- uclouvain•openjpeg
2.4.0
References (9)
- https://github.com/uclouvain/openjpeg/issues/1368
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/
- https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/
- https://security.gentoo.org/glsa/202209-04
- https://lists.debian.org/debian-lts-announce/2025/04/msg00002.html
- https://security-tracker.debian.org/tracker/CVE-2022-1122
- https://security.alpinelinux.org/vuln/CVE-2022-1122