Microsoft Windows ulGetNearestIndexFromColorref Out-Of-Bounds Write Privilege Escalation Vulnerability
A function in the Windows kernel driver win32k.sys fails to validate user-supplied data, causing a write past the end of an allocated array. A local attacker who can already run low-privileged code could exploit this to escalate to SYSTEM privileges.
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 the ulGetNearestIndexFromColorref function used a caller-supplied value as an array index or length without bounds checking, allowing an out-of-bounds write.
Impact
An attacker with low-privileged code execution could escalate privileges and run code as SYSTEM; the text does not describe any mitigation limiting the exploit.
What the attacker needed
Ability to run low-privileged code locally
The fix
Microsoft issued an update that corrects 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.
Windows splits programs into user mode and a more powerful kernel mode. A driver called win32k.sys runs in kernel mode and handles graphics. Here it trusted numbers passed in from a normal program without checking them, so a program could make it write past the end of a memory buffer and take over 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.