CVE-2022-1122

NameCVE-2022-1122
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2975-1, ELA-615-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
openjpeg2 (PTS)jessie, jessie (lts)2.1.0-2+deb8u14fixed
stretch (security), stretch (lts), stretch2.1.2-1.1+deb9u7fixed
buster (security), buster, buster (lts)2.3.0-2+deb10u2vulnerable
bullseye2.4.0-3vulnerable
sid, trixie, bookworm2.5.0-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
openjpeg2sourcejessie2.1.0-2+deb8u14ELA-615-1
openjpeg2sourcestretch2.1.2-1.1+deb9u7DLA-2975-1
openjpeg2source(unstable)2.5.0-1

Notes

[bullseye] - openjpeg2 <no-dsa> (Minor issue)
[buster] - openjpeg2 <no-dsa> (Minor issue)
https://github.com/uclouvain/openjpeg/issues/1368
https://github.com/uclouvain/openjpeg/commit/0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d

Search for package or bug name: Reporting problems