Use after free in Site Isolation (CVE-2025-3066)
A navigation throttle in Chromium's Site Isolation code calls a resume method that can synchronously delete the throttle object, then reads a member variable afterwards. This creates a use-after-free that could crash the browser process, though the report does not demonstrate exploitation beyond the crash.
Originally disclosed on Chrome VRP
- Fix shipped in 19 days
Steps to reproduce the problem
I will provide a reproduction of the UAF soon. Bear with me, please. Though I think the UAF is trivial.
Problem Description
A SubframeHistoryNavigationThrottle is intended to defer subframe history navigations while the main frame commits main-frame same-document history navigations. When the Resume() method is called, it triggers a call to resume the current throttle 0. However, the call to NavigationThrottle::Resume() can synchronously delete this. This leads to a use-after-free when subsequently accessing the member variable state_ 1.
void SubframeHistoryNavigationThrottle::Resume() {
if (state_ == State::kDeferred) {
NavigationThrottle::Resume(); [0]
}
state_ = State::kRunningAfterResumeSignal; [1]
}
This issue resembles crbug.com/40063127.
Suggested Fix: Move the member variable assignment (state_ = State::kRunningAfterResumeSignal;) to before calling Resume():
void SubframeHistoryNavigationThrottle::Resume() {
state_ = State::kRunningAfterResumeSignal;
if (state_ == State::kDeferred) {
NavigationThrottle::Resume();
// `Resume()` can synchronously delete this navigation throttle, so no code
// after this call should reference the throttle instance.
}
}
Additional Comments
PoC soon.
Summary
UAF when accessing member variable after destruction of throttle (SubframeHistoryNavigationThrottle)
Custom Questions
Type of crash:
browser
Reporter credit:
Sven Dysthe @svn_dy
Additional Data
Category: Security
Chrome Channel: Canary
Regression: N/A
Context
Chrome's Site Isolation puts different sites in different renderer processes, and the browser process coordinates navigations between them. A SubframeHistoryNavigationThrottle is a navigation throttle that defers subframe history navigations while the main frame is committing a main-frame same-document history navigation. When the main frame finishes, the throttle's Resume() method is called to let the deferred subframe navigation continue.
The report is a use-after-free (UAF) in that Resume() method, filed against Chrome Canary through the Chrome VRP. It was rated high severity and paid a bounty of 4,000 USD, and was disclosed on 8 April 2025 as CVE-2025-3066.
Setup
The report gives no build steps, flags or test page. The only environment detail it states is the Chrome channel: Canary. The researcher says a reproduction would follow and that the UAF is, in their view, trivial.
Finding it
The researcher read SubframeHistoryNavigationThrottle::Resume() and noticed that it calls the base class NavigationThrottle::Resume() and then writes to the member variable state_. The problem is that NavigationThrottle::Resume() can synchronously delete this, so the write to state_ afterwards touches freed memory. The report points at the two relevant lines in the Chromium source, at revision [redacted]:
void SubframeHistoryNavigationThrottle::Resume() {
if (state_ == State::kDeferred) {
NavigationThrottle::Resume(); [0]
}
state_ = State::kRunningAfterResumeSignal; [1]
}
Line [0] is the call that resumes the current throttle and can destroy it. Line [1] is the assignment that then accesses the freed object. The researcher notes that the issue resembles crbug.com/40063127.
Exploitation
The report does not include a proof of concept. It says a reproduction would be provided soon and that a PoC was coming, but neither appears in the text. What follows is the sequence the code implies, not a tested exploit.
Step 1: defer a subframe history navigation
A subframe history navigation reaches the throttle while the main frame is committing a main-frame same-document history navigation. The throttle sets its state to kDeferred and holds the navigation back.
Step 2: resume the throttle
When the main frame finishes, Resume() is called on the throttle. Because state_ is kDeferred, the code calls NavigationThrottle::Resume().
Step 3: the object is destroyed during the call
NavigationThrottle::Resume() can synchronously delete the throttle instance. Control returns to SubframeHistoryNavigationThrottle::Resume(), which then executes state_ = State::kRunningAfterResumeSignal; on the destroyed object. That is the use-after-free.
The report does not describe the memory layout, the allocator behaviour or a crash trace. It records only that the crash type is in the browser process.
Root cause
The mistake is ordering: the code touches a member variable after a call that may have destroyed the object. The base class Resume() is not guaranteed to leave the throttle alive, so any code after it must not reference the instance. The report does not discuss which existing defence should have caught this.
Impact
The report records that the crash type is in the browser process. It does not demonstrate control over the freed memory or describe how an attacker would reach the vulnerable path from web content, so a stronger impact is not established in the text. The severity assigned by the program was high.
Fix
The researcher suggested moving the assignment before the call, so that no member is accessed after Resume():
void SubframeHistoryNavigationThrottle::Resume() {
state_ = State::kRunningAfterResumeSignal;
if (state_ == State::kDeferred) {
NavigationThrottle::Resume();
// `Resume()` can synchronously delete this navigation throttle, so no code
// after this call should reference the throttle instance.
}
}
The report does not state which change was actually shipped.
Variants to test
- Look for other throttles or callbacks that call a base method which can delete the object and then touch members. A positive result is a member access after a call that can synchronously destroy the instance.
- Check other
Resume()implementations in navigation throttles for the same ordering. A positive result is an assignment or read ofthisafter a resume call that may delete the throttle. - Review code paths similar to crbug.com/40063127, which the researcher cites as resembling this issue. A positive result is the same pattern of use after a potentially deleting call.
Hunting notes
This kind of bug hides in lifecycle code: navigation throttles, callbacks and observers where a call into shared infrastructure can destroy the caller. During recon, look for methods that call a base class or a delegate and then continue using member state.
What happened, in plain words
Chrome is the web browser most people use. Inside it, a piece of code called a navigation throttle acts like a checkpoint on a road: every time the browser is about to move from one page to another, the throttle gets a chance to pause the move, inspect it, and either let it continue or hold it back.
One particular throttle, SubframeHistoryNavigationThrottle, has a job that sounds narrow but matters: it pauses history navigation inside a subframe (a page embedded inside another page, such as an advert or an embedded video player) while the main page is finishing a history navigation of its own. When the main page is done, the throttle is told to continue, through a method called Resume().
The bug is in that Resume() method. It first asks the shared base class to continue the navigation, and only afterwards writes to one of its own variables, state_. The problem is that the call to the base class can, in some situations, destroy the throttle object itself. If that happens, the next line writes into memory that has already been freed. That is a use-after-free: using something after it has been thrown away.
A researcher found this by reading the code, filed it through Google's Chrome Vulnerability Reward Program (VRP, a scheme that pays people for reporting security bugs), and the report was rated high severity with a bounty of 4,000 USD. It was disclosed on 8 April 2025 as CVE-2025-3066. The report itself is short: it explains the bug and suggests a fix, but the promised reproduction and proof of concept never appear in the text.
Context
To follow the rest of this article you need a few ideas from how browsers work.
Site Isolation. Modern Chrome does not run every website in one big shared space. It puts different sites into different renderer processes, separate programs that each handle the pages of one site. The idea is that if one site manages to break its own process, it cannot directly read the memory of another site. The cost is that the browser has to coordinate between these processes, and one of the things it coordinates is navigation, the act of moving from one page to another.
The browser process. Chrome has one central process, the browser process, that manages windows, tabs, and the overall coordination. The renderer processes do the page work. The code in this report lives in the browser process.
Navigation throttle. Think of a motorway toll booth. Before a car (a navigation) can continue, it stops at the booth, and the booth can wave it through, hold it, or cancel it. A navigation throttle is that booth in code. Chrome creates throttles for navigations so that features can inspect or delay them.
Subframe and main frame. A web page can contain other pages inside it. The outer page is the main frame; the embedded ones are subframes. A subframe can have its own history, so you can go back and forward inside it.
Same-document navigation. Normally, navigating loads a new document, a new page. A same-document navigation changes the URL or the history entry without loading a new page, for example when a script updates the address bar. It is a navigation in the history sense, but no new page is fetched.
SubframeHistoryNavigationThrottle. This is the specific throttle in the report. Its purpose, as the report describes it, is to defer (hold back) subframe history navigations while the main frame is committing a main-frame same-document history navigation. When the main frame finishes, the throttle's Resume() method is called so the held subframe navigation can continue.
Use-after-free (UAF). Imagine borrowing a library book, returning it, and then trying to read a page you had marked. The book may still be on the shelf, or it may have been replaced by something else. A use-after-free is the same idea in memory: a program frees a chunk of memory, then keeps using it. What sits there afterwards is unpredictable, which is why this class of bug can range from a crash to, in the worst cases, something an attacker can influence.
CVE. A CVE (Common Vulnerabilities and Exposures) identifier is a public catalogue number for a specific security flaw, so that people can refer to it unambiguously. This one is CVE-2025-3066.
Chrome VRP. The Chrome Vulnerability Reward Program is Google's scheme for paying researchers who report security bugs in Chrome. Reports go through it, get triaged, and may earn a bounty.
Canary. Chrome ships in several channels. Canary is the experimental, fastest-moving one, where changes appear before they reach stable users. The report states that the bug was filed against Canary.
Setup
The report gives no build steps, no command-line flags and no test page. The only environment detail it states is the Chrome channel: Canary. The researcher says a reproduction would follow and that, in their view, the UAF is trivial.
That matters for reading the rest of the report: there is no recipe here that you can follow on your own machine to trigger the bug. What follows is an explanation of the code, not a walkthrough of an experiment.
Finding it
The researcher read the source code of SubframeHistoryNavigationThrottle::Resume() and noticed the order of operations. They read the source code of SubframeHistoryNavigationThrottle::Resume() and noticed the order of operations. The method calls the base class NavigationThrottle::Resume() and then writes to the member variable state_. The problem is that NavigationThrottle::Resume() can synchronously delete this, meaning the object can be destroyed during that very call, before the next line runs. The write to state_ afterwards therefore touches freed memory.
The report points at the two relevant lines in the Chromium source, at revision [redacted]:
void SubframeHistoryNavigationThrottle::Resume() {
if (state_ == State::kDeferred) {
NavigationThrottle::Resume(); [0]
}
state_ = State::kRunningAfterResumeSignal; [1]
}
Line by line, in plain words:
void SubframeHistoryNavigationThrottle::Resume() {starts the definition of theResume()method belonging to theSubframeHistoryNavigationThrottleclass.voidmeans it returns nothing. This is the method that gets called when the throttle should let a held navigation continue.if (state_ == State::kDeferred) {checks the throttle's own state variable.state_records what the throttle is currently doing.State::kDeferredis one of the possible values, meaning the navigation is being held back. So this line asks: am I currently holding a navigation?NavigationThrottle::Resume(); [0]is the call to the base class version ofResume(). The base class is the general, shared implementation that this specialised throttle builds on. The[0]is the report's marker for this line. This is the call that can destroy the object.}closes theifblock.state_ = State::kRunningAfterResumeSignal; [1]writes a new value intostate_, recording that the throttle has been resumed. The[1]is the report's marker for this line. This is the line that runs after the potentially destructive call, and therefore the line that touches freed memory.}closes the method.
The researcher notes that the issue resembles crbug.com/40063127, an earlier Chromium bug report with a similar shape.
Exploitation
The report does not include a proof of concept. It says a reproduction would be provided soon and that a PoC was coming, but neither appears in the text. What follows is the sequence the code implies, not a tested exploit.
Step 1: defer a subframe history navigation
A subframe history navigation reaches the throttle while the main frame is committing a main-frame same-document history navigation. The throttle sets its state to kDeferred and holds the navigation back.
Why this step exists: the throttle only does its special work when it is in the deferred state. The if in the code checks exactly that. Without a deferred navigation, the dangerous call is skipped.
Step 2: resume the throttle
When the main frame finishes, Resume() is called on the throttle. Because state_ is kDeferred, the code calls NavigationThrottle::Resume().
Why this step exists: the whole point of the throttle is to pause and then continue. The resume is the moment the held navigation is released, and it is the moment the base class gets control.
Step 3: the object is destroyed during the call
NavigationThrottle::Resume() can synchronously delete the throttle instance. Synchronously means it happens right there, inside the call, before control returns to the caller. Control then returns to SubframeHistoryNavigationThrottle::Resume(), which executes state_ = State::kRunningAfterResumeSignal; on the destroyed object. That is the use-after-free.
Why this is the core of the bug: the code assumes the object is still alive after the call. The base class does not guarantee that. Any line after the call that touches the object is therefore unsafe.
The report does not describe the memory layout, the allocator behaviour or a crash trace. It records only that the crash type is in the browser process.
Root cause
The mistake is ordering. The code touches a member variable after a call that may have destroyed the object. The base class Resume() is not guaranteed to leave the throttle alive, so any code after it must not reference the instance. The report does not discuss which existing defence should have caught this.
In everyday terms: you hand a form to a clerk, the clerk shreds the form and closes the office, and then you write one more line on the form. The writing is the bug, and the fix is to write before handing it over.
Impact
The report records that the crash type is in the browser process. It does not demonstrate control over the freed memory or describe how an attacker would reach the vulnerable path from web content, so a stronger impact is not established in the text. The severity assigned by the program was high.
That distinction is worth understanding. A use-after-free is a memory-safety bug, and memory-safety bugs can sometimes be turned into code execution. But a report has to show that path, and this one does not. What it shows is a lifetime error in the code.
Fix
The researcher suggested moving the assignment before the call, so that no member is accessed after Resume():
void SubframeHistoryNavigationThrottle::Resume() {
state_ = State::kRunningAfterResumeSignal;
if (state_ == State::kDeferred) {
NavigationThrottle::Resume();
// `Resume()` can synchronously delete this navigation throttle, so no code
// after this call should reference the throttle instance.
}
}
Line by line, in plain words:
void SubframeHistoryNavigationThrottle::Resume() {starts the same method as before.state_ = State::kRunningAfterResumeSignal;now runs first, while the object is certainly still alive. It records that the throttle has been resumed.if (state_ == State::kDeferred) {still checks the state, but note the consequence: because the state was just overwritten, this condition can no longer be true. The suggested code as written therefore changes behaviour, and the report does not discuss that. It is presented as an illustration of the ordering principle rather than a polished patch.NavigationThrottle::Resume();is the call that may destroy the object. It is now the last thing that touches the instance.- The comment lines explain the rule for future readers: after this call, no code should reference the throttle instance, because it may no longer exist.
- The closing braces end the
ifblock and the method.
The report does not state which change was actually shipped.
Variants to test
These are directions for someone hunting for similar bugs, written for a reader who now understands the pattern: a call that can destroy the object, followed by code that still uses it.
- Look for other throttles or callbacks that call a base method which can delete the object and then touch members. A positive result is a member access after a call that can synchronously destroy the instance.
- Check other
Resume()implementations in navigation throttles for the same ordering. A positive result is an assignment or read ofthisafter a resume call that may delete the throttle. - Review code paths similar to crbug.com/40063127, which the researcher cites as resembling this issue. A positive result is the same pattern of use after a potentially deleting call.
Hunting notes
This kind of bug hides in lifecycle code: navigation throttles, callbacks and observers where a call into shared infrastructure can destroy the caller. During recon, look for methods that call a base class or a delegate and then continue using member state.
For a beginner, the transferable lesson is this: whenever a function calls into code it does not control, ask whether that call could destroy the object you are standing in. If it can, do all your bookkeeping first, and treat everything after the call as if the object no longer exists.
Glossary
- Base class: a general piece of code that a more specific piece builds on. Here,
NavigationThrottleis the general throttle andSubframeHistoryNavigationThrottleis the specialised one. - Bounty: money paid by a vendor to a researcher for a valid security report.
- Browser process: Chrome's central process that coordinates windows, tabs and navigation between sites.
- Callback: a function handed to other code so it can be called later, often when something finishes.
- Canary: Chrome's experimental release channel, where changes appear before stable.
- Chrome VRP: Google's Chrome Vulnerability Reward Program, which receives and pays for security bug reports.
- crbug.com: Chromium's public bug tracker, where bug reports and their numbers live.
- CVE: a public catalogue identifier for a specific security vulnerability, here CVE-2025-3066.
- Denial of service: an attack or bug that makes a service or program unavailable, for example by crashing it.
- Defer: to hold something back and let it continue later.
- Delegate: an object that another object hands work to.
- History navigation: moving back or forward through the browser's history, as with the back and forward buttons.
- Main frame: the outer page of a tab, as opposed to pages embedded inside it.
- Member variable: a variable that belongs to an object, such as
state_belonging to the throttle. - Memory allocator: the part of a program that hands out and reclaims chunks of memory.
- Navigation: the act of moving the browser from one page or address to another.
- Navigation throttle: a checkpoint in Chrome that can pause, allow or cancel a navigation.
- Observer: an object that registers to be told when something happens elsewhere.
- PoC (proof of concept): a small, concrete demonstration that a bug can actually be triggered.
- Renderer process: a separate Chrome process that runs the pages of a particular site.
- Revision: a specific version of a source code repository, identified by a long hash such as
[redacted]. - Same-document navigation: a navigation that changes the URL or history entry without loading a new page.
- Severity: a rating of how serious a vulnerability is, here high.
- Site Isolation: Chrome's design of putting different sites in different renderer processes.
- Subframe: a page embedded inside another page.
- Synchronous: happening immediately, inside the current call, before control returns to the caller.
- Throttle: see navigation throttle.
- Use-after-free (UAF): using memory after it has been freed, which can cause crashes or worse.
this: in object-oriented code, the current object itself. Deletingthismeans the object destroys itself during a method call.