CVE-2022-1122: Medium severity uclouvain openjpeg vulnerability
A flaw was found in OpenJPEG v2.4.0 in opj2decompress 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
Other sources
A flaw was found in the opj2decompress 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.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/openjpeg2to a version that resolves this vulnerability.Fixed in 2.5.0-2+deb12u3Fixed in 2.5.3-2.1~deb13u2Fixed in 2.5.4-1.1 - Upgrade
Upgrade
alpine/openjpegto a version that resolves this vulnerability.Fixed in 2.5.0-r0 - Upgrade
Upgrade
debian/openjpeg2to a version that resolves this vulnerability.Fixed in 2.5.0-1 - Upgrade
Upgrade
openjpeg2to a version that resolves this vulnerability.Patch 0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d
Event History
Frequently Asked Questions
What is CVE-2022-1122?
CVE-2022-1122 is a vulnerability found in the opj2_decompress program in openjpeg2 2.4.0, which can lead to a segmentation fault.
What is the severity of CVE-2022-1122?
The severity of CVE-2022-1122 is medium with a severity value of 5.5.
How does CVE-2022-1122 affect Uclouvain Openjpeg?
CVE-2022-1122 affects Uclouvain Openjpeg version 2.4.0.
How can I fix CVE-2022-1122 in Uclouvain Openjpeg?
To fix CVE-2022-1122 in Uclouvain Openjpeg, update to a version that is not affected.
Where can I find more information about CVE-2022-1122?
More information about CVE-2022-1122 can be found at the following references: - [GitHub](https://github.com/uclouvain/openjpeg/issues/1368) - [Debian LTS Announce](https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html) - [Fedora Project](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/)