Bug 1545283 (CVE-2017-18185)

Summary: CVE-2017-18185 qpdf: large heap-based out-of-bounds read in the Pl_Buffer::write function in Pl_Buffer.cc
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jpopelka, twaugh, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qpdf 7.1.1 Doc Type: If docs needed, set a value
Doc Text:
An integer overflow flaw leading to heap-based out-of-bounds read was found in the way QPDF parsed PDF files. An attacker could potentially use this flaw to crash QPDF by tricking it into processing crafted QPDF files.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 13:05:03 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: 1554716, 1554717    
Bug Blocks: 1545293    

Description Laura Pardo 2018-02-14 14:29:14 UTC
A flaw was found in QPDF before 7.0.0. There is a large heap-based out-of-bounds read in the Pl_Buffer::write function in Pl_Buffer.cc. It is caused by an integer overflow in the PNG filter. This allows an attacker to cause a denial of service via a crafted file.

External References:

https://github.com/qpdf/qpdf/issues/150

Upstream Patch(es):

https://github.com/qpdf/qpdf/commit/ec7d74a386c0b2f38990079c3b0d2a2b30be0e71
https://github.com/qpdf/qpdf/commit/6d46346eb93d5032c08cf1e39023b5d57260a766
https://github.com/qpdf/qpdf/commit/1868a10f8b06631362618bfc85ca8646da4b4b71

Comment 3 Product Security DevOps Team 2019-07-12 13:05:03 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2017-18185