Overview
The Microsoft Remote Desktop Protocol (RDP) service contains a double-free vulnerability that could allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable system.
Description
| The Microsoft Remote Desktop Protocol (RDP) provides a remote graphical interface to Microsoft Windows systems. Microsoft Security Bulletin MS12-020 describes a remote code execution vulnerability in the RDP service. TippingPoint Zero Day Initiative advisory ZDI-12-044 indicates the vulnerability is caused by a double-free condition that occurs when RDP handles an error and aborts a connection. MS12-020 also describes a denial-of-service vulnerability (CVE-2012-0152). | 
Impact
| A remote, unauthenticated attacker could execute arbitrary code with the privileges of the RDP driver, effectively taking complete control of a vulnerable system. | 
Solution
| Apply an update | 
| Enable Network Level Authentication (NLA) | 
Vendor Information
CVSS Metrics
| Group | Score | Vector | 
|---|---|---|
| Base | 10 | AV:N/AC:L/Au:N/C:C/I:C/A:C | 
| Temporal | 7.8 | E:POC/RL:OF/RC:C | 
| Environmental | 5.9 | CDP:ND/TD:M/CR:ND/IR:ND/AR:ND | 
References
- http://technet.microsoft.com/en-us/security/bulletin/ms12-020
- http://aluigi.org/adv/termdd_1-adv.txt
- http://www.zerodayinitiative.com/advisories/ZDI-12-044/
- http://blogs.technet.com/b/srd/archive/2012/03/13/cve-2012-0002-a-closer-look-at-ms12-020-s-critical-issue.aspx
- http://msdn.microsoft.com/en-us/library/aa383015(v=VS.85).aspx
- http://technet.microsoft.com/en-us/library/cc732713.aspx
- http://support.microsoft.com/kb/315055
- http://support.microsoft.com/kb/816521
- http://support.microsoft.com/kb/306759
- https://www.securecoding.cert.org/confluence/display/seccode/MEM31-C.+Free+dynamically+allocated+memory+exactly+once
- http://cwe.mitre.org/data/definitions/415.html
- http://aluigi.org/adv/ms12-020_leak.txt
Acknowledgements
Microsoft credits Luigi Auriemma, via TippingPoint's Zero Day Initiative.
This document was written by Art Manion based on information from MS12-020 and ZDI-12-044.
Other Information
| CVE IDs: | CVE-2012-0002, CVE-2012-0152 | 
| Severity Metric: | 12.29 | 
| Date Public: | 2012-03-13 | 
| Date First Published: | 2012-03-16 | 
| Date Last Updated: | 2015-09-17 20:32 UTC | 
| Document Revision: | 25 |