Skip to content
Memory corruption Advisory Advanced CVE-2025-0762

Use after free in DevTools (CVE-2025-0762)

A use-after-free vulnerability exists in Chrome's DevTools session handling, specifically in blink::DevToolsSession::DispatchProtocolCommandImpl. An attacker could potentially exploit this to cause a crash or possibly execute arbitrary code.

Sakana.S Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 42 days

VULNERABILITY DETAILS UAP in blink::DevToolsSession::DispatchProtocolCommandImpl

VERSION Chrome Version: 133.0.6889.0(Developer Build) Operating System: Ubuntu 24.04

REPRODUCTION CASE

  1. put manifest.json/background.js into the extension_path
  2. run the command: ./chrome --user-data-dir=./noexist --no-sandbox --load-extension="extension_path"

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: renderer Crash State: see asan.log file

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Sakana.S

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

This is a Chrome Vulnerability Reward Program report about a use after free in the DevTools component of Chrome. The researcher, credited as Sakana.S, filed it as a renderer crash and it was tracked as CVE-2025-0762. The platform records it as medium severity, with a bounty of 2,000 USD, disclosed on 28 January 2025.

The report identifies the faulting function as blink::DevToolsSession::DispatchProtocolCommandImpl, and describes the issue as a UAP (use after free) there. The testing environment was a developer build of Chrome 133.0.6889.0 running on Ubuntu 24.04.

The reproduction is driven by a browser extension. The researcher places two files, manifest.json and background.js, into a directory referred to as extension_path, then launches Chrome with that extension loaded:

Bash
./chrome --user-data-dir=./noexist --no-sandbox --load-extension="extension_path"

The crash type is recorded as renderer, and the crash state is deferred to an attached asan.log file, which is not reproduced here. The report does not describe the contents of the extension files, the sequence of DevTools protocol commands involved, or the exact object that was freed and then reused.

The report closes with credit information: the researcher asks to be credited as Sakana.S if the bug appears in Chrome release notes. No fix commit, patch description or root cause analysis is included in the text.

Root cause

The report points to a use after free in blink::DevToolsSession::DispatchProtocolCommandImpl. The report does not state the cause beyond naming the function where the use after free occurs. The report itself does not state which object is freed or what frees it.

Impact

The report frames the outcome as a renderer crash. A use after free in a renderer is potentially more than a denial of service, since an attacker who controls the freed allocation can sometimes influence what is placed in the reused memory, but the report makes no claim of exploitability beyond the crash. The trigger is a browser extension loaded at startup.

How this kind of bug works

A use after free happens when memory is released but a pointer to it survives and is dereferenced later. Between the free and the use, the allocator may hand the same block to another object, so the stale pointer now reads or writes attacker-influenced data. In a browser renderer this can corrupt control data and, in the worst case, lead to code execution inside the sandboxed renderer.

Asynchronous code is the usual source. A command handler stores a raw pointer or reference to a session, context or buffer, then yields, for example while waiting on a callback or another thread. Meanwhile the owner is destroyed, because a frame navigated, a context was detached or, as here, an extension tore something down. When the handler resumes it uses the dangling reference. Reference counting and garbage collection reduce the risk but do not remove it when raw pointers cross an asynchronous boundary.

Defences include smart pointers and weak references for anything held across a yield, explicit cancellation of in-flight work when the owner is destroyed, and lifetime annotations that make ownership visible. Memory safety tooling such as AddressSanitizer catches the invalid access during testing, which is why crash reports of this kind usually arrive with an ASan log.

How to test for it

  1. Identify features with asynchronous command dispatch: DevTools protocol handlers, extension messaging, IPC between processes, and anything that registers callbacks against a session or context.
  2. Look for code paths where the owner of a session or context can be destroyed while a command is pending: closing a tab, detaching a debugger, unloading an extension, navigating a frame.
  3. Build a trigger that starts the command and destroys the owner before the command completes. Timing matters, so repeat the action many times and vary the order of teardown and dispatch.
  4. Run against an AddressSanitizer build. A positive result is an ASan report naming a read or write on freed memory, with an allocation and free stack that show the object was released before the use.
  5. Confirm the crash is reproducible and tied to your sequence, not to unrelated instability.

