Bug 1546029 (CVE-2018-7186)

Summary: CVE-2018-7186 leptonica: Stack-based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jkucera, manisandro, psampaio, rhel8-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: leptonica 1.75.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 19:54:56 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: 1542006, 1542007, 1542008, 1542009    
Bug Blocks:    

Description Sam Fowler 2018-02-16 06:12:51 UTC
leptonica through version 1.74.4 is vulnerable to a stack-based buffer overflow in gplot.c:gplotRead() and ptabasic.c:ptaReadStream() when parsing crafted files, leading to a denial of service.

Upstream patch:

https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a

Additional References:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890548

Comment 1 Sam Fowler 2018-02-16 06:14:45 UTC
Created leptonica tracking bugs for this issue:

Affects: epel-all [bug 1542007]
Affects: fedora-all [bug 1542008]


Created mingw-leptonica tracking bugs for this issue:

Affects: fedora-all [bug 1542009]