(CVE-2024-9370) Google Chrome V8 Maglev Escape Analysis Incorrect Optimization Bug
An incorrect optimisation in V8's Maglev compiler escape analysis lets a crafted HTML page trigger a CHECK failure, which could potentially be exploited for arbitrary code execution in the renderer process.
starlabs.sg
Published on starlabs.sg
When a class constructor is optimized by V8’s Maglev compiler, several aggressive optimizations may be applied. One such optimization is inlined allocation: the this object can be constructed inline via BuildInlinedAllocation.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an incorrect calculation in Maglev's escape analysis, causing the compiler to make a wrong optimisation decision.
Impact
A crafted HTML page could trigger a CHECK failure and potentially be exploited for arbitrary code execution in the renderer process.
What the attacker needed
Victim opens a crafted HTML page; Chrome before the 1 Oct 2024 stable update
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 write-up has not been written yet. The Original tab links to the source.
Chrome runs JavaScript using a component called V8, which includes a compiler named Maglev that tries to make code run faster. A mistake in how Maglev analysed memory use could make the browser crash in a way that might let an attacker run their own code inside the page's process.
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.