---
title: "CVE-2022-1122"
canonical_url: "https://pkgseek.com/security/CVE-2022-1122"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2022-1122

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.

CVE-2022-1122 严重级别为 MEDIUM (5.5)，共索引 10 条受影响软件包构建记录，涉及 3 个发行版。

- **级别 / 评分**: MEDIUM (5.5)
- **受影响构建数**: 10
- **涉及发行版**: 3
- **已标明修复版本发行版**: Oracle Linux, Red Hat Enterprise Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | openjpeg2 | 2.4.0-4.el8 | 2.4.0-5.el8 |
| Oracle Linux | 8 | openjpeg2-devel-docs | 2.4.0-4.el8 | 2.4.0-5.el8 |
| Oracle Linux | 8 | openjpeg2-tools | 2.4.0-4.el8 | 2.4.0-5.el8 |
| Oracle Linux | 9 | openjpeg2 | 2.4.0-6.el9 | 2.4.0-7.el9 |
| Red Hat Enterprise Linux | 9.8 | openjpeg2 | 2.4.0-6.el9 | 2.4.0-7.el9 |
| Ubuntu | focal | libopenjp2-7 | 2.3.1-1ubuntu4 | — |
| Ubuntu | focal | libopenjp2-7-dev | 2.3.1-1ubuntu4 | — |
| Ubuntu | jammy | libopenjp2-7 | 2.4.0-6 | — |
| Ubuntu | jammy | libopenjp2-7-dev | 2.4.0-6 | — |
| Ubuntu | jammy | openjpeg-doc | 2.4.0-6 | — |
