{"id":"CVE-2022-1122","details":"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.","modified":"2026-08-12T03:30:13.037590222Z","published":"2022-03-29T17:25:44Z","related":["ALSA-2022:7645","ALSA-2022:8207","SUSE-SU-2022:1129-1","SUSE-SU-2022:1252-1","openSUSE-SU-2024:13571-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-665"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1122.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"openjpeg2 version 2.4.0 and prior"},{"last_affected":"openjpeg2 version 2.4.0 and prior"}]}]},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1122.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1122"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-04"},{"type":"REPORT","url":"https://github.com/uclouvain/openjpeg/issues/1368"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/uclouvain/openjpeg","events":[{"introduced":"37ac30ceff6640bbab502388c5e0fa0bff23f505"},{"last_affected":"37ac30ceff6640bbab502388c5e0fa0bff23f505"}],"database_specific":{"cpe":"cpe:2.3:a:uclouvain:openjpeg:2.4.0:*:*:*:*:*:*:*","extracted_events":[{"introduced":"2.4.0"},{"last_affected":"2.4.0"}],"source":"CPE_STRING"}}],"versions":["2.4.0","v2.4.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-1122.json"}}],"schema_version":"1.9.0"}