Skip to content
Memory corruption Write-up Advanced

Windows 7 and 8 zero-day

A Windows kernel driver (win32k) fails to initialise a linked-list pointer in a path record structure, allowing an attacker to insert a user-controlled object into the kernel's path record chain. Under memory pressure, this could lead to code execution, though the author notes exploitation is tricky and not fully demonstrated.

seclists.org

Published on seclists.org

As vuln-dev is dead, I thought I'd post here, I don't have much free time to work on silly Microsoft code, so I'm looking for ideas on how to fix the final obstacle for exploitation. I first published details about this in March, but here's a recap:

The author, on seclists.org

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

Could lead to code execution in the kernel, but the author has not yet achieved reliable exploitation due to allocation failure issues.

What the attacker needed

Local access to Windows 7 or 8; ability to run code

How it was found

  1. Allocate a PATHRECORD structure in user memory with controlled next and prev pointers and the PD_BEZIERS flag set.
  2. Create a large number of Bezier curves using PolyDraw with coordinates that are the user-space PATHRECORD address shifted right by 4.
  3. Exhaust paged memory by creating many rounded rectangle regions until allocation fails.
  4. Flatten the Bezier curves repeatedly to populate the freelist with user-controlled blocks.
  5. Trigger bFlatten to traverse the path record chain, which now includes the user-space PATHRECORD.

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 write-up has not been written yet. The Original tab links to the source.

The Windows graphics component has a bug where a pointer in a data structure is left uninitialised. An attacker can trick the system into using memory they control, which could let them run their own code with high privileges. The author shows how to trigger the bug but hasn't yet worked out a reliable way to exploit it.

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.

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.