101 Chrome Exploitation — Part 2: Common Browser Vulnerability Patterns
The previous article covered Chrome's multi-process architecture, how the rendering pipeline works, V8's compilation tiers, and the GPU process. That's what a browser is. Now we look at where it breaks.
Every piece of this codebase parses untrusted input, enforces security boundaries, or manages memory for objects with complex lifecycles. Type confusion bugs show up in JIT compilers when optimization assumptions are wrong. Use-after-free appears in DOM code when object lifetimes get mishandled. IPC validation gaps let compromised renderers reach the browser process. Race conditions happen when threads share state without proper synchronization. In this article, we will cover most bug patterns and understand where and how bugs originate in this type of codebase.
Table of contents
- Common Browser Vulnerability Patterns
- — V8 JavaScript Engine Vulnerability Patterns
- — V8 Compiler Evolution and Historical Context
- — V8 Compilation Tiers in Detail
- — V8 Vulnerability Surface Overview
- — V8 Bug Evolution: Three Phases
- — Type Confusion Patterns
- — Bounds Check Elimination Bugs
- — Integer Overflow and Arithmetic Bugs
- — WebAssembly Attack Surface
- — Deep Dive: CVE-2025-0291
- — V8 Debugging and Analysis Tools
- — V8 Practical Exercises
- Blink Rendering Engine Vulnerability Patterns
- — Blink Vulnerability Surface Overview
- — Oilpan Garbage Collector
- — Use-After-Free Patterns
- — Parser Vulnerability Patterns
- — IDL Binding Vulnerabilities
- — Style and Layout Bugs
- — Blink Practical Exercises
- GPU Process Vulnerability Patterns
- — GPU Vulnerability Surface Overview
- — In-the-Wild: GPU Driver Escapes (2025)
- — Command Buffer Validation Bugs
- — Shader Compilation Vulnerabilities
- Mojo IPC Vulnerability Patterns
- — Mojo as Attack Surface
- — Common Mojo Vulnerability Patterns
- — Race Condition Patterns
- Concurrency in Chrome and V8
- — Chrome's Sequence Model
- — Thread Annotations
- — V8 Isolate Model
- — V8 Safepoints
- — Memory Ordering and Atomics
- — Concurrent Garbage Collection
- — Background Compilation
- Conclusion
- References
V8 JavaScript Engine Vulnerability Patterns
V8 has approximately 2.5 million lines of C/C++ that are responsible for everything from parsing JavaScript to executing multiple tiers of JIT compilation, garbage collection, and WebAssembly. The