---
id: CVE-2018-19876
title: >-
  cairo 1.16.0, in cairo_ft_apply_variations() in cairo-ft-font.c, would free
  memory using a free function incompatible with WebKit's fastMalloc, leading to
  an application crash with a "free(): invalid pointer" error.
summary: >-
  cairo 1.16.0, in cairo_ft_apply_variations() in cairo-ft-font.c, would free
  memory using a free function incompatible with WebKit's fastMalloc, leading to
  an application crash with a "free(): invalid pointer" error.
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-416
vendor: cairographics
product: cairo
affected:
  - cairo = 1.16.0
published: '2018-12-05'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T18:17:18.247'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2018-19876'
references:
  - url: 'https://bugs.webkit.org/show_bug.cgi?id=191595'
    label: cve@mitre.org
  - url: 'https://gitlab.freedesktop.org/cairo/cairo/merge_requests/5'
    label: cve@mitre.org
  - url: 'https://bugs.webkit.org/show_bug.cgi?id=191595'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://gitlab.freedesktop.org/cairo/cairo/merge_requests/5'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-15T17:41:02.266868Z'
epss: 0.01707
epssPercentile: 0.77173
ingestedAt: '2026-10-15T18:23:58.400Z'
---

## Overview

cairo 1.16.0, in cairo_ft_apply_variations() in cairo-ft-font.c, would free memory using a free function incompatible with WebKit's fastMalloc, leading to an application crash with a "free(): invalid pointer" error.

## Affected

- `cairo = 1.16.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
