Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672908 (CVE-2018-19876) - <x11-libs/cairo-1.16.0-r3: invalid free in cairo_ft_apply_variations
Summary: <x11-libs/cairo-1.16.0-r3: invalid free in cairo_ft_apply_variations
Alias: CVE-2018-19876
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B3 [glsa+ cve]
Depends on:
Blocks: CVE-2016-9082 CVE-2017-9814
  Show dependency tree
Reported: 2018-12-10 23:44 UTC by D'juan McDonald (domhnall)
Modified: 2019-04-09 01:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---
stable-bot: sanity-check+


Note You need to log in before you can comment on or make changes to this bug.
Description D'juan McDonald (domhnall) 2018-12-10 23:44:49 UTC
cairo 1.16.0, in cairo_ft_apply_variations() in cairo-ft-font.c frees memory using the wrong free function, leading to memory corruption. Because cairo is used by WebKitGTK+, WPE WebKit, and the WinCairo port of WebKit, this issue can be triggered by web content.


@maintainer(s): Patch available, see reference. 

Gentoo Security Padawan
Comment 1 Yury German Gentoo Infrastructure gentoo-dev 2019-03-27 00:16:33 UTC
Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2019-03-29 20:05:42 UTC
(In reply to Yury German from comment #1)

Fix is in 1.17.2

git tag --contains 6edf572ebb27b00d3c371ba5ae267e39d27d5b6d
Comment 3 Larry the Git Cow gentoo-dev 2019-03-30 02:04:50 UTC
The bug has been referenced in the following commit(s):

commit 8e27a74b58384414d920401521f7460a240ea37a
Author:     Matt Turner <>
AuthorDate: 2019-03-30 02:00:30 +0000
Commit:     Matt Turner <>
CommitDate: 2019-03-30 02:03:47 +0000

    x11-libs/cairo: Pull in a few fixes from upstream
    Signed-off-by: Matt Turner <>

 x11-libs/cairo/cairo-1.16.0-r3.ebuild              | 132 +++++++++++++++++++++
 ...one_MM_Var-instead-of-free-when-available.patch |  30 +++++
 .../files/cairo-1.16.0-pdf-add-missing-flush.patch |  29 +++++
 3 files changed, 191 insertions(+)
Comment 4 Matt Turner gentoo-dev 2019-03-30 02:05:55 UTC
Arches, please stabilize.
Comment 5 Aaron Bauman (RETIRED) gentoo-dev 2019-03-30 02:39:44 UTC
(In reply to Matt Turner from comment #4)
> Arches, please stabilize.

Thanks, Matt!
Comment 6 Agostino Sarubbo gentoo-dev 2019-03-30 10:47:02 UTC
amd64 stable
Comment 7 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-03-30 19:04:33 UTC
arm stable
Comment 8 Matt Turner gentoo-dev 2019-03-31 19:12:03 UTC
ppc/ppc64 stable
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2019-04-02 01:37:59 UTC
x86 stable
Comment 10 GLSAMaker/CVETool Bot gentoo-dev 2019-04-02 04:16:09 UTC
This issue was resolved and addressed in
 GLSA 201904-01 at
by GLSA coordinator Aaron Bauman (b-man).
Comment 11 Aaron Bauman (RETIRED) gentoo-dev 2019-04-02 04:16:50 UTC
re-opened for final arches and clean-up
Comment 12 Rolf Eike Beer archtester 2019-04-06 10:24:41 UTC
sparc stable
Comment 13 Rolf Eike Beer archtester 2019-04-06 10:26:47 UTC
hppa too
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2019-04-07 21:43:31 UTC
ia64 stable
Comment 15 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-04-07 21:50:16 UTC
s390 stable
Comment 16 Matt Turner gentoo-dev 2019-04-08 23:21:29 UTC
alpha stable
Comment 17 Aaron Bauman (RETIRED) gentoo-dev 2019-04-09 00:03:06 UTC
arm64 stable
Comment 18 Aaron Bauman (RETIRED) gentoo-dev 2019-04-09 01:48:00 UTC
tree is clean