Webkit AudioSourceProviderGStreamer use-after-free vulnerability
A use-after-free vulnerability exists in WebKitGTK's AudioSourceProviderGStreamer when a MediaElementAudioSourceNode is freed but later receives an internal notification. An attacker could exploit this to achieve remote code execution.
Originally disclosed on Cisco Talos
A code execution vulnerability exists in the AudioSourceProviderGStreamer functionality of Webkit WebKitGTK 2.30.1. A specially crafted web page can lead to a use after free.
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 AudioSourceProviderGStreamer notifies its client (MediaElementAudioSourceNode) without checking if the client is still alive, leading to a use-after-free.
Impact
A malicious web page could exploit this use-after-free to achieve remote code execution, potentially with heap grooming.
What the attacker needed
Victim visits a malicious web page; WebKitGTK 2.30.1
How it was found
- Create an OfflineAudioContext and set its onstatechange handler.
- Start rendering the OfflineAudioContext.
- In the statechange handler, load an audio element and create a MediaElementAudioSourceNode from it.
- Set an interval to repeatedly close the AudioContext.
- The repeated close frees the MediaElementAudioSourceNode, and a later notification 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 keeps using it, like deleting a file and then opening it. Here, a web audio object is freed but still gets a message, so an attacker might control what happens next. This could let them run harmful 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.