[] NeoSense

Microsoft Windows Kernel - 'HmgAllocateObjectAttr' Use-After-Free (MS15-061)

Author: Nils Sommer
type: dos
platform: windows_x86
port: 
date_added: 2015-09-22 
date_updated: 2015-09-22 
verified: 1 
codes: CVE-2015-1726;OSVDB-123071;MS15-061 
tags: 
aliases:  
screenshot_url:  
application_url: 

Source: https://code.google.com/p/google-security-research/issues/detail?id=320

The PoC bug checks reliably with Special Pool enabled on writing to freed memory. A reference to the freed memory is held at offset +0x10 of the THREADINFO object. This memory is referenced in HmgAllocateObjectAttr which is called in multiple locations. The freed memory is a struct inside a Brush Object which is freed in the call NtGdiDeleteObjectApp.

Proof of Concept:
https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/38269.zip