Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 628504 (CVE-2017-12982)

Summary: <media-libs/openjpeg-2.3.0: memory allocation failure in opj_aligned_alloc_n (opj_malloc.c) (CVE-2017-12982)
Product: Gentoo Security Reporter: D'juan McDonald (domhnall) <flopwiki>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: minor CC: graphics+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://blogs.gentoo.org/ago/2017/08/14/openjpeg-memory-allocation-failure-in-opj_aligned_alloc_n-opj_malloc-c/
Whiteboard: B3 [glsa cve]
Package list:
Runtime testing required: ---

Description D'juan McDonald (domhnall) 2017-08-21 13:41:44 UTC
From $URL:

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.
Comment 2 D'juan McDonald (domhnall) 2017-08-22 11:07:23 UTC
@maintainer(s), please test and then follow procedure to stabilize and close. 

Thank you.

Daj'Uan (mbailey_j)
Gentoo Security Scout
Comment 3 Agostino Sarubbo gentoo-dev 2017-08-24 08:32:13 UTC
There are several other issues. I will ask a tag when I finish to work on it.
Comment 4 GLSAMaker/CVETool Bot gentoo-dev 2017-10-23 01:40:06 UTC
This issue was resolved and addressed in
 GLSA 201710-26 at https://security.gentoo.org/glsa/201710-26
by GLSA coordinator Aaron Bauman (b-man).