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

Use after free in Views (CVE-2026-11644)

A use-after-free was reported in the Linux/X11 window restore path, where restoring a fullscreen window can synchronously notify observers that destroy the host object, after which the code calls Show() on the freed object. An attacker could potentially crash the browser process or access freed memory, though the report is based on code analysis only and was not verified with a live proof of concept.

Google Chrome

Originally disclosed on Chrome VRP

Critical View original
  • Fix shipped in 10 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 vulnerability exists in DesktopWindowTreeHostPlatform::Restore on Linux/X11. Calling platform_window()->Restore() on a fullscreen window can trigger a synchronous bounds change that deletes the host window. Because Restore() lacks a weak-pointer guard, it proceeds to execute on the freed object.

Affected files:

  • ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
  • ui/ozone/platform/x11/x11_window.cc

Estimated timestamp from git blame: 2019-09-27

Root Cause Analysis

In DesktopWindowTreeHostPlatform::Restore(), the method delegates the restoration operation to the underlying platform-specific window and then unconditionally calls Show() on this without verifying if the object survived the synchronous delegation:

C++
// ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
void DesktopWindowTreeHostPlatform::Restore() {
  platform_window()->Restore();                                  // [1] May synchronously delete |this|
  Show(ui::mojom::WindowShowState::kNormal, gfx::Rect());        // [2] Potential Use-after-free on freed |this|
}

Unlike sibling methods in the same class (such as SetFullscreen() and Maximize()), Restore() is missing a base::WeakPtr check to guard its lifetime.

On Linux/X11, when platform_window()->Restore() is called on a fullscreen window, the implementation (ui::X11Window::Restore()) calls SetFullscreen(false, ...) to exit fullscreen state. This method synchronously triggers platform_window_delegate_->OnBoundsChanged(...) to notify observers of layout transitions.

If an observer (e.g., reacting to bounds/layout changes) synchronously closes or destroys the widget, the entire DesktopWindowTreeHostPlatform object is deleted from the heap. When control flow returns to DesktopWindowTreeHostPlatform::Restore(), the subsequent call to Show() executes on a freed pointer.

Since this is a raw C++ pointer and the first dereferenced member fields inside Show() (such as platform_window_) are standard std::unique_ptr instances rather than raw_ptr<>, this use-after-free is not mitigated by MiraclePtr.

Suggested Steps to Trigger (Potential)

Note: These steps are theoretical and suggested based on code analysis; our tooling does not currently have the capability to execute code or verify via a live Proof-of-Concept.

  1. Establish an extension with the chrome.windows permission or an installed PWA (with experimental window-management features enabled) and transition its window into fullscreen state.
  2. Register a synchronous event observer (such as on bounds or state changes) that immediately calls close/destroy on the window when a transition occurs.
  3. Request a window restore operation via chrome.windows.update(id, {state: 'normal'}) or window.restore().
  4. Ensure the synchronous observer destroys the host when the bounds change is notified.
  5. Observe if the browser process crashes or accesses freed memory when resuming execution inside Restore().

Suggested Fix

To remediate this issue, obtain a weak pointer before delegating to the platform window, and return early if the host has been destroyed:

C++
void DesktopWindowTreeHostPlatform::Restore() {
  auto weak_ptr = weak_factory_.GetWeakPtr();
  platform_window()->Restore();
  if (!weak_ptr) {
    return;
  }
  Show(ui::mojom::WindowShowState::kNormal, gfx::Rect());
}

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 Restore() method delegates to the platform window, which can synchronously destroy the host through an observer callback, and then calls Show() on the now-freed object without a weak-pointer lifetime check.

Impact

The browser process could crash or access freed memory, but the report states the steps are theoretical and were not verified with a live proof of concept.

What the attacker needed

Linux/X11 desktop session; extension with windows permission or PWA; synchronous observer that destroys window; window in fullscreen state

The fix

The fix should take a weak pointer before delegating to the platform window and return early if the host has been destroyed.

How it was found

  1. Give an extension the windows permission, or install a PWA with window-management features, and put its window into fullscreen.
  2. Register a synchronous observer on bounds or state changes that closes or destroys the window when a transition happens.
  3. Request a restore through the windows update API or the window restore call.
  4. Check whether the browser process crashes or touches freed memory when execution returns inside Restore().

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.

When a window leaves fullscreen, the browser tells other parts of itself that the window's size has changed. One of those listeners can close the window straight away, which frees the memory holding the window object. The code then carries on using that freed memory, which is called a use-after-free and can crash the browser or, in theory, let an attacker influence what happens next.

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.