Stack-based buffer overflow in FreeType - CVE-2014-2240
Published: March 12, 2014 / Updated: July 28, 2020
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
Gentoo Linux
Fedora
Slackware Linux
freetype-infinality (Alpine package)
freetype (Alpine package)
samba (Alpine package)
freetype
mingw-freetype
How to mitigate CVE-2014-2240
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
- http://savannah.nongnu.org/bugs/?41697
- http://secunia.com/advisories/57291
- http://secunia.com/advisories/57447
- http://sourceforge.net/projects/freetype/files/freetype2/2.5.3
- http://www.freetype.org/index.html
- http://www.securityfocus.com/bid/66074
- http://www.securitytracker.com/id/1029895
- http://www.ubuntu.com/usn/USN-2148-1
Related Security Bulletins
- Stack-based buffer overflow in FreeType
- Stack-based buffer overflow in freetype-infinality (Alpine package)
- Stack-based buffer overflow in freetype (Alpine package)
- Gentoo update for FreeType
- Slackware Linux update for freetype
- Fedora 21 update for freetype
- Fedora 21 update for mingw-freetype
- Fedora EPEL 7 update for mingw-freetype