Use after free in V8 (CVE-2026-11650)
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 32 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A raw C++ pointer to an object's interior member is passed to a function that can trigger a Major Mark-Compact GC. In standard builds where Conservative Stack Scanning is disabled, this raw pointer is not tracked by the GC, leading to a stale pointer write when the object is evacuated.
Affected files:
v8/src/objects/objects-inl.hv8/src/objects/feedback-vector.cc
Estimated timestamp from git blame: 2026-03-23
Summary
In HeapObject::AllocateAndInstallJSDispatchHandle, a raw interior pointer (JSDispatchHandle* location) is used across a potential garbage collection point. If the JSDispatchTable is exhausted, allocating a new handle triggers a Major Mark-Compact GC. In standard Chrome builds, Conservative Stack Scanning (CSS) is disabled by default (v8_enable_direct_handle=false). Because the C++ stack is not scanned, the location pointer is not updated if the host object is evacuated during the GC. Upon returning, the function blindly writes a 4-byte dispatch handle to the stale, evacuated address, leading to memory corruption.
Vulnerability Details
The vulnerability occurs in v8/src/objects/objects-inl.h:
template <typename ObjectType>
JSDispatchHandle HeapObject::AllocateAndInstallJSDispatchHandle(
DirectHandle<ObjectType> host, JSDispatchHandle* location, Isolate* isolate,
uint16_t parameter_count, DirectHandle<Code> code, WriteBarrierMode mode) {
JSDispatchTable::Space* space = isolate->GetJSDispatchTableSpaceFor(location);
// BUG: NewJSDispatchHandle can trigger a Major GC (Mark-Compact)
JSDispatchHandle handle =
isolate->factory()->NewJSDispatchHandle(parameter_count, code, space);
// BUG: If 'host' was evacuated during the GC, 'location' is now a stale pointer
base::AsAtomic32::Release_Store(location, handle);
CONDITIONAL_JS_DISPATCH_HANDLE_WRITE_BARRIER(*host, handle, mode);
return handle;
}
The primary caller is ClosureFeedbackCellArray::New in v8/src/objects/feedback-vector.cc:
DirectHandle<FeedbackCell> cell = isolate->factory()->NewNoClosuresCell();
uint16_t parameter_count =
shared->feedback_metadata()->GetCreateClosureParameterCount(i);
auto initial_code = BUILTIN_CODE(isolate, CompileLazy);
HeapObject::AllocateAndInstallJSDispatchHandle(
cell, &cell->dispatch_handle_, isolate, parameter_count, initial_code);
When &cell->dispatch_handle_ is evaluated, it dereferences the indirect handle cell and calculates the raw memory address of the dispatch_handle_ member within the FeedbackCell object on the Old Space heap. This raw pointer is passed into location.
Inside AllocateAndInstallJSDispatchHandle, the call to NewJSDispatchHandle attempts to allocate a table entry. If the JSDispatchTable is full, it enters a slow path (RetryCustomAllocateOrFail with AllocationType::kOld). This explicitly triggers GarbageCollector::MARK_COMPACTOR (a Major GC).
If the FeedbackCell was located on a highly fragmented page, the Mark-Compact GC will select that page as an evacuation candidate and move the FeedbackCell to a new address. The cell handle is safely updated by the GC. However, because Conservative Stack Scanning is disabled in standard builds, the GC ignores the raw location pointer on the C++ stack.
When NewJSDispatchHandle returns, location still points to the old, freed page. The subsequent Release_Store(location, handle) writes the 4-byte handle index into an evacuated memory location.
Suggested Exploitation Steps
Note: These are potential steps as our tooling agent cannot execute code to provide a working Proof of Concept.
- Exhaust the Dispatch Table: The attacker creates a massive number of unique JS functions to exhaust the
JSDispatchTablecapacity, ensuring the next handle allocation forces a Major GC. - Groom the Heap: The attacker allocates and frees objects to create high fragmentation on a specific
OldSpacepage. This ensures the page will be selected for evacuation. - Trigger Allocation: The attacker triggers
ClosureFeedbackCellArray::New(e.g., via heavily nested evals). - Evacuation & Stale Write: The
FeedbackCellis allocated on the groomed page. The dispatch handle allocation triggers the GC, evacuating the groomed page. The function returns and writes a 4-byteuint32_tinto the newly freed page. - Free List Hijacking: By predicting the heap layout, the attacker ensures the 4-byte write corrupts a
FreeSpacenode's "next" pointer. Subsequent allocations follow the corrupted free list, leading to overlapping objects (type confusion/arbitrary read-write) and arbitrary code execution within the renderer.
Suggested Fix
Do not pass the raw interior pointer across the GC point. Re-derive the location pointer from the host handle after NewJSDispatchHandle has returned.
template <typename ObjectType>
JSDispatchHandle HeapObject::AllocateAndInstallJSDispatchHandle(
DirectHandle<ObjectType> host, size_t offset, Isolate* isolate,
uint16_t parameter_count, DirectHandle<Code> code, WriteBarrierMode mode) {
// ... allocate handle ...
// Recompute the raw pointer AFTER the allocation in case a GC occurred
auto location =
reinterpret_cast<JSDispatchHandle*>(host->field_address(offset));
base::AsAtomic32::Release_Store(location, handle);
All callers (like feedback-vector.cc) should pass the field offset rather than the raw pointer. A field offset overload of this function already exists in objects-inl.h.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity memory corruption bug in V8 (Google Chrome). Chrome VRP made it public on 8 June 2026 as CVE-2026-11650. Fixed in version 149.0.7827.102.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.