openjpeg: Multiple vulnerabilities (CVE-2019-12973, CVE-2020-15389)
CVE-2019-12973: denial of service in function opj_t1_encode_cblks in openjp2/t1.c
In OpenJPEG 2.3.1, there is excessive iteration in the opj_t1_encode_cblks function of openjp2/t1.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file. This issue is similar to CVE-2018-6616.
CVE-2020-15389: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor
jp2/opj_decompress.c in OpenJPEG through 2.3.1 has a use-after-free that can be triggered if there is a mix of valid and invalid files in a directory operated on by the decompressor. Triggering a double-free may also be possible. This is related to calling opj_image_destroy twice.