CVE-2022-1122
publishedopenjpeg: segmentation fault in opj2_decompress due to uninitialized pointer
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | openjpeg2openjpeg2 version 2.4.0 and prior | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1894 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-040 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | openjpeg2 | Advisory build | 2.4.0-5.el8 | ALSA-2022:7645 |
| Debian | bullseye | openjpeg2 | Advisory build | 2.4.0-3+deb11u1 | DLA-4107-1 |
| Oracle Linux | 8 | openjpeg2aarch64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2aarch64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| SUSE / openSUSE | SLE-15 | openjpeg2aarch64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | openjpeg2 | Advisory build | 2.3.0-2+deb10u2ubuntu0.1~esm3 | USN-7083-1 |
| Alpine Linux | edge | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| AlmaLinux | 9 | openjpeg2 | Advisory build | 2.4.0-7.el9 | ALSA-2022:8207 |
| Debian | stretch | openjpeg2 | Advisory build | 2.1.2-1.1+deb9u7 | DLA-2975-1 |
| Oracle Linux | 8 | openjpeg2x86_64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 9 | openjpeg2aarch64 | Advisory build | 0:2.4.0-7.el9 | ELSA-2022-8207 |
| Oracle Linux | 9 | openjpeg2x86_64 | Advisory build | 0:2.4.0-7.el9 | ELSA-2022-8207 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2i686 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2ppc64le | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2s390x | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2src | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2x86_64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2aarch64 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2i686 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2ppc64le | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2s390x | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2src | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2x86_64 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| SUSE / openSUSE | SLE-15 | openjpeg2ppc64le | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15 | openjpeg2s390x | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15 | openjpeg2x86_64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP1 | openjpeg2aarch64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP1 | openjpeg2ppc64le | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP1 | openjpeg2s390x | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP1 | openjpeg2x86_64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP2 | openjpeg2aarch64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP2 | openjpeg2ppc64le | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP2 | openjpeg2s390x | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP2 | openjpeg2x86_64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP3 | openjpeg2aarch64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP3 | openjpeg2ppc64le | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP3 | openjpeg2s390x | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | SLE-15-SP3 | openjpeg2x86_64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | openjpeg2aarch64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | openjpeg2ppc64le | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | openjpeg2s390x | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | openjpeg2x86_64 | Advisory build | 2.3.0-150000.3.5.1 | SUSE-SU-2022:1252-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openjpeg2aarch64 | Advisory build | 2.5.0-4.1 | OPENSUSE-SU-2024:13571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openjpeg2ppc64le | Advisory build | 2.5.0-4.1 | OPENSUSE-SU-2024:13571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openjpeg2s390x | Advisory build | 2.5.0-4.1 | OPENSUSE-SU-2024:13571-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openjpeg2x86_64 | Advisory build | 2.5.0-4.1 | OPENSUSE-SU-2024:13571-1 |
| Ubuntu | focal | openjpeg2 | Advisory build | 2.3.1-1ubuntu4.20.04.3 | USN-7083-1 |
| Ubuntu | jammy | openjpeg2 | Advisory build | 2.4.0-6ubuntu0.2 | USN-7083-1 |
| Ubuntu | xenial | openjpeg2 | Advisory build | 2.1.2-1.1+deb9u6ubuntu0.1~esm6 | USN-7083-1 |
| AlmaLinux | 8 | openjpeg2-devel | Advisory build | 2.4.0-5.el8 | ALSA-2022:7645 |
| AlmaLinux | 8 | openjpeg2-devel-docs | Advisory build | 2.4.0-5.el8 | ALSA-2022:7645 |
| AlmaLinux | 8 | openjpeg2-tools | Advisory build | 2.4.0-5.el8 | ALSA-2022:7645 |
| AlmaLinux | 9 | openjpeg2-devel | Advisory build | 2.4.0-7.el9 | ALSA-2022:8207 |
| AlmaLinux | 9 | openjpeg2-tools | Advisory build | 2.4.0-7.el9 | ALSA-2022:8207 |
| Alpine Linux | v3.16 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.17 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.18 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.19 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.20 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.21 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.22 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.23 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Alpine Linux | v3.24 | openjpeg | Fixed | 2.5.0-r0 | Package fix record |
| Oracle Linux | 8 | openjpeg2-develaarch64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 8 | openjpeg2-develx86_64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 8 | openjpeg2-devel-docsaarch64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 8 | openjpeg2-devel-docsx86_64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 8 | openjpeg2-toolsaarch64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 8 | openjpeg2-toolsx86_64 | Advisory build | 0:2.4.0-5.el8 | ELSA-2022-7645 |
| Oracle Linux | 9 | openjpeg2-develaarch64 | Advisory build | 0:2.4.0-7.el9 | ELSA-2022-8207 |
| Oracle Linux | 9 | openjpeg2-develx86_64 | Advisory build | 0:2.4.0-7.el9 | ELSA-2022-8207 |
| Oracle Linux | 9 | openjpeg2-toolsaarch64 | Advisory build | 0:2.4.0-7.el9 | ELSA-2022-8207 |
| Oracle Linux | 9 | openjpeg2-toolsx86_64 | Advisory build | 0:2.4.0-7.el9 | ELSA-2022-8207 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debuginfoaarch64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debuginfoi686 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debuginfoppc64le | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debuginfos390x | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debuginfox86_64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debugsourceaarch64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debugsourcei686 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debugsourceppc64le | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debugsources390x | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-debugsourcex86_64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-devel-docsnoarch | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-toolsaarch64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-toolsppc64le | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-toolss390x | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-toolsx86_64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-tools-debuginfoaarch64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-tools-debuginfoi686 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-tools-debuginfoppc64le | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-tools-debuginfos390x | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-8 | openjpeg2-tools-debuginfox86_64 | Advisory build | 2.4.0-5.el8 | RHSA-2022:7645 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debuginfoaarch64 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debuginfoi686 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debuginfoppc64le | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debuginfos390x | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debuginfox86_64 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debugsourceaarch64 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
| Red Hat Enterprise Linux | RHEL-9 | openjpeg2-debugsourcei686 | Advisory build | 2.4.0-7.el9 | RHSA-2022:8207 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | openjpeg2 | openjpeg2 version 2.4.0 and prior (affected) | redhat · cna |
Weaknesses
1- CWE-665 CWE-665->CWE-824
References
7- https://github.com/uclouvain/openjpeg/issues/1368
- [debian-lts-announce] 20220410 [SECURITY] [DLA 2975-1] openjpeg2 security update https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html
- https://lists.debian.org/debian-lts-announce/2025/04/msg00002.html
- FEDORA-2022-2d112d4480 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/
- FEDORA-2022-975e21444a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/
- FEDORA-2022-9515529c96 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/
- GLSA-202209-04 https://security.gentoo.org/glsa/202209-04
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6443d1868c86255c300b6f405b3c4f5a135404efa48c9ba429258db309507c35
- Ingested
- 23 Sep 2026, 07:57:41 UTC
- Source record
- Official CVE record