Buffer overflow in OpenJPEG - CVE-2017-12982

 

Buffer overflow in OpenJPEG - CVE-2017-12982

Published: August 21, 2017 / Updated: August 3, 2020


Vulnerability identifier: #VU33223
CSH Severity: Low
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-12982
CWE-ID: CWE-119
Exploitation vector: Local access
Exploit availability: No public exploit available

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
openjpeg (Alpine package)
mingw-openjpeg2
openjpeg2
Slackware Linux
Fedora

How to mitigate CVE-2017-12982

Install update from vendor's website.

OpenJPEG - update to 2.3.0
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

External References

Related Security Bulletins