{"id":"UBUNTU-CVE-2017-12982","details":"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.","modified":"2026-01-30T00:50:10.093804Z","published":"2017-08-21T07:29:00Z","related":["USN-4782-1"],"upstream":["CVE-2017-12982"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-12982"},{"type":"REPORT","url":"https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4782-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-12982"}],"affected":[{"package":{"name":"openjpeg2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/openjpeg2@2.1.2-1.1+deb9u6ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1.1+deb9u6ubuntu0.1~esm1"}]}],"versions":["2.1.0-2.1","2.1.0-2.1ubuntu0.1","2.1.2-1.1+deb9u2build0.1","2.1.2-1.1+deb9u3build0.16.04.1","2.1.2-1.1+deb9u3ubuntu0.1~esm1","2.1.2-1.1+deb9u5build0.16.04.1","2.1.2-1.1+deb9u5ubuntu0.1~esm1","2.1.2-1.1+deb9u6build0.16.04.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjp2-7"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjp2-7-dev"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjp2-tools"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjp3d-tools"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjp3d7"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjpip-dec-server"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjpip-server"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjpip-viewer"},{"binary_version":"2.1.2-1.1+deb9u6ubuntu0.1~esm1","binary_name":"libopenjpip7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-12982.json"}},{"package":{"name":"openjpeg2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/openjpeg2@2.3.0-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-1"}]}],"versions":["2.2.0-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.3.0-1","binary_name":"libopenjp2-7"},{"binary_version":"2.3.0-1","binary_name":"libopenjp2-7-dev"},{"binary_version":"2.3.0-1","binary_name":"libopenjp2-tools"},{"binary_version":"2.3.0-1","binary_name":"libopenjp3d-tools"},{"binary_version":"2.3.0-1","binary_name":"libopenjp3d7"},{"binary_version":"2.3.0-1","binary_name":"libopenjpip-dec-server"},{"binary_version":"2.3.0-1","binary_name":"libopenjpip-server"},{"binary_version":"2.3.0-1","binary_name":"libopenjpip-viewer"},{"binary_version":"2.3.0-1","binary_name":"libopenjpip7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-12982.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}