Writing Memory Safe JIT Compilers
medium.com·10h·
Discuss: Hacker News

How to kill off a top source of browser exploits

10 min readJun 6, 2024

Press enter or click to view image in full size

Last month the V8 team published an excellent blog post on what they call the V8 Sandbox. This isn’t a sandbox for your JavaScript code — it’s intended to mitigate browser exploits caused by bugs in the JIT compiler itself. That’s important work because they report that most Chrome exploits start with a V8 memory safety bug.

V8 is written in C++, so it may seem like these are the sort of bugs you’d expect from working in a memory-unsafe language. Unfortunately the situation is more complex. Why? The team explain:

There is a catch: V8 vulnerabilities are rarely “classic” memory corruption bugs (use-after-frees, out-of-bo…

Similar Posts

Loading similar posts...