Skip to content
Memory corruption Advisory Advanced CVE-2026-11649

Use after free in V8 (CVE-2026-11649)

A use-after-free exists in V8's deep serialization because SerializeSet ignores an error from a nested serialization, leaving a dangling pointer in the duplicate tracker. An attacker could trigger this via CDP to potentially achieve arbitrary memory corruption and remote code execution in the renderer process.

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 potential Use-After-Free (UAF) exists in the V8 inspector's deep serialization when V8DeepSerializer::SerializeSet ignores errors. This leaves raw, dangling pointers in the duplicate tracker, which can be exploited for arbitrary memory corruption and remote code execution if the freed memory is reclaimed.

Affected files:

  • v8/src/inspector/v8-deep-serializer.cc
  • v8/src/inspector/v8-serialization-duplicate-tracker.cc
  • v8/src/inspector/value-mirror.cc
  • third_party/blink/renderer/core/inspector/thread_debugger_common_impl.cc

Estimated timestamp from git blame: 2023-06-19

Potential Consequence: Exploitation yields a highly controllable Use-After-Free (UAF) write primitive, potentially leading to arbitrary memory corruption and Remote Code Execution (RCE) in the renderer process.

Technical Summary: Initial logic and parameters are validated: an attacker can trigger deep serialization via CDP (Runtime.evaluate) on a crafted structure containing a Set and a custom JS getter. The V8SerializationDuplicateTracker accurately registers object references using v8::External mappings (circumventing MiraclePtr protections).

Standard processing applies during serialization, where a deeply nested DOM tree legitimately exhausts maxDepth, forcing a Response::ServerError and the destruction of the local ListValue containing previously processed Set elements.

The vulnerability triggers when V8DeepSerializer::SerializeSet unconditionally ignores this error state and returns Response::Success(). This bypass allows the outer serialization routine to immediately invoke the attacker-controlled JS getter. The getter performs targeted heap reclamation over the freed DictionaryValue memory and returns the original Set object. The V8SerializationDuplicateTracker blindly fetches the now-dangling raw pointer, executing setInteger operations directly on attacker-controlled std::unordered_map structures, finalizing the UAF write.

Potential Steps to Reproduce: (Note: These are potential steps as our tooling agent cannot currently execute code).

  1. Construct an Array where index 0 is a Set containing a target object and a deeply nested DOM tree.
  2. Assign a custom JS getter to index 1 of the Array.
  3. Trigger deep serialization via CDP (Runtime.evaluate with serializationOptions: {serialization: "deep"}).
  4. The deeply nested DOM tree causes an intentional serialization failure, freeing the target object's DictionaryValue.
  5. SerializeSet ignores the error, advancing to index 1 and invoking the JS getter.
  6. The JS getter reclaims the freed memory with payload data and returns the target object, forcing a UAF write via the duplicate tracker.

Suggested Fix: Update V8DeepSerializer::SerializeSet in v8/src/inspector/v8-deep-serializer.cc to explicitly check and return the Response from SerializeArrayValue:

C++
Response response = SerializeArrayValue(value->AsArray(), context, maxDepth, additionalParameters, duplicateTracker, &serializedValue);
if (!response.IsSuccess()) return response;

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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, V8DeepSerializer::SerializeSet ignores the error response from a nested serialization, allowing the outer routine to continue and use a pointer that was freed when the nested serialization failed.

Impact

Exploitation could yield a highly controllable use-after-free write primitive, potentially leading to arbitrary memory corruption and remote code execution in the renderer process.

What the attacker needed

Ability to run JavaScript in the browser; ability to send CDP commands (e.g., via DevTools)

The fix

The fix should update V8DeepSerializer::SerializeSet to check and return the Response from SerializeArrayValue, propagating errors instead of ignoring them.

How it was found

  1. Construct an Array where index 0 is a Set containing a target object and a deeply nested DOM tree.
  2. Assign a custom JS getter to index 1 of the Array.
  3. Trigger deep serialization via CDP (Runtime.evaluate with serializationOptions: {serialization: "deep"}).
  4. The deeply nested DOM tree causes an intentional serialization failure, freeing the target object's DictionaryValue.
  5. SerializeSet ignores the error, advancing to index 1 and invoking the JS getter.
  6. The JS getter reclaims the freed memory with payload data and returns the target object, forcing a UAF write via the duplicate tracker.

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.

A use-after-free happens when a program keeps using memory after it has been freed, like reading a note after the paper has been recycled. Here, a function in the browser's JavaScript engine ignores an error, so it later uses a pointer to memory that was already released. An attacker who can run JavaScript in the browser could try to take control of that freed memory and cause harm.

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 from Google Chrome

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.