Bug 1767920 (CVE-2019-15145)

Summary: CVE-2019-15145 djvulibre: out-of-bounds read in JB2Dict::JB2Codec::get_direct_context in libdjvu/JB2Image.h
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: brian, manisandro, mkasik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 10:50:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1767921, 1767922, 1767923, 1767924    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2019-11-01 16:41:51 UTC
DjVuLibre 3.5.27 allows attackers to cause a denial-of-service attack (application crash via an out-of-bounds read) by crafting a corrupted JB2 image file that is mishandled in JB2Dict::JB2Codec::get_direct_context in libdjvu/JB2Image.h because of a missing zero-bytes check in libdjvu/GBitmap.h.

Reference:
https://sourceforge.net/p/djvu/bugs/298/

Upstream commit:
https://sourceforge.net/p/djvu/djvulibre-git/ci/9658b01431cd7ff6344d7787f855179e73fe81a7/

Comment 1 Guilherme de Almeida Suckevicz 2019-11-01 16:42:12 UTC
Created djvulibre tracking bugs for this issue:

Affects: epel-6 [bug 1767923]
Affects: epel-7 [bug 1767924]
Affects: fedora-all [bug 1767921]


Created mingw-djvulibre tracking bugs for this issue:

Affects: fedora-all [bug 1767922]