Webkit ImageDecoderGStreamer use-after-free vulnerability
A use-after-free flaw in WebKitGTK's ImageDecoderGStreamer allows a malicious web page to trigger memory corruption, potentially leading to remote code execution. The victim must visit the crafted page to exploit the vulnerability.
Originally disclosed on Cisco Talos
An exploitable use-after-free vulnerability exists in WebKitGTK browser version 2.30.1 x64. A specially crafted HTML web page can cause a use-after-free condition, resulting in a remote code execution.
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 reference to the ImageDecoderGStreamer object is not cleared and checked before later use in ImageDecoder, leading to a use-after-free.
Impact
Proper heap grooming could give an attacker full control of this use-after-free vulnerability and as a result could allow it to be turned into arbitrary code execution.
What the attacker needed
Victim visits a malicious web page; WebKitGTK 2.30.1 x64
How it was found
- Create a malicious web page with an image tag whose data URL mimetype or URL content type is supported by the GStreamer decoder.
- Victim visits the malicious page.
- The browser allocates an ImageDecoderGStreamer object.
- When the image format is detected as invalid, the object is de-allocated.
- A later use of the freed object triggers the use-after-free.
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 memory but then keeps using it, like deleting a file and still trying to open it. Here, a web page with a specially crafted image causes the browser to free an image decoder object and then use it again, which can let an attacker run their own code on the victim's computer.
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.