GHSL-2023-180: Type confusion in Chrome's renderer - CVE-2023-4069
A type confusion in Chrome's Maglev compiler allowed an attacker to gain code execution in the renderer. The flaw occurred when constructing objects with a constant new_target, leading to inconsistent object layout and map.
A type confusion in VisitFindNonDefaultConstructorOrConstruct can be exploited by an attacker to gain code execution in Chrome’s renderer.
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 Maglev compiler's VisitFindNonDefaultConstructorOrConstruct did not verify that the constructor of new_target's initial_map matched the target function, causing an object with an inconsistent map and layout.
Impact
Could be exploited to cause RCE in Chrome renderer.
What the attacker needed
Chrome version 115.0.5790.98; JavaScript execution in renderer
The fix
The issue was fixed in Chrome version 115.0.5790.170/.171.
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.
Chrome uses a compiler called Maglev to speed up JavaScript. A mistake in how it created objects meant that sometimes an object was built with the wrong internal structure, so the program could be tricked into treating one kind of data as another. This could let an attacker run their own code inside Chrome.
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.