Bug 1444061 (CVE-2017-7870)

Summary: CVE-2017-7870 libreoffice: Heap-buffer-overflow in tools::Polygon::Insert
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: caolanm, dtardon, erack, sbergman
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libreoffice 5.2.5, libreoffice 5.3.0 Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds write flaw was found in the way Libreoffice rendered certain documents containing Polygon images. By tricking a user into opening a specially crafted LibreOffice file, an attacker could possibly use this flaw to execute arbitrary code with the privileges of the user opening the file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:10:54 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: 1444065, 1445635    
Bug Blocks: 1415638, 1444063    

Description Andrej Nemec 2017-04-20 13:39:35 UTC
LibreOffice has an out-of-bounds write caused by a heap-based buffer overflow related to the tools::Polygon::Insert function in tools/source/generic/poly.cxx.

References:

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

Upstream patch:

https://github.com/LibreOffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722

Comment 1 Andrej Nemec 2017-04-20 13:45:29 UTC
Created libreoffice tracking bugs for this issue:

Affects: fedora-all [bug 1444065]

Comment 3 errata-xmlrpc 2017-08-01 12:22:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1975 https://access.redhat.com/errata/RHSA-2017:1975