Skip to content
Memory corruption Write-up Advanced

Exploiting MS16-098 RGNOBJ Integer Overflow on Windows 8.1 x64 bit by abusing GDI objects

The report describes an integer overflow in the RGNOBJ GDI object handling on Windows 8.1 x64, which could be exploited to achieve kernel-level code execution. The author details their journey of reverse engineering the patch and developing an exploit from scratch.

sensepost.com

Published on sensepost.com

Starting from the beginning with no experience whatsoever in kernel land let alone exploiting it, I was always intrigued and fascinated by reverse engineering and exploit development.

The author, on sensepost.com

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

An attacker could potentially execute arbitrary code with kernel privileges, compromising the entire system.

What the attacker needed

Windows 8.1 x64; local access

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.

This is about a security flaw in Windows that lets an attacker run harmful code deep inside the operating system, where it can control everything. The flaw is a maths error in how the system handles certain graphics objects, and the author spent months figuring out how to turn that error into a working attack.

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.