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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1122.json",
"cna_assigner": "redhat",
"unresolved_ranges": [
{
"extracted_events": [
{
"last_affected": "openjpeg2 version 2.4.0 and prior"
}
],
"source": "AFFECTED_FIELD"
}
],
"cwe_ids": [
"CWE-665"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.4.0"
}
],
"cpe": "cpe:2.3:a:uclouvain:openjpeg:2.4.0:*:*:*:*:*:*:*",
"source": "CPE_STRING"
}