Common false positives are crashes caused by out-of-memory conditions, assertions that fire on invalid input rather than on freed memory, and races that only appear under a debugger. An ASan report that shows the memory was never freed, or was freed after the access, is not a use after free.

How it is fixed

Where a raw pointer is kept, the fix often replaces it with a checked handle that becomes invalid on teardown. Regression tests that replay the teardown sequence under ASan help prevent reintroduction.

Hunting notes

This class of bug tends to hide at the seams between components: debugger and DevTools plumbing, extension APIs, worker and frame lifecycle, and any place where a long-lived session outlives the object it points at. Recon signals include code that stores raw pointers in callbacks, comments about lifetime, and features that expose explicit attach and detach operations.

To get a report accepted, show a minimal, deterministic trigger, include the sanitizer output with allocation and free stacks, and state the affected version and build type. Explain the security consequence honestly: a reliable crash in a renderer is a valid finding, and any stronger claim needs evidence.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

This is a report filed through the Chrome Vulnerability Reward Program, a scheme where Google pays people who find and report security bugs in Chrome. The researcher, credited as Sakana.S, found a bug in DevTools, the set of tools built into Chrome that developers use to inspect pages, watch network traffic and debug their own code. The bug was tracked as CVE-2025-0762, a public identifier given to a specific security flaw. The platform records it as medium severity, with a bounty of 2,000 USD, disclosed on 28 January 2025.

The report calls the bug a use after free and labels it UAP. To understand it, think of memory as a set of numbered lockers a program rents while it works. A use after free happens when the program hands a locker back, keeps the key, and later opens the locker again. By then someone else may have put their belongings inside, so the program reads or writes data that is not its own. The report says this happens in a function called blink::DevToolsSession::DispatchProtocolCommandImpl. Blink is the part of Chrome that renders pages, and this function handles commands sent to a DevTools session. The report does not say which object was freed or what freed it.

The researcher tested on a developer build of Chrome 133.0.6889.0 running on Ubuntu 24.04. A developer build is an early, unfinished version of the browser used for testing, not the one ordinary users install.

How the bug was triggered

The trigger is a browser extension, a small add-on that users install to add features to Chrome. The researcher puts two files, manifest.json and background.js, into a folder called extension_path. The manifest is the extension's description file, telling Chrome its name and what it is allowed to do; the background script is code that runs quietly behind the scenes. The report does not describe what is inside either file.

Chrome is then started from a terminal with this command:

Bash
./chrome --user-data-dir=./noexist --no-sandbox --load-extension="extension_path"

Line by line:

  • ./chrome runs the Chrome program from the current folder.
  • --user-data-dir=./noexist tells Chrome to keep its profile data in a folder called noexist, so the test starts clean and does not touch the researcher's normal browsing profile.
  • --no-sandbox turns off Chrome's sandbox, the isolation layer that normally stops one part of the browser from harming the rest. This is common in debugging builds so that crash tools can see everything.
  • --load-extension="extension_path" loads the extension from that folder at startup.

The result is a crash in the renderer, the separate process Chrome uses to display pages. The report points to an attached asan.log file for the crash details. ASan, short for AddressSanitizer, is a debugging tool that watches memory and produces a detailed log when a program touches memory it should not. That log is not included in the text.

The report ends with credit information: the researcher asks to be credited as Sakana.S if the bug appears in Chrome release notes. No fix, patch or root cause analysis is included.

In general, how this kind of bug works

A use after free is a memory safety bug. The program releases a block of memory, but a pointer, which is simply a stored address of that block, still exists. When the program later follows that pointer, it may land on memory that has since been given to something else. The stale pointer can then read or write data belonging to another object. In a browser renderer this can corrupt the program's internal state and, in the worst case, let an attacker run their own code inside the renderer process.

Asynchronous code is the usual source. Asynchronous means work that starts now but finishes later, like sending a letter and waiting for a reply. A command handler may keep a reference to a session or context, pause while waiting for something, and resume after the owner of that object has been destroyed, for example because a tab closed, a debugger detached or, as here, an extension tore something down. When the handler resumes, it uses a reference to memory that no longer belongs to it.

Defences include smart pointers and weak references, which track whether an object still exists before it is used, explicit cancellation of pending work when the owner is destroyed, and memory safety tools such as AddressSanitizer, which catch the invalid access during testing. That is why crash reports of this kind usually arrive with an ASan log.

How to test for it

  1. Find features that dispatch commands asynchronously: DevTools protocol handlers, extension messaging, communication between browser processes, and anything that registers callbacks against a session or context.
  2. Look for paths where the owner of a session or context can be destroyed while a command is still pending: closing a tab, detaching a debugger, unloading an extension, navigating a page.
  3. Build a trigger that starts the command and destroys the owner before the command finishes. Timing matters, so repeat the action many times and vary the order of teardown and dispatch.
  4. Run against an AddressSanitizer build. A positive result is an ASan report naming a read or write on freed memory, with allocation and free stacks showing the object was released before the use.
  5. Confirm the crash is reproducible and tied to your sequence, not to unrelated instability.

Common false positives are crashes caused by running out of memory, assertions that fire on invalid input rather than on freed memory, and races that only appear under a debugger. An ASan report showing the memory was never freed, or was freed after the access, is not a use after free.

How it is fixed

Where a raw pointer is kept, the fix often replaces it with a checked handle that becomes invalid on teardown. Regression tests that replay the teardown sequence under ASan help prevent the bug from returning.

Hunting notes

This class of bug tends to hide at the seams between components: debugger and DevTools plumbing, extension APIs, worker and frame lifecycle, and any place where a long-lived session outlives the object it points at. Signals worth watching include code that stores raw pointers in callbacks, comments about lifetime, and features that expose explicit attach and detach operations.

To get a report accepted, show a minimal, deterministic trigger, include the sanitizer output with allocation and free stacks, and state the affected version and build type. Explain the security consequence honestly: a reliable crash in a renderer is a valid finding, and any stronger claim needs evidence.

Glossary

  • Chrome Vulnerability Reward Program: Google's scheme that pays researchers for reporting security bugs in Chrome.
  • DevTools: the debugging tools built into Chrome for inspecting pages, network traffic and code.
  • CVE: a public identifier assigned to a specific security vulnerability.
  • Use after free (UAP): a bug where a program uses memory after releasing it.
  • Blink: the part of Chrome that renders web pages.
  • DevTools session: a connection through which DevTools commands are sent and handled.
  • Developer build: an early, unfinished version of Chrome used for testing.
  • Extension: a small add-on that adds features to Chrome.
  • manifest.json: the extension's description file, listing its name and permissions.
  • background.js: an extension script that runs behind the scenes.
  • Sandbox: an isolation layer that limits what one part of the browser can do to the rest.
  • Renderer: the separate process Chrome uses to display pages.
  • AddressSanitizer (ASan): a debugging tool that detects invalid memory access and produces a detailed log.
  • Pointer: a stored memory address that a program uses to find a block of memory.
  • Asynchronous: work that starts now but completes later.
  • Smart pointer: a pointer that tracks ownership and validity of the object it refers to.
  • Weak reference: a reference that does not keep an object alive and can be checked before use.
  • Race condition: a bug whose outcome depends on the timing of events.
  • False positive: a test result that looks like a bug but is not the bug being sought.

More by Sakana.S

View all

2 more disclosed reports, best first.

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.