Buffer overflow in OpenJPEG - CVE-2017-12982
Published: August 21, 2017 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a local non-authenticated attacker to perform a denial of service (DoS) attack.
The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.
Affected software
openjpeg (Alpine package)
mingw-openjpeg2
openjpeg2
Slackware Linux
Fedora
How to mitigate CVE-2017-12982
openjpeg (Alpine package) - update to 2.1.2-r2
mingw-openjpeg2 - addressed in versions 2.2.0-2.fc25, 2.2.0-2.fc26
openjpeg2 - addressed in versions 2.2.0-2.fc25, 2.2.0-2.fc26, 2.2.0-3.fc27