Google Chrome WebRTC RTPSenderVideoFrameTransformerDelegate memory corruption vulnerability
A heap buffer overflow exists in Chrome's WebRTC implementation when a malicious web page manipulates media streams, causing a crash and potentially remote code execution. The victim must visit a malicious website to trigger the vulnerability.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the WebRTC functionality of Google Chrome 92.0.4515.159 (Stable) and 95.0.4623.0 (Canary). A specially-crafted web page can trigger this vulnerability, which can cause a heap buffer overflow and result in 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 a use-after-free or race condition in WebRTC's frame transformation delegate where stream data is read and written concurrently, leading to a heap buffer overflow.
Impact
This could lead to remote code execution, though the CVSS score indicates high attack complexity and user interaction is required.
What the attacker needed
Victim visits a malicious website; user may need to allow webcam access
The fix
The vendor patched the vulnerability.
How it was found
- Create a ReadableStream and get its reader to lock the stream.
- Inside a Promise, use a WritableStream writer to write data back into the stream being read.
- Exchange ICE candidates between two local peer connections using a helper function.
- Read a message from the sender and write it back, looping back to step 2.
- Observe a crash in the SendVideo function due to heap buffer overflow.
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 video calling feature (WebRTC). A malicious website can confuse the browser's handling of video data, causing it to read and write memory incorrectly, which can crash the browser and possibly let 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.