Use after free in V8 (CVE-2025-0995)
A use-after-free in V8's Wasm code management allows a WasmCode object to be resurrected and then freed prematurely, leaving a dangling pointer in the lookup cache. An attacker could exploit this to corrupt heap metadata and potentially achieve remote code execution.
- Fix shipped in 20 days
WasmCode are ref-counted objects which represent a corresponding JIT allocation containing Wasm code. These objects are not freed immediately when their reference count reaches zero - instead they are added to a list of "potentially dead code" (WasmEngine::potentially_dead_code_). Once enough "potentially dead code" has accumulated, the Wasm code GC kicks in - its responsibility is to check whether code is truly dead (i.e. not in use by any isolate), and any such code is moved to the WasmEngine::dead_code_ list, before at last being freed.
This transition from the potentially_dead_code_ set to the dead_code_ set has one noteworthy edge case: if the reference count of the WasmCode object has increased since the code object was initially declared "potentially dead", the object is still moved to the dead_code_ set as usual, however it is not freed afterwards. Instead, the next time the reference count drops to zero, the WasmCode object is instead freed immediately, bypassing the Wasm code GC in the process. Going of comments in the related source code, it seems that this mechanism is intentional, and is meant to deal with temporary Wasm code references held by other threads as part of e.g. walking the stack.
However, this behavior can be abused if a WasmCode instance were to be "resurrected", as in made accessible to regular JS code again. In practice this can occur through the WasmImportWrapperCache: it only removes cache entries for import wrappers once these wrappers are actually freed, not once their reference count initially reaches zero. This allows import wrapper tierups / other cache lookups to "resurrect" a wrapper which is currently in the potentially_dead_code_ set. The consequences of this resurrection are severe: the next time the wrapper's reference count drops to zero (by e.g. removing it from all dispatch tables), it (and its corresponding JIT allocation) is immediately freed, even if the wrapper's code is currently live and part of the stack.
Exploiting this issue is not as trivial as simply spraying new JIT code to replace the freed wrapper's code, since WasmCodeAllocator instances never reuse old freed allocations for new allocation requests. However, the premature free of the WasmCode object also messes up the invariants of the per-isolate Wasm code lookup cache, which assumes that code may only be freed as part of a Wasm code GC or a NativeModule being freed. Since neither applies in this case, the lookup cache is never cleared, which results in it still containing a dangling pointer to the freed WasmCode instance. An attacker can then spray the heap with new WasmCode instances to take control over the metadata of the dangling wrapper's stack frame, which allows them to e.g. prevent the GC from picking up references stored in said stack frame, which in return leads to dangling heap objects which can be used by an attacker to take full control over the heap. Additionally, it is also feasible that a more sophisticated spray could allow an attacker to take control over several critical pointers / metadata fields stored in WasmCode instances, which could feasibly allow them to escape the sandbox.
See attached the following two files:
poc.js: a simple POC for this issue, triggering a DCHECK in theWasmCodeLookupCacheas a result of the danglingWasmCodepointer still being present in the cache.exploit.js: a fully developed RCE exploit using this issue. Note that this doesn't use the bug described here to escape the sandbox; instead, for the sake of speeding up this report, it reuses the sandbox escape I've reported in issue 384186547. This issue has already been fixed, however the fix has not been shipped as part M132 yet.- Note that this exploit chain requires access to SharedArrayBuffers, which requires that the HTTP server hosting the exploit sets the correct HTTP headers
- A hosted version of this exploit featuring a WebSocket-based logging harness is also available at
https://cytc.popax21.dev/d34d09ffb752e30529a8cd3e341ea592c9a87a9ff1885ee5889873562bbbcc28 - I have confirmed that this exploit chain can be used to obtain RCE targeting both Google Chrome 132.0.6834.83 as well as Chromium 131.0.6778.264 (note that targeting M131 requires swapping out a constant in the exploit code).
There are two possible ways I am aware of regarding how this issue might be fixed:
- invalidate / remove
WasmImportWrapperCacheentries as soon as the wrapper's reference count reaches zero. This removes this particular avenue of resurrectingWasmCodeinstances, but leaves the door open for a similar issue to reoccur in the future if there ever was another way to obtain a long-lived reference to aWasmCodeinstance in thepotentially_dead_code_set. - rework / remove the underlying mechanism allowing for the resurrection of
WasmCodeinstances. This could for example be done by not adding theWasmCodeinstance to thedead_code_set if the reference count has increased - this effectively fully resurrects the object, making it wait for the next Wasm GC invocation once its refcount drops to zero once more. This has the downside of potentially increasing the lifetime ofWasmCodeobjects whose only remaining references are temporary in nature arbitrarily, so this approach would require proper benchmarking (or additional logic to only fully resurrect objects which have long-lived references) before being implemented.
Reporter Credit: if applicable, please credit my pseudonym Popax21 in regards to this report.
Context
V8, Chrome's JavaScript and WebAssembly engine, compiles WebAssembly modules to native code and manages the resulting JIT allocations through a set of reference-counted objects called WasmCode. Each WasmCode instance represents one JIT allocation holding Wasm code, and the engine tracks its lifetime with a reference count.
The lifetime management is not a simple free-on-zero scheme. When a WasmCode object's reference count reaches zero, the object is not freed straight away. Instead it is placed in a list of "potentially dead code" (WasmEngine::potentially_dead_code_). Once enough potentially dead code has accumulated, the Wasm code GC runs. Its job is to decide whether each entry is truly dead, meaning it is not in use by any isolate. Code that passes that check is moved to the WasmEngine::dead_code_ list and only then freed.
This report describes a use-after-free in that machinery (CVE-2025-0995), reported through the Chrome VRP by Popax21, rated high severity, with a bounty of 55,000 USD and disclosed on 12 February 2025. The affected component is V8.
Setup
The issue was demonstrated with two files attached to the report:
poc.js, a simple proof of concept that triggers a DCHECK in theWasmCodeLookupCachebecause a danglingWasmCodepointer is still present in the cache.exploit.js, a fully developed RCE exploit built on the same issue.
The exploit chain requires access to SharedArrayBuffers, which in turn requires that the HTTP server hosting the exploit sets the correct HTTP headers. A hosted version of the exploit, with a WebSocket-based logging harness, was made available at:
https://cytc.popax21.dev/[redacted]
The researcher confirmed the chain can obtain RCE against both Google Chrome 132.0.6834.83 and Chromium 131.0.6778.264. Targeting M131 requires swapping out a constant in the exploit code.
The sandbox escape used by exploit.js is not the bug described here. To speed up the report, it reuses the sandbox escape from issue 384186547. That issue had already been fixed, but the fix had not yet shipped as part of M132.
Finding it
The starting point is an edge case in the transition from potentially_dead_code_ to dead_code_. If the reference count of a WasmCode object has increased since the object was first declared potentially dead, the object is still moved to the dead_code_ set as usual, but it is not freed afterwards. Instead, the next time its reference count drops to zero, the WasmCode object is freed immediately, bypassing the Wasm code GC entirely.
Comments in the related source code suggest this mechanism is intentional. It is meant to handle temporary Wasm code references held by other threads, for example while walking the stack.
The problem is what happens if a WasmCode instance is "resurrected", that is, made accessible to regular JS code again. In practice this can happen through the WasmImportWrapperCache. That cache only removes entries for import wrappers once the wrappers are actually freed, not when their reference count first reaches zero. As a result, import wrapper tierups and other cache lookups can resurrect a wrapper that currently sits in the potentially_dead_code_ set.
The consequences of that resurrection are severe. The next time the wrapper's reference count drops to zero, for example by removing it from all dispatch tables, the wrapper and its corresponding JIT allocation are freed immediately, even if the wrapper's code is currently live and part of the stack.
Exploitation
Step 1: resurrect a wrapper from the import wrapper cache
Because WasmImportWrapperCache keeps its entries until the wrapper is actually freed, a wrapper whose reference count has already hit zero can still be looked up. A tierup or another cache lookup returns the wrapper, raising its reference count again while it is still in potentially_dead_code_. The object is now reachable from JS-side machinery again.
Step 2: drop the reference count back to zero
When the resurrected wrapper's reference count returns to zero, for example by removing it from all dispatch tables, the special edge case applies: the object is freed immediately rather than waiting for the Wasm code GC. The JIT allocation backing it is freed at the same time, even though the wrapper's code may still be live and present on the stack.
Step 3: work around the allocator
Simply spraying new JIT code to replace the freed wrapper's code does not work, because WasmCodeAllocator instances never reuse old freed allocations for new allocation requests. The exploit therefore does not rely on reclaiming the code allocation itself.
Step 4: abuse the stale lookup cache entry
The premature free also breaks the invariants of the per-isolate Wasm code lookup cache. That cache assumes code can only be freed as part of a Wasm code GC or when a NativeModule is freed. Neither applies here, so the lookup cache is never cleared and keeps a dangling pointer to the freed WasmCode instance.
The attacker then sprays the heap with new WasmCode instances to take control over the metadata of the dangling wrapper's stack frame. This gives control over the metadata of the dangling wrapper's stack frame. Among other things, this can prevent the GC from picking up references stored in that stack frame, which leaves dangling heap objects behind. Those dangling objects can then be used to take full control over the heap.
Step 5: from heap control to sandbox escape
The researcher notes that a more sophisticated spray could plausibly give an attacker control over several critical pointers and metadata fields stored in WasmCode instances, which could feasibly allow escaping the sandbox. The delivered exploit.js does not take that route: it chains the bug to the separate sandbox escape from issue 384186547 to reach RCE.
Root cause
Two design decisions combine into the bug:
- The
potentially_dead_code_todead_code_transition frees a resurrected object immediately on the next zero reference count, bypassing the Wasm code GC that would otherwise verify the code is not in use by any isolate. WasmImportWrapperCacheretains entries until wrappers are actually freed, not when their reference count first reaches zero, which allows a wrapper inpotentially_dead_code_to be resurrected through ordinary cache lookups.
The per-isolate Wasm code lookup cache assumes frees only happen through a Wasm code GC or a NativeModule free. Since neither occurs, the cache is never invalidated and keeps a dangling pointer, which is what turns the premature free into an exploitable use-after-free. The immediate-free behaviour appears intentional, based on the source comments, and it bypasses the Wasm code GC.
Impact
The issue is a use-after-free of a WasmCode object and its JIT allocation. With heap spraying of WasmCode instances, the attacker can control the metadata of a dangling stack frame, suppress GC discovery of references and obtain dangling heap objects that allow full heap control. A more sophisticated spray could plausibly reach critical pointers and metadata fields, with a feasible path to sandbox escape. The demonstrated chain achieves RCE on Google Chrome 132.0.6834.83 and Chromium 131.0.6778.264, with the caveat that the sandbox escape portion comes from a separate, already-fixed issue whose fix had not shipped in M132, and that the chain needs SharedArrayBuffers, which requires the hosting server to send the correct HTTP headers.
Fix
The report proposes two approaches:
- Invalidate or remove
WasmImportWrapperCacheentries as soon as the wrapper's reference count reaches zero. This closes this particular resurrection avenue, but leaves room for a similar issue if another way to hold a long-lived reference to aWasmCodeinstance inpotentially_dead_code_ever appears. - Rework or remove the underlying resurrection mechanism. One option is not to add the
WasmCodeinstance todead_code_when the reference count has increased, effectively fully resurrecting the object so it waits for the next Wasm GC invocation once its reference count drops to zero again. The downside is that this could arbitrarily extend the lifetime ofWasmCodeobjects whose only remaining references are temporary, so it would need proper benchmarking, or extra logic to fully resurrect only objects with long-lived references, before being implemented.
Reporter credit: Popax21.
What happened, in plain words
Chrome runs JavaScript and WebAssembly code through a component called V8. When a web page loads a WebAssembly module, V8 turns that module into machine code the processor can run directly. This is called JIT compilation, short for just-in-time compilation: instead of interpreting the code slowly, the engine translates it into native instructions while the page is running.
Every piece of compiled WebAssembly code is wrapped in a small bookkeeping object called WasmCode. Think of it as a luggage tag attached to a suitcase: the tag is not the suitcase, but it records where the suitcase is and who is still using it. V8 keeps track of how many parts of the program are still using each WasmCode object with a reference count, a simple number that goes up when someone starts using the object and down when they stop. When the number reaches zero, nobody is supposed to be using it any more.
This report, filed through Google's Chrome Vulnerability Reward Program (VRP) by the researcher Popax21, describes a use-after-free bug in that bookkeeping. A use-after-free happens when a program frees a piece of memory and then keeps using it as if it were still valid. It is one of the most serious kinds of memory bug, because an attacker can sometimes arrange for new, attacker-controlled data to land in the freed memory and then influence what the program does next.
The bug was rated high severity, paid a bounty of 55,000 USD, and was disclosed on 12 February 2025 under the identifier CVE-2025-0995. The affected component is V8.
Context
What V8 and WebAssembly are
V8 is the engine inside Chrome that reads JavaScript and WebAssembly and executes it. WebAssembly, often shortened to Wasm, is a compact binary format for code that browsers can run at near-native speed. It is commonly used for games, video editors and other heavy web applications.
When a Wasm module is loaded, V8 compiles it into native machine code. The memory holding that compiled code is called a JIT allocation, because it was produced by the just-in-time compiler. Each such allocation is represented by a WasmCode object, and V8 tracks its lifetime with a reference count.
Why freeing is not immediate
If V8 freed a WasmCode object the instant its reference count hit zero, it could easily make a mistake. Another thread might still be in the middle of reading that code, for example while walking the stack, which means stepping through the list of function calls currently in progress. Freeing memory that another thread is still reading would cause a crash or worse.
So V8 uses a two-stage process:
- When the reference count reaches zero, the object is not freed. It is placed in a list of "potentially dead code", internally called
WasmEngine::potentially_dead_code_. - Once enough potentially dead code has piled up, a garbage collector for Wasm code runs. A garbage collector, or GC, is a part of the engine that periodically looks for memory nobody is using any more and reclaims it. This particular GC checks whether each entry is truly dead, meaning no isolate is using it. An isolate is an isolated instance of the V8 engine, roughly one per tab or worker. Code that passes the check is moved to a second list,
WasmEngine::dead_code_, and only then is the memory actually freed.
This report describes a use-after-free in that machinery.
Setup
The issue was demonstrated with two files attached to the report:
poc.js, a simple proof of concept. A proof of concept, or PoC, is a small program that demonstrates a bug exists without necessarily exploiting it. This one triggers a DCHECK in theWasmCodeLookupCachebecause a danglingWasmCodepointer is still present in the cache. A DCHECK is a debug-only assertion: a check that the engine performs in special debug builds to catch internal inconsistencies. A dangling pointer is a pointer that still refers to memory that has already been freed.exploit.js, a fully developed RCE exploit built on the same issue. RCE stands for remote code execution: the ability for an attacker to make the target machine run code of the attacker's choosing.
The exploit chain requires access to SharedArrayBuffers. A SharedArrayBuffer is a block of memory that several parts of a web page, including background workers, can read and write at the same time. Browsers restrict it for security reasons, and a page can only use it if the HTTP server hosting the page sends the correct HTTP headers. HTTP headers are small pieces of metadata that a web server sends alongside a page, telling the browser things like the content type or security settings.
A hosted version of the exploit, with a WebSocket-based logging harness, was made available at:
https://cytc.popax21.dev/[redacted]
This is a URL, an address on the web. A WebSocket is a two-way connection between a browser and a server that stays open, which makes it convenient for streaming log messages back to the researcher while the exploit runs. A logging harness is simply the tooling that collects those messages.
The researcher confirmed the chain can obtain RCE against both Google Chrome 132.0.6834.83 and Chromium 131.0.6778.264. Chromium is the open-source project that Chrome is built from. Targeting M131, short for milestone 131, requires swapping out a constant in the exploit code. A constant is a fixed value written into the program, such as a memory offset that differs between browser versions.
The sandbox escape used by exploit.js is not the bug described here. A sandbox is a security boundary that keeps a compromised part of the browser, such as the renderer that processes a web page, from reaching the rest of the system. A sandbox escape is a separate bug that breaks out of that boundary. To speed up the report, the researcher reused the sandbox escape from issue 384186547. That issue had already been fixed, but the fix had not yet shipped as part of M132.
Finding it
The edge case
The starting point is an edge case in the transition from potentially_dead_code_ to dead_code_. If the reference count of a WasmCode object has increased since the object was first declared potentially dead, the object is still moved to the dead_code_ set as usual, but it is not freed afterwards. Instead, the next time its reference count drops to zero, the WasmCode object is freed immediately, bypassing the Wasm code GC entirely.
In everyday terms: imagine a library that puts returned books on a trolley for a librarian to check before reshelving them. Normally the librarian checks each book is not reserved by anyone, then reshelves it. The edge case is like a book that gets reserved while on the trolley: it still goes through the librarian's check, but the next time it is returned it is put straight back on the shelf without any check at all.
Comments in the related source code suggest this mechanism is intentional. It is meant to handle temporary Wasm code references held by other threads, for example while walking the stack.
Resurrection
The problem is what happens if a WasmCode instance is "resurrected", that is, made accessible to regular JS code again. In practice this can happen through the WasmImportWrapperCache. A cache is a store of recently used items kept for quick reuse. An import wrapper is a small piece of generated code that lets Wasm call a JavaScript function, or the other way round. The WasmImportWrapperCache keeps these wrappers so they do not have to be regenerated every time.
That cache only removes entries for import wrappers once the wrappers are actually freed, not when their reference count first reaches zero. As a result, import wrapper tierups and other cache lookups can resurrect a wrapper that currently sits in the potentially_dead_code_ set. A tierup is the engine's decision to promote code to a faster, more optimised tier of compilation.
The consequences of that resurrection are severe. The next time the wrapper's reference count drops to zero, for example by removing it from all dispatch tables, the wrapper and its corresponding JIT allocation are freed immediately, even if the wrapper's code is currently live and part of the stack. A dispatch table is a lookup table the engine uses to find the right piece of code to call.
Exploitation
Step 1: resurrect a wrapper from the import wrapper cache
Because WasmImportWrapperCache keeps its entries until the wrapper is actually freed, a wrapper whose reference count has already hit zero can still be looked up. A tierup or another cache lookup returns the wrapper, raising its reference count again while it is still in potentially_dead_code_. The object is now reachable from JS-side machinery again.
Why this step matters: the attacker needs the object to be reachable again so that it can later be freed through the special edge case. Without the resurrection, the object would simply wait for the GC like any other dead code.
Step 2: drop the reference count back to zero
When the resurrected wrapper's reference count returns to zero, for example by removing it from all dispatch tables, the special edge case applies: the object is freed immediately rather than waiting for the Wasm code GC. The JIT allocation backing it is freed at the same time, even though the wrapper's code may still be live and present on the stack.
This is the moment the use-after-free is created. The memory is released while something, namely the call stack, still refers to it.
Step 3: work around the allocator
Simply spraying new JIT code to replace the freed wrapper's code does not work, because WasmCodeAllocator instances never reuse old freed allocations for new allocation requests. Heap spraying is a technique where an attacker fills memory with many copies of chosen data, hoping one lands in a useful place. Here the allocator, the component that hands out memory for new code, refuses to hand out the same address again, so the attacker cannot simply overwrite the freed code with new code.
The exploit therefore does not rely on reclaiming the code allocation itself. Instead it targets something else that still points at the freed object.
Step 4: abuse the stale lookup cache entry
The premature free also breaks the invariants of the per-isolate Wasm code lookup cache. An invariant is an assumption the code relies on being always true. That cache assumes code can only be freed as part of a Wasm code GC or when a NativeModule is freed. A NativeModule is V8's internal representation of a loaded Wasm module. Neither applies here, so the lookup cache is never cleared and keeps a dangling pointer to the freed WasmCode instance.
The attacker then sprays the heap with new WasmCode instances to take control over the metadata of the dangling wrapper's stack frame. This gives control over the metadata of the dangling wrapper's stack frame. Metadata here means the bookkeeping fields stored alongside the code, such as where the code lives and what it refers to. Among other things, this can prevent the GC from picking up references stored in that stack frame, which leaves dangling heap objects behind. Those dangling objects can then be used to take full control over the heap.
In plain terms: the engine's records still point at a freed object. The attacker fills memory with lookalike objects until one occupies that exact spot. Now the engine's records describe an object the attacker shaped, and the attacker can use that to confuse the garbage collector into leaving other objects behind that should have been cleaned up.
Step 5: from heap control to sandbox escape
The researcher notes that a more sophisticated spray could plausibly give an attacker control over several critical pointers and metadata fields stored in WasmCode instances, which could feasibly allow escaping the sandbox. The delivered exploit.js does not take that route: it chains the bug to the separate sandbox escape from issue 384186547 to reach RCE.
Root cause
Two design decisions combine into the bug:
- The
potentially_dead_code_todead_code_transition frees a resurrected object immediately on the next zero reference count, bypassing the Wasm code GC that would otherwise verify the code is not in use by any isolate. WasmImportWrapperCacheretains entries until wrappers are actually freed, not when their reference count first reaches zero, which allows a wrapper inpotentially_dead_code_to be resurrected through ordinary cache lookups.
The per-isolate Wasm code lookup cache assumes frees only happen through a Wasm code GC or a NativeModule free. Since neither occurs, the cache is never invalidated and keeps a dangling pointer, which is what turns the premature free into an exploitable use-after-free. The immediate-free behaviour appears intentional, based on the source comments, and it bypasses the Wasm code GC.
Impact
The issue is a use-after-free of a WasmCode object and its JIT allocation. The renderer is the part of the browser that processes web pages. With heap spraying of WasmCode instances, the attacker can control the metadata of a dangling stack frame, suppress GC discovery of references and obtain dangling heap objects that allow full heap control. A more sophisticated spray could plausibly reach critical pointers and metadata fields, with a feasible path to sandbox escape. The demonstrated chain achieves RCE on Google Chrome 132.0.6834.83 and Chromium 131.0.6778.264, with the caveat that the sandbox escape portion comes from a separate, already-fixed issue whose fix had not shipped in M132, and that the chain needs SharedArrayBuffers, which requires the hosting server to send the correct HTTP headers.
Fix
The report proposes two approaches:
- Invalidate or remove
WasmImportWrapperCacheentries as soon as the wrapper's reference count reaches zero. This closes this particular resurrection avenue, but leaves room for a similar issue if another way to hold a long-lived reference to aWasmCodeinstance inpotentially_dead_code_ever appears. - Rework or remove the underlying resurrection mechanism. One option is not to add the
WasmCodeinstance todead_code_when the reference count has increased, effectively fully resurrecting the object so it waits for the next Wasm GC invocation once its reference count drops to zero again. The downside is that this could arbitrarily extend the lifetime ofWasmCodeobjects whose only remaining references are temporary, so it would need proper benchmarking, or extra logic to fully resurrect only objects with long-lived references, before being implemented. Benchmarking means measuring performance to make sure a change does not slow things down.
Variants to test
Reporter credit: Popax21.
Glossary
- API: a defined way for one piece of software to ask another to do something, like a menu of allowed requests.
- Bounty: a payment made by a company to a researcher who reports a security bug.
- Cache: a store of recently used items kept for quick reuse instead of recomputing them.
- Chromium: the open-source browser project that Google Chrome is built from.
- Constant: a fixed value written into a program, such as a memory offset that differs between versions.
- CVE: a public identifier for a known security vulnerability, short for Common Vulnerabilities and Exposures.
- Dangling pointer: a pointer that still refers to memory that has already been freed.
- DCHECK: a debug-only assertion in the engine that catches internal inconsistencies in special debug builds.
- Dead code list (
WasmEngine::dead_code_): the second list of Wasm code objects, holding code the GC has confirmed is unused and which is about to be freed. - Dispatch table: a lookup table the engine uses to find the right piece of code to call.
- Garbage collector (GC): a part of the engine that periodically finds memory nobody is using and reclaims it.
- Heap: the general pool of memory a program uses for objects it creates at runtime.
- Heap spraying: filling memory with many copies of chosen data, hoping one lands in a useful place.
- HTTP headers: small pieces of metadata a web server sends alongside a page, such as content type or security settings.
- Import wrapper: a small piece of generated code that lets Wasm call a JavaScript function, or the other way round.
- Invariant: an assumption the code relies on being always true.
- Isolate: an isolated instance of the V8 engine, roughly one per tab or worker.
- JIT (just-in-time compilation): translating code into native machine instructions while the program is running, rather than ahead of time.
- JIT allocation: a block of memory holding code produced by the JIT compiler.
- Metadata: bookkeeping fields stored alongside code, such as where it lives and what it refers to.
- NativeModule: V8's internal representation of a loaded Wasm module.
- Potentially dead code (
WasmEngine::potentially_dead_code_): the first list of Wasm code objects, holding code whose reference count has hit zero but which has not yet been checked by the GC. - Proof of concept (PoC): a small program that demonstrates a bug exists without necessarily exploiting it.
- RCE (remote code execution): the ability for an attacker to make the target machine run code of the attacker's choosing.
- Reference count: a number that goes up when someone starts using an object and down when they stop, used to decide when it can be freed.
- Renderer: the part of the browser that processes web pages.
- Sandbox: a security boundary that keeps a compromised part of the browser from reaching the rest of the system.
- Sandbox escape: a separate bug that breaks out of the sandbox boundary.
- SharedArrayBuffer: a block of memory several parts of a web page, including background workers, can read and write at the same time.
- Tierup: the engine's decision to promote code to a faster, more optimised tier of compilation.
- Use-after-free: a bug where a program frees a piece of memory and then keeps using it as if it were still valid.
- V8: the engine inside Chrome that reads and executes JavaScript and WebAssembly.
- VRP (Vulnerability Reward Program): Google's programme that pays researchers for reporting security bugs in Chrome.
- Wasm (WebAssembly): a compact binary format for code that browsers can run at near-native speed.
WasmCode: V8's bookkeeping object representing one JIT allocation holding Wasm code.WasmCodeAllocator: the component that hands out memory for new Wasm code allocations.WasmCodeLookupCache: a per-isolate cache that maps code toWasmCodeobjects for quick lookup.WasmImportWrapperCache: a cache that keeps import wrappers so they do not have to be regenerated every time.- WebSocket: a two-way connection between a browser and a server that stays open, convenient for streaming log messages.