CVE-2010-2642: Buffer Overflow
A heap based buffer overflow was found in the parser for AFM font files, which are used for rendering DVI files in GNOME evince document viewer. Due to insufficient bounds checks when writing data to a memory buffer allocated on a heap, it may be possible to cause an arbitrary memory overwrite, leading to code execution.
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2642 to this issue.
The vulnerability is present in the code that handles loading of fonts used by DVI files.To exploit you need two files, a DVI file and the malicious font. The vulnerability is triggered not only by opening the document in evince, but also by browsing to a folder which contains the malicious files, where evince thumbnailer will load the malicious file to generate a thumbnail for it.
Acknowledgements:
Red Hat would like to thank the Evince development team for reporting this issue. Upstream acknowledges Jon Larimer of IBM X-Force as the original reporter.
Other sources
Heap-based buffer overflow in the AFM font parser in the dvi-backend component in Evince 2.32 and earlier, teTeX 3.0, t1lib 5.1.2, and possibly other products allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted font in conjunction with a DVI file that is processed by the thumbnailer.
Affected Software
Remediation
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2010-2642?
CVE-2010-2642 is classified as a medium severity vulnerability due to its potential to cause arbitrary memory overwrite.
How do I fix CVE-2010-2642?
To fix CVE-2010-2642, update affected packages such as evince and tetex to the specified secure versions.
Which software is affected by CVE-2010-2642?
CVE-2010-2642 affects versions of evince, tetex, t1lib, and texlive among others.
What type of vulnerability is CVE-2010-2642?
CVE-2010-2642 is a heap-based buffer overflow vulnerability.
Can CVE-2010-2642 lead to remote code execution?
Yes, CVE-2010-2642 has the potential to lead to remote code execution through exploitation of the vulnerability.