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

Use after free in Ozone (CVE-2026-15112)

A use-after-free vulnerability exists in WaylandWindow::ProcessPendingConfigureState because a synchronous callout can delete the WaylandWindow instance, and the caller then accesses the freed object. An attacker could potentially trigger this via a web page that forces window state updates and synchronous widget closure, leading to memory corruption in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

Critical View original
  • Fix shipped in 41 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. 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) vulnerability exists in WaylandWindow::ProcessPendingConfigureState due to the absence of a liveness check after a synchronous, deletion-capable callout. The state application chain can synchronously delete the WaylandWindow instance, leading to subsequent writes to and reads from the freed 'this' object when execution returns to the caller function.

Affected files:

  • ui/ozone/platform/wayland/host/wayland_window.cc
  • ui/ozone/platform/wayland/host/wayland_window.h

Estimated timestamp from git blame: Unknown (Google3 checkout)

Root Cause Analysis

In ui/ozone/platform/wayland/host/wayland_window.cc, WaylandWindow::ProcessPendingConfigureState invokes RequestStateFromServer() which subsequently delegates state updates to the window delegate:

C++
void WaylandWindow::ProcessPendingConfigureState(uint32_t serial) {
  ...
  RequestStateFromServer(state, serial);

  // Reset values.
  pending_configure_state_ = PendingConfigureState(); // Potential UAF WRITE

  if (state == applied_state_ && state == latched_state_ &&
      in_flight_requests_.empty() && root_surface()->has_buffer()) {
    root_surface_->Commit(/*flush=*/true);             // Potential wild pointer dereference and virtual call
  }
}

When RequestStateFromServer runs, the call path is as follows:

  1. RequestStateFromServer calls RequestState (Line 1343).
  2. RequestState calls MaybeApplyLatestStateRequest (Line 1427).
  3. MaybeApplyLatestStateRequest triggers delegate()->OnStateUpdate(old, latest.state) (Line 1599).

The delegate callback triggers synchronous bounds and visibility observer notifications. In certain scenarios, these observers can synchronously call Widget::CloseNow(), leading to the synchronous deletion of the WaylandWindow instance.

While MaybeApplyLatestStateRequest contains a weak pointer guard (weak_this) to detect self-deletion and abort cleanly, the outer callers (RequestState and RequestStateFromServer) do not check liveness before returning. Consequently, execution returns back to ProcessPendingConfigureState where the freed this pointer is unconditionally accessed, causing a use-after-free write on pending_configure_state_ and a potential use-after-free read and virtual call on root_surface_.

Potential Attack Path / Trigger Scenario

Because our automated analysis tools do not have the capability to execute code dynamically, these steps represent a potential exploitation sequence:

  1. An attacker-controlled web page in a sandboxed renderer process opens a popup window (window.open).
  2. The page forces frequent configure and window state updates (e.g. through Fullscreen API toggles or resizeTo).
  3. The attacker engineers or triggers a synchronous widget closure (e.g. Widget::CloseNow()) within the synchronous observer callback path during OnStateUpdate.
  4. When the WaylandWindow is deleted synchronously, execution returns back to ProcessPendingConfigureState, causing memory corruption in the browser process.

Suggested Fix

To prevent this issue, introduce a weak-pointer liveness check immediately after calling RequestStateFromServer inside WaylandWindow::ProcessPendingConfigureState:

C++
  auto weak_this = AsWeakPtr();
  RequestStateFromServer(state, serial);
  if (!weak_this) {
    return;
  }

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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 the absence of a liveness check after a synchronous, deletion-capable callout in ProcessPendingConfigureState, allowing access to a freed object.

Impact

Could lead to memory corruption in the browser process, potentially enabling further exploitation.

What the attacker needed

Attacker-controlled web page; sandboxed renderer process; ability to open popup window

The fix

Introduce a weak-pointer liveness check immediately after calling RequestStateFromServer inside ProcessPendingConfigureState.

How it was found

  1. An attacker-controlled web page in a sandboxed renderer process opens a popup window.
  2. The page forces frequent configure and window state updates.
  3. The attacker triggers a synchronous widget closure within the observer callback path.
  4. The WaylandWindow is deleted synchronously, and execution returns to ProcessPendingConfigureState, causing memory corruption.

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 frees an object's memory but then keeps using it, like deleting a file and then trying to read it. Here, a function calls another function that can delete the window object, but the first function doesn't check if the object still exists before using it again. This can corrupt memory and potentially let an attacker run code.

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.