GHSL-2020-053: Use After Free in Chrome WebAudio
The fix for earlier use-after-free issues in Chrome's WebAudio was incomplete, leaving a use-after-poison condition. An attacker could trigger a callback after the BaseAudioContext was garbage collected but before destruction, causing a use-after-poison in the renderer.
Incomplete fix of the vulnerabilities reported in GHSL-2020-035 and GHSL-2020-038
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 BaseAudioContext only clears its references from audio handlers when destroyed, not when garbage collected, so handlers can still access it after GC.
Impact
Use-after-free in renderer.
What the attacker needed
Victim visits a malicious webpage
The fix
The issue was fixed in Chrome 80.0.3987.162, and the report suggests adding a prefinalizer to BaseAudioContext to clean up handlers upon garbage collection.
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 (UaF) happens when a program uses memory after it has been freed, which can lead to crashes or code execution. Here, a previous fix stopped one type of UaF but left a related issue: the object could still be used after being garbage collected (marked for cleanup) but before actual destruction, causing a use-after-poison (UaP) that an attacker could trigger via crafted web audio operations.
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.