Skip to content
Memory corruption Advisory Advanced CVE-2026-20842

Microsoft DWM Core Library Elevation of Privilege Vulnerability (CVE-2026-20842)

A use-after-free flaw exists in the Windows Desktop Window Manager (DWM) core library. An attacker with local access and knowledge of a specific trigger could exploit it to gain SYSTEM privileges.

Varun Goel Follow

Originally disclosed on Microsoft

High 7.0 View original

Description

Use after free in Windows DWM allows an authorized attacker to elevate privileges locally.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? For an attacker to exploit this vulnerability, they would need to have knowledge of a specific operation that triggers a memory allocation failure, specifically a use after free.

FAQ

What privileges could be gained by an attacker who successfully exploited this vulnerability? An attacker who successfully exploited this vulnerability could gain SYSTEM privileges.

Windows DWM

Windows DWM

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Varun Goel. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a use-after-free in the Windows DWM core library, triggered by a specific operation that causes a memory allocation failure.

Impact

An attacker who successfully exploited this vulnerability could gain SYSTEM privileges, but exploitation requires local access and knowledge of a specific trigger.

What the attacker needed

Local access to the target machine; knowledge of a specific trigger operation

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed, which can let an attacker take control. Here, the vulnerable program is part of Windows that draws windows, and a local attacker who knows a special way to trigger the bug could gain the highest level of access on the machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Varun Goel

View all

26 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.