Bug 1939137 (CVE-2020-36281)

Summary: CVE-2020-36281 leptonica: heap-based buffer overflow in pixFewColorsOctcubeQuantMixed in colorquant1.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dchen, jkucera, manisandro
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in leptonica. A heap-based buffer over-read in the pixFewColorsOctcubeQuantMixed function in colorquant1.c file may allow an attacker to read data from an application using leptonica. The highest threat from this vulnerability is to data confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-28 14:08:02 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: 1939138, 1939139, 1939140, 1942944    
Bug Blocks: 1939215    

Description Guilherme de Almeida Suckevicz 2021-03-15 17:24:17 UTC
Leptonica before 1.80.0 allows a heap-based buffer over-read in pixFewColorsOctcubeQuantMixed in colorquant1.c.

Reference:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22140

Upstream patch:
https://github.com/DanBloomberg/leptonica/commit/5ee24b398bb67666f6d173763eaaedd9c36fb1e5

Comment 1 Guilherme de Almeida Suckevicz 2021-03-15 17:24:40 UTC
Created leptonica tracking bugs for this issue:

Affects: epel-7 [bug 1939140]
Affects: fedora-all [bug 1939138]


Created mingw-leptonica tracking bugs for this issue:

Affects: fedora-all [bug 1939139]