CVE-2017-0038
Description
gdi32.dll in Graphics Device Interface (GDI) in Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1, Windows Server 2012 Gold and R2, Windows RT 8.1, and Windows 10 Gold, 1511, and 1607 allows remote attackers to obtain sensitive information from process heap memory via a crafted EMF file, as demonstrated by an EMR_SETDIBITSTODEVICE record with modified Device Independent Bitmap (DIB) dimensions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-3216, CVE-2016-3219, and/or CVE-2016-3220.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Microsoft Windows - 'gdi32.dll' EMR_SETDIBITSTODEVICE Heap Out-of-Bounds Reads / Memory Disclosure
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| windows | - | affected | |
| windows | 1511 | affected | |
| windows | 1607 | affected | |
| windows | affected | | |
| windows | r2 | affected | |
References
- http://www.securityfocus.com/bid/96023
- http://www.securitytracker.com/id/1037845
- https://0patch.blogspot.com/2017/02/0patching-0-day-windows-gdi32dll-memory.html
- https://bugs.chromium.org/p/project-zero/issues/detail?id=992
- https://github.com/k0keoyo/CVE-2017-0038-EXP-C-JS
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0038
- https://www.exploit-db.com/exploits/41363/
- http://www.securityfocus.com/bid/96023
- http://www.securitytracker.com/id/1037845
- https://0patch.blogspot.com/2017/02/0patching-0-day-windows-gdi32dll-memory.html
- https://bugs.chromium.org/p/project-zero/issues/detail?id=992
- https://github.com/k0keoyo/CVE-2017-0038-EXP-C-JS
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0038
- https://www.exploit-db.com/exploits/41363/
CWEs
CWE-200
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.