Skip to content
Memory corruption Advisory Advanced CVE-2023-0698

Google Chrome WebRTC RTCStatsCollector out of bounds memory access vulnerability

A caching flaw in Chrome's WebRTC stats collector meant a second getStats() call could look up certificate stats for a transport name that was never cached, leaving an invalid iterator that was then dereferenced. A malicious page could trigger an out-of-bounds read that the report says can lead to type confusion and further memory corruption.

Jaewon Min Follow

Originally disclosed on Cisco Talos

High 8.3 View original

An out-of-bounds memory access vulnerability exists in stats reporting functionality of the WebRTC implementation in Google Chrome 109.0.5414.74 and 108.0.5359.124. A specially crafted malicious web page can trigger an out-of-bounds access which can lead to type confusion and further memory corruption.

Jaewon Min, on Cisco Talos

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

The certificate stats cache is reused across getStats() calls without being invalidated when a new transport name appears, and the code only has a debug-only check that the lookup succeeded before dereferencing the iterator.

Impact

A victim visiting a malicious page could trigger an out-of-bounds read that may lead to type confusion and further memory corruption, though the report only demonstrates a crash under AddressSanitizer.

What the attacker needed

Victim navigates to a malicious web page; browser supports WebRTC PeerConnection

How it was found

  1. Open a malicious web page that creates a PeerConnection and calls getStats(), caching certificate stats for the existing transport name only.
  2. Before the cache is cleared, cause a second getStats() call after an additional transport name (the sctp transport) becomes available.
  3. The second call includes the new transport name in the transport stats map but finds no matching entry in the cached certificate stats.
  4. The failed lookup returns the end iterator, which is then dereferenced, causing an out-of-bounds read and crash.

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.

WebRTC lets web pages do real-time audio and video calls, and getStats() asks the browser for connection statistics. Chrome kept a saved copy of some certificate information but did not refresh it when a new connection part appeared, so it later used a lookup result that pointed at nothing. Reading through that empty result crashed the browser's memory handling, which a crafted page could abuse.

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 Jaewon Min

View all

7 more disclosed reports, best first.

More from Cisco Talos

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.