Stack-based buffer overflow in FreeType - CVE-2014-2240

 

Stack-based buffer overflow in FreeType - CVE-2014-2240

Published: March 12, 2014 / Updated: July 28, 2020


Vulnerability identifier: #VU32478
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-2240
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the cf2_hintmap_build function in cff/cf2hints.c when processing a large number of stem hints in a font file. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

FreeType
Gentoo Linux
Fedora
Slackware Linux
freetype-infinality (Alpine package)
freetype (Alpine package)
samba (Alpine package)
freetype
mingw-freetype

How to mitigate CVE-2014-2240

Update to version 2.5.3.

FreeType - update to 2.5.3
freetype-infinality (Alpine package) - addressed in versions 2.5.3-r0, 2.5.5-r0
freetype (Alpine package) - update to 2.5.0.1-r2
samba (Alpine package) - update to 3.6.25-r0
freetype - update to 2.5.3-13.fc21
mingw-freetype - addressed in versions 2.5.4-1.el7, 2.5.4-1.fc21

External References

Related Security Bulletins