Google Chrome AudioDelayDSPKernel::ProcessKRate heap-based buffer overflow vulnerability
A heap-based buffer overflow in Google Chrome's Web Audio processing occurs when an AudioParam's automation rate is changed from a-rate to k-rate during audio processing. An attacker could craft a malicious web page that triggers this overflow, potentially leading to remote code execution.
Originally disclosed on Cisco Talos
An exploitable heap-based buffer overflow vulnerability exists in the Google Chromium browser affecting at least versions 89.0.4383.0 64-bit and 90.0.4390.0 64-bit. A specially crafted HTML web page can cause a heap-based Buffer Overflow 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 code does not check whether the read pointer has passed the end of the buffer, leading to a negative remainder that is cast to a huge unsigned size for memcpy.
Impact
Proper heap grooming could give an attacker full control of the heap overflow, potentially allowing arbitrary code execution.
What the attacker needed
Victim visits malicious web page; Chrome version 89 or 90
How it was found
- Create an audio context and several audio nodes, including a DelayNode and an IIRFilterNode.
- Connect the IIRFilterNode to the delayTime AudioParam of the DelayNode.
- In a ScriptProcessorNode's oncomplete event handler, change the automationRate of the delayTime to 'k-rate'.
- The browser processes audio and triggers the buffer overflow in AudioDelayDSPKernel::ProcessKRate.
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 bug is in how Chrome handles audio. When a web page changes a setting for an audio node while the audio is still being processed, the browser gets confused about the size of a memory buffer. This can cause it to copy too much data into a small space, crashing the browser and possibly letting an attacker run their own code.
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.