Skip to content
Memory corruption Advisory Advanced

GHSL-2020-041: Use After Free in Chrome WebAudio

A race condition in Chrome's WebAudio code allows a use-after-free when the audio thread accesses a list of handlers while the main thread clears it. An attacker could potentially exploit this to cause memory corruption in the renderer.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

Chrome version: master branch build 79956ba, asan build 80.3987.132 Operating System: Ubuntu 18.04

m-y-mo, on GitHub Security Lab

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 a missing lock when accessing rendering_automatic_pull_handlers_ in ProcessAutomaticPullNodes, allowing a race with ClearHandlersToBeDeleted.

Impact

Use-after-free in the renderer, which could lead to memory corruption or code execution.

What the attacker needed

Chrome version vulnerable; Trigger audio processing race

The fix

The issue was fixed in Chrome 80.0.3987.162.

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.

This report describes a bug in Chrome's audio processing. Two parts of the program run at the same time: one reads a list of audio handlers, the other deletes them. If the deletion happens while the reading is still going on, the program uses memory that has already been freed, which can crash or be exploited.

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.

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.