CVE-2022-1122

openjpeg: segmentation fault in opj2_decompress due to uninitialized pointer

Published Mar 29, 2022 CVSS 3.1 · 5.5 Medium EPSS 1.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2975-1 openjpeg2 security update
Debian DLA Debian DLA DLA-4107-1 openjpeg2 security update
EUVD EUVD EUVD-2022-24465 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.
Ubuntu USN Ubuntu USN USN-7083-1 OpenJPEG vulnerabilities
Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 3, 2025, 7:26 PM
Reserved
Mar 28, 2022, 12:00 AM
Status
Modified
Published
Mar 29, 2022, 6:15 PM
Modified
Jun 17, 2026, 4:21 AM
Severity
Low
Public date
Jul 13, 2021, 12:00 AM