Bug 1939200 (CVE-2020-36278)

Summary: CVE-2020-36278 leptonica: heap-based buffer overflow in findNextBorderPixel in ccbord.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 findNextBorderPixel function in ccbord.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: 1939201, 1939202, 1939203, 1942946    
Bug Blocks: 1939215    

Description Guilherme de Almeida Suckevicz 2021-03-15 17:50:55 UTC
Leptonica before 1.80.0 allows a heap-based buffer over-read in findNextBorderPixel in ccbord.c.

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

Upstream patch:
https://github.com/DanBloomberg/leptonica/commit/8d6e1755518cfb98536d6c3daf0601f226d16842

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

Affects: epel-7 [bug 1939203]
Affects: fedora-all [bug 1939201]


Created mingw-leptonica tracking bugs for this issue:

Affects: fedora-all [bug 1939202]