Cloudanix VulnDB

CVE-2016-5384

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Aug 13, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in handling certain configuration files on a computer could let someone with ordinary access run their own code without permission.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability allows local users to trigger arbitrary free calls leading to double-free attacks and arbitrary code execution by providing a crafted fontconfig cache file due to lack of offset validation.

Why it matters to the business

Attackers with local access could execute arbitrary code on affected systems, potentially leading to full system compromise and data breaches.

How an attack unfolds

An attacker with local access crafts a malicious fontconfig cache file with invalid offsets and places it in a location where fontconfig will load it, causing the library to perform invalid memory operations resulting in code execution.

How to fix it

Upgrade fontconfig to 2.12.1 or later; for horde/horde apply the fix from commit 2ec0d26edf4964d45739ce6414ca853446a216ba.

How to confirm the fix worked

Confirm fontconfig version is 2.12.1 or newer and verify the horde codebase contains commit 2ec0d26edf4964d45739ce6414ca853446a216ba.

Typical attack path

  1. Obtain local user access on the target system
  2. Craft a malicious cache file that exploits unvalidated offsets
  3. Position the file for loading by fontconfig
  4. Trigger cache processing to induce double-free and gain code execution

How to detect it

Examine system logs for fontconfig cache parsing errors or crashes, and inspect for unexpected processes or memory anomalies following cache loads.

What your security team should do

  • Apply the fontconfig or horde fix immediately due to local code execution risk
  • Restrict local user access to cache file locations
  • Review systems for any custom fontconfig configurations that may increase exposure

The record

fontconfig before 2.12.1 does not validate offsets, which allows local users to trigger arbitrary free calls and consequently conduct double free attacks and execute arbitrary code via a crafted cache file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 fontconfig 0 2.11.0-6.5
Debian:12 fontconfig 0 2.11.0-6.5
Debian:13 fontconfig 0 2.11.0-6.5
Debian:7 fontconfig 0 2.9.0-7.1+deb7u1
Debian:8 fontconfig 0 2.11.0-6.3+deb8u1
Mageia:5 fontconfig 0 2.11.1-4.1.mga5
Red Hat:enterprise_linux:7::client fontconfig 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::client fontconfig-debuginfo 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::client fontconfig-devel 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::client fontconfig-devel-doc 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::computenode fontconfig 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::computenode fontconfig-debuginfo 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::computenode fontconfig-devel 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::computenode fontconfig-devel-doc 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::server fontconfig 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::server fontconfig-debuginfo 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::server fontconfig-devel 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::server fontconfig-devel-doc 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::workstation fontconfig 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::workstation fontconfig-debuginfo 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::workstation fontconfig-devel 0 0:2.10.95-10.el7
Red Hat:enterprise_linux:7::workstation fontconfig-devel-doc 0 0:2.10.95-10.el7
SUSE:Linux Enterprise Desktop 12 SP1 fontconfig 0 2.11.0-6.1
SUSE:Linux Enterprise Server 11 SP4 fontconfig 0 2.6.0-10.19.1
SUSE:Linux Enterprise Server 12 SP1 fontconfig 0 2.11.0-6.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 fontconfig 0 2.6.0-10.19.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 fontconfig 0 2.11.0-6.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 fontconfig 0 2.6.0-10.19.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 fontconfig 0 2.11.0-6.1
Ubuntu:14.04:LTS fontconfig 0 2.11.0-0ubuntu4.2
Ubuntu:16.04:LTS fontconfig 0 2.11.94-0ubuntu1.1

Related vulnerabilities