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

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.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

A type confusion in VisitFindNonDefaultConstructorOrConstruct can be exploited by an attacker to gain code execution in Chrome’s renderer.

m-y-mo, on GitHub Security Lab

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.

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

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.