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

GHSL-2023-137: Type confusion in Chrome - CVE-2023-3420

The JSStackCheck operator in V8 was incorrectly marked as having no side effects, but it can trigger interrupts that install JIT code and change an object's map. An attacker could exploit this to cause a type confusion and gain code execution in Chrome's renderer.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

A type confusion caused by JSStackCheck 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 JSStackCheck operator was marked as having no side effects (kNoWrite), but it can call into runtime functions that install JIT code and change an object's map, invalidating a CheckMaps assumption.

Impact

Could be exploited to cause remote code execution in the Chrome renderer.

What the attacker needed

Victim visits a malicious web page

The fix

The issue was fixed in Chrome version 114.0.5735.198/199.

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 runs JavaScript using a fast engine called V8. V8 sometimes assumes a value's type won't change during a loop, but a hidden background action could change it, leading to confusion about what type the value is. This confusion can 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.