Microsoft Windows BeginPaint Pen Use-After-Free Local Privilege Escalation Vulnerability
The win32kfull driver in Microsoft Windows fails to validate that an object exists before using it, leading to a use-after-free. A local attacker with low-privileged code execution could exploit this to escalate privileges and run code as SYSTEM.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Microsoft Windows. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 missing existence check on a pen object in the win32kfull driver before it is used, allowing a freed object to be referenced.
Impact
An attacker who can already run low-privileged code could escalate to SYSTEM and execute arbitrary code, though the text does not describe any mitigating factors.
What the attacker needed
Low-privileged code execution on target
The fix
Microsoft issued an update to correct the vulnerability.
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 happens when a program frees a piece of memory but then keeps using it, like deleting a file and still trying to open it. Here, a core Windows graphics component does this, and because it runs with high privileges, an attacker who already has a small foothold on the machine can turn that mistake into full control of the system.
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.