Bug 1637792 (CVE-2018-18064)

Summary: CVE-2018-18064 cairo: Stack-based buffer overflow via parsing of crafted WebKitGTK+ document
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, ajax, dbaker, erack, erik-fedora, fedora, gecko-bugs-nobody, jhorak, john.j5live, jokerman, marcandre.lureau, mclasen, otte, rh-spice-bugs, rhughes, rjones, rstrode, sandmann, sthangav, stransky, tpopela, trankin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-02 10:58:25 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: 1637793, 1637794, 1637795, 1637796, 1637797, 1648806    
Bug Blocks: 1637799    

Description Sam Fowler 2018-10-10 06:37:09 UTC
cairo through 1.15.14 has an out-of-bounds stack-memory write during processing of a crafted document by WebKitGTK+ because of the interaction between cairo-rectangular-scan-converter.c (the generate and render_rows functions) and cairo-image-compositor.c (the _cairo_image_spans_and_zero function).


Upstream Issue:

https://gitlab.freedesktop.org/cairo/cairo/issues/341

Comment 1 Sam Fowler 2018-10-10 06:37:53 UTC
Created cairo tracking bugs for this issue:

Affects: fedora-all [bug 1637793]


Created mingw-cairo tracking bugs for this issue:

Affects: epel-7 [bug 1637795]
Affects: fedora-all [bug 1637794]

Comment 5 Huzaifa S. Sidhpurwala 2020-03-03 03:53:52 UTC
Mitigation:

Attackers can use specially-crafted files to trigger this stack-buffer overflow in cairo. Applications compiled with cairo, which do not parse untrusted 2D image files are not vulnerable to this flaw. cairo package in Red Hat Enterprise Linux 7 and 8 is compiled with gcc's Stack Smashing Protection, which may reduce the impact of this flaw to crash only.