CVE-2016-0040: Privilege Escalation via GDI Bitmap Kernel Memory Manipulation in Windows
- Vendor
- Microsoft Corporation
CVE-2016-0040 is a local privilege escalation vulnerability in the Windows kernel (Vista SP2, Server 2008 SP2/R2 SP1, Windows 7 SP1) that allows a local attacker to gain SYSTEM privileges by exploiting the GDI bitmap object management in kernel memory. The vulnerability is exploited by manipulating the internal pointer (pvScan0) of a bitmap object through a crafted application, enabling arbitrary kernel memory read/write primitives. The exploit leverages predictable heap allocation of bitmaps and abuses GDI Manager/Worker bitmap relationships to overwrite sensitive kernel structures, such as process tokens.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a local attacker to escalate privileges to SYSTEM, enabling full control over the affected system. The attacker can steal system process tokens, execute arbitrary code with kernel privileges, and potentially disable security mechanisms. The exploit can also cause system instability, including triggering a Blue Screen of Death (BSoD).
Mitigation
If you can’t patch tonight, do this now.
If patching is not immediately possible, restrict local access to trusted users only, as exploitation requires local code execution. Monitor for suspicious bitmap allocations and kernel memory manipulation attempts. Employ endpoint protection solutions capable of detecting privilege escalation exploits targeting GDI objects.
Remediation
Patch, then assume compromise.
Apply the security updates provided by Microsoft for CVE-2016-0040. Ensure all affected Windows systems are patched to the latest supported versions. Microsoft has released patches that address the underlying GDI bitmap management vulnerability in the kernel.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2016-0040 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 28, 2022.
- Is there a public exploit for CVE-2016-0040?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2016-0040, the earliest disclosed Dec 4, 2015.
- Is there a patch for CVE-2016-0040?
- Apply the security updates provided by Microsoft for CVE-2016-0040. Ensure all affected Windows systems are patched to the latest supported versions.
- What products are affected by CVE-2016-0040?
- Microsoft Corporation Windows 7, Microsoft Corporation Windows Server 2008, and Microsoft Corporation Windows Vista.
- How severe is CVE-2016-0040?
- CVE-2016-0040 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 24.3% (98th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.