cve.bz

CVE-2022-1122 Improper Initialization

5.5 mediumEPSS 1.1%

Medium (5.5). EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-665 Improper Initialization
CWE-824 Access of Uninitialized Pointer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-1122 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-1122?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-1122?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-1122 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
uclouvain:openjpeg2.4.0
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9openjpeg22.1.2-1.1+deb9u7DLA-2975-1
Debian11openjpeg22.4.0-3+deb11u1DLA-4107-1
Debian12, 13, 14openjpeg22.5.0-1DEBIAN-CVE-2022-1122
Ubuntu16.04:LTSblender, texmaker, insighttoolkit4no fix listedUBUNTU-CVE-2022-1122
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTSblender, insighttoolkit4no fix listedUBUNTU-CVE-2022-1122
Ubuntu20.04:LTSopenjpeg22.3.1-1ubuntu4.20.04.3UBUNTU-CVE-2022-1122 USN-7083-1
Ubuntu22.04:LTSopenjpeg22.4.0-6ubuntu0.2UBUNTU-CVE-2022-1122 USN-7083-1
Ubuntu24.04:LTSblenderno fix listedUBUNTU-CVE-2022-1122
Ubuntu24.04:LTSopenjpeg22.5.0-2ubuntu0.2USN-7083-1
Ubuntu25.10, 26.10blender, texmaker, qtwebengine-opensource-srcno fix listedUBUNTU-CVE-2022-1122
Ubuntu26.04:LTSblender, texmakerno fix listedUBUNTU-CVE-2022-1122
UbuntuPro:16.04:LTSopenjpeg22.1.2-1.1+deb9u6ubuntu0.1~esm6UBUNTU-CVE-2022-1122 USN-7083-1
UbuntuPro:18.04:LTSopenjpeg22.3.0-2+deb10u2ubuntu0.1~esm3UBUNTU-CVE-2022-1122 USN-7083-1
UbuntuPro:18.04:LTS, Pro:20.04:LTS, Pro:22.04:LTS and 1 moretexmaker, qtwebengine-opensource-srcno fix listedUBUNTU-CVE-2022-1122
UbuntuPro:26.04:LTSqtwebengine-opensource-srcno fix listedUBUNTU-CVE-2022-1122
Red Hatenterprise_linux:8::appstreamopenjpeg2, openjpeg2-tools, openjpeg2-debuginfo and 3 more0:2.4.0-5.el8RHSA-2022:7645
Red Hatenterprise_linux:8::crbopenjpeg2-devel, openjpeg2-tools, openjpeg2-debuginfo and 2 more0:2.4.0-5.el8RHSA-2022:7645
Red Hatenterprise_linux:9::appstreamopenjpeg2, openjpeg2-debuginfo, openjpeg2-debugsource and 1 more0:2.4.0-7.el9RHSA-2022:8207
Red Hatenterprise_linux:9::crbopenjpeg2-devel, openjpeg2-tools, openjpeg2-debuginfo and 2 more0:2.4.0-7.el9RHSA-2022:8207
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 19 moreopenjpeg22.3.0-150000.3.5.1SUSE-SU-2022:1252-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 moreopenjpeg22.1.0-4.15.1SUSE-SU-2022:1129-1
openSUSELeap 15.3openjpeg22.3.0-150000.3.5.1SUSE-SU-2022:1252-1
AlmaLinux8openjpeg2, openjpeg2-devel, openjpeg2-tools and 1 more2.4.0-5.el8ALSA-2022:7645
AlmaLinux9openjpeg2, openjpeg2-devel, openjpeg2-tools2.4.0-7.el9ALSA-2022:8207
Rocky Linux8openjpeg20:2.4.0-5.el8RLSA-2022:7645
Rocky Linux9openjpeg20:2.4.0-7.el9RLSA-2022:8207
Alpinev3.16, v3.17, v3.18 and 6 moreopenjpeg2.5.0-r0ALPINE-CVE-2022-1122
Azure Linux3openjpeg2no fix listedAZL-45240

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw affects the opj2_compress utility but is not in the openjpeg2 library. Therefore, the attack vector is local to the opj2_compress utility and would require an attacker to convince a user to open a directory with an extremely large number of files using opj2_compress, or a script to be feeding such arbitrary, untrusted files to opj2_compress.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8openjpeg2-0:2.4.0-5.el8Fixed 2022-11-08RHSA-2022:7645
Red Hat Enterprise Linux 9openjpeg2-0:2.4.0-7.el9Fixed 2022-11-15RHSA-2022:8207
Red Hat Enterprise Linux 6openjpegOut of support scope
Red Hat Enterprise Linux 7openjpegOut of support scope
Red Hat Enterprise Linux 7openjpeg2Out of support scope
Red Hat Enterprise Linux 8gimp:flatpak/openjpeg2Not affected
Red Hat Enterprise Linux 8inkscape:flatpak/openjpeg2Not affected
Red Hat Enterprise Linux 8libreoffice:flatpak/openjpeg2Not affected
Red Hat Enterprise Linux 9libreoffice:flatpak/openjpeg2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-1122.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON