Secunia Research: MuPDF Two Integer Overflow Vulnerabilities

====================================================================== 

                     Secunia Research 24/02/2011

          - MuPDF Two Integer Overflow Vulnerabilities -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

====================================================================== 
1) Affected Software 

* mupdf 0.7

NOTE: Other versions may also be affected.

====================================================================== 
2) Severity 

Rating: Highly critical
Impact: System access
Where:  Remote

====================================================================== 
3) Vendor's Description of Software 

"A lightweight PDF viewer and toolkit written in portable C.".

Product Link:
http://mupdf.com/

====================================================================== 
4) Description of Vulnerability

Secunia Research has discovered two vulnerabilities in MuPDF, which
can be exploited by malicious people to compromise a user's system.

1) An integer overflow error within the "loadsamplefunc()" function
in mupdf/pdf_function.c can be exploited to cause a heap-based buffer
overflow by e.g. tricking a user into opening a specially crafted PDF
file containing a sample function with a specially crafted size.

2) An integer overflow error within the "fz_newpixmap()" function in
fitz/res_pixmap.c can be exploited to cause a heap-based buffer
overflow by e.g. tricking a user into opening a specially crafted PDF
file containing an image with specially crafted dimensions.

====================================================================== 
5) Solution 

Fixed in the Darcs repository.

====================================================================== 
6) Time Table 

21/01/2011 - Vendor notified.
24/02/2011 - Public disclosure.

====================================================================== 
7) Credits 

Discovered by Stefan Cornelius, Secunia Research.

====================================================================== 
8) References

The Common Vulnerabilities and Exposures (CVE) project has not 
currently assigned CVE identifiers for the vulnerabilities.

====================================================================== 
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://secunia.com/advisories/business_solutions/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private 
individuals, who are interested in or concerned about IT-security.

http://secunia.com/advisories/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the 
security and reliability of software in general:

http://secunia.com/secunia_research/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

http://secunia.com/corporate/jobs/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/advisories/mailing_lists/

====================================================================== 
10) Verification 

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2011-12/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

======================================================================