CVE-2014-0209
NoneCVSS
—
EPSS
0.4%
Published
May 15, 2014
CISA due date
—
Cloudanix analysis
A problem in the way certain programs handle font files on older Linux systems could let someone already on the computer gain extra access rights.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflows in FontFileAddEntry and lexAlias allow a heap-based buffer overflow when processing oversized fonts.dir or fonts.alias metadata files added to the font path, enabling local privilege escalation.
Why it matters to the business
Local attackers with access to a vulnerable system can escalate privileges, potentially taking full control of affected hosts and increasing risk of lateral movement or data compromise in environments using older X11 font libraries.
How an attack unfolds
An attacker with local access creates a directory containing a fonts.dir or fonts.alias file with an abnormally large number of entries, adds that directory to the system's font path, and triggers the vulnerable functions when an X server or application enumerates fonts, causing the overflow and arbitrary code execution.
How to fix it
Upgrade libXfont to version 1.4.8 or later (or 1.4.99.901 or later for the 1.4.9x branch) on all affected systems; remove untrusted font directories from the font path until patches are applied.
How to confirm the fix worked
Verify installed libXfont version is at or above the fixed releases; confirm absence of oversized fonts.dir or fonts.alias files in font paths; test that font path changes no longer trigger crashes or overflows in controlled environments.
Typical attack path
- Obtain local shell or user access on target system
- Craft directory with maliciously large fonts.dir or fonts.alias file
- Append directory to font path via configuration or command
- Trigger font enumeration through X server startup or application launch
- Exploit resulting heap overflow for privilege escalation
How to detect it
Review system logs for X server or font-related crashes or errors around the time of suspected activity; inspect font path configurations and directory contents for unexpectedly large alias or directory files.
What your security team should do
- Prioritize patching libXfont on all systems still running versions before 1.4.8
- Audit and restrict font path configurations to trusted directories only
- Monitor for any remaining legacy X11 font usage and plan migration to maintained alternatives
The record
Multiple integer overflows in the (1) FontFileAddEntry and (2) lexAlias functions in X.Org libXfont before 1.4.8 and 1.4.9x before 1.4.99.901 might allow local users to gain privileges by adding a directory with a large fonts.dir or fonts.alias file to the font path, which triggers a heap-based buffer overflow, related to metadata.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libxfont | 0 | 1:1.4.7-2 |
| Debian:12 | libxfont | 0 | 1:1.4.7-2 |
| Debian:13 | libxfont | 0 | 1:1.4.7-2 |
| Debian:6.0 | libxfont | 0 | 1:1.4.1-5 |
| Debian:7 | libxfont | 0 | 1:1.4.5-4 |
| Mageia:3 | libxfont | 0 | 1.4.5-3.2.mga3 |
| Mageia:4 | libxfont | 0 | 1.4.7-1.1.mga4 |
| Red Hat:enterprise_linux:5::client | libXfont | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::client | libXfont-debuginfo | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::client | libXfont-devel | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | libXfont | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | libXfont-debuginfo | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::client_workstation | libXfont-devel | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::server | libXfont | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::server | libXfont-debuginfo | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:5::server | libXfont-devel | 0 | 0:1.2.2-1.0.6.el5_11 |
| Red Hat:enterprise_linux:6::client | libXfont | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::client | libXfont-debuginfo | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::client | libXfont-devel | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::computenode | libXfont | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::computenode | libXfont-debuginfo | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::computenode | libXfont-devel | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::server | libXfont | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::server | libXfont-debuginfo | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::server | libXfont-devel | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::workstation | libXfont | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::workstation | libXfont-debuginfo | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:6::workstation | libXfont-devel | 0 | 0:1.4.5-4.el6_6 |
| Red Hat:enterprise_linux:7::client | libXfont | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::client | libXfont-debuginfo | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::client | libXfont-devel | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::computenode | libXfont | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::computenode | libXfont-debuginfo | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::computenode | libXfont-devel | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::server | libXfont | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::server | libXfont-debuginfo | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::server | libXfont-devel | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::workstation | libXfont | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::workstation | libXfont-debuginfo | 0 | 0:1.4.7-2.el7_0 |
| Red Hat:enterprise_linux:7::workstation | libXfont-devel | 0 | 0:1.4.7-2.el7_0 |
| Ubuntu:14.04:LTS | libxfont | 0 | 1:1.4.7-1ubuntu0.1 |
Related vulnerabilities
- CVE-2017-16611 In libXfont before 1.5.4 and libXfont2 before 2.0.3, a local attacker can open (but not… Also affects libxfont
- CVE-2017-13720 In the PatternMatch function in fontfile/fontdir.c in libXfont through 1.5.2 and 2.x… Also affects libxfont
- CVE-2015-1802 The bdfReadProperties function in bitmap/bdfread.c in X.Org libXfont before 1.4.9 and… Also affects libxfont
- CVE-2013-6462 Stack-based buffer overflow in the bdfReadCharacters function in bitmap/bdfread.c in… Also affects libxfont
- CVE-2016-10164 Multiple integer overflows in libXpm before 3.5.12, when a program requests parsing XPM… Also affects libXfont
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-189
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-189
- CVE-2026-93314 A vulnerability was determined in Freedesktop Poppler 26.07.0. CWE-189