Secunia Research: Windows GDI "SetDIBitsToDevice()" API BITMAPINFOHEADER Processing biClrUsed Integer Overflow Vulnerability

====================================================================== 
 
                    Secunia Research 12/11/2013              

Windows GDI "SetDIBitsToDevice()" API BITMAPINFOHEADER Processing
biClrUsed Integer Overflow Vulnerability

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

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

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

* Microsoft Windows 7
* Microsoft Windows 8
* Microsoft Windows 8.1
* Microsoft Windows RT
* Microsoft Windows RT 8.1
* Microsoft Windows Server 2003 Datacenter Edition
* Microsoft Windows Server 2003 Enterprise Edition
* Microsoft Windows Server 2003 Standard Edition
* Microsoft Windows Server 2003 Web Edition
* Microsoft Windows Server 2008
* Microsoft Windows Server 2012
* Microsoft Windows Storage Server 2003
* Microsoft Windows Vista
* Microsoft Windows XP Home Edition
* Microsoft Windows XP Professional

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

Rating: Highly critical
Impact: System Access
Where:  From remote
 
====================================================================== 
3) Description of Vulnerability

Secunia Research has discovered a vulnerability in Microsoft Windows,
which can be exploited by malicious people to compromise a user's
system.

The vulnerability is caused due to an integer overflow error in the
"SetDIBitsToDevice()" function within gdi32.dll when processing
BITMAPINFOHEADER, which can be exploited to cause a heap-based
buffer overflow via an overly large biClrUsed field.

Successful exploitation allows execution of arbitrary code.

====================================================================== 
4) Solution 

Apply update provided by MS13-089.

====================================================================== 
5) Time Table 

10/06/2013 - Vendor notified.
10/06/2013 - Vendor response.
23/07/2013  Requested status update.
14/08/2013  Vendor response with planned fix in November.
15/08/2013 - Replied to vendor.
30/10/2013 - Requested status update.
01/11/2013 - Vendor response.
03/11/2013 - Clarified CVE identifier with vendor.
05/11/2013 - Vendor response.
12/11/2013 - Release of vendor patch and public disclosure.

====================================================================== 
6) Credits 

Discovered by Hossein Lotfi, Secunia Research.

====================================================================== 
7) References

The Common Vulnerabilities and Exposures (CVE) project has assigned
the CVE-2013-3940 identifier for the vulnerabilities.
 
====================================================================== 
8) 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/

====================================================================== 
9) Verification 

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

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

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