Use after free in Views (CVE-2026-10988)
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 13 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 the browser process due to synchronous object destruction during window maximization. Certain platform window events can trigger the deletion of the host object, leaving subsequent code executing with a dangling 'this' pointer. This issue affects DesktopWindowTreeHostPlatform on Linux systems using Ozone/X11.
Affected files:
ui/views/widget/desktop_aura/desktop_window_tree_host_platform.ccui/aura/window_tree_host_platform.h
Estimated timestamp from git blame: 2019-09-27
Summary
A potential Use-After-Free (UAF) vulnerability has been identified in DesktopWindowTreeHostPlatform::Maximize() and DesktopWindowTreeHostPlatform::Show() within the Chrome browser process. On Linux (Ozone/X11), these methods invoke platform-level window operations that can synchronously trigger observer events. If an observer destroys the window host during these events, the methods continue to execute using a freed this pointer, leading to memory corruption.
Technical Details
In ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc, the Maximize() method is implemented as follows:
void DesktopWindowTreeHostPlatform::Maximize() {
platform_window()->Maximize();
if (IsMinimized()) {
Show(ui::mojom::WindowShowState::kNormal, gfx::Rect());
}
}
When platform_window()->Maximize() is called on Ozone/X11, it invokes ui::X11Window::Maximize(). If the window is currently in a fullscreen state, X11Window::Maximize() synchronously calls SetFullscreen(false), which in turn notifies its delegate via OnBoundsChanged().
In ui/aura/window_tree_host_platform.cc, the OnBoundsChanged() implementation notifies aura::WindowTreeHostObserver objects. It is a known behavior in Aura that observers may synchronously trigger the destruction of the WindowTreeHost (e.g., via Widget::CloseNow()). While the base class WindowTreeHostPlatform uses base::WeakPtr guards to handle this possibility safely, the specialized DesktopWindowTreeHostPlatform::Maximize() method does not.
After platform_window()->Maximize() returns, the code immediately calls IsMinimized(). If the host was destroyed during the call, this is a dangling pointer. IsMinimized() dereferences this to access the platform_window_ member, leading to a UAF. A similar pattern exists in DesktopWindowTreeHostPlatform::Show(), where platform_window()->Maximize() is followed by an access to platform_window().
Potential Impact and Reachability
This is a potential high-severity UAF in the browser process. An attacker who can influence window state changes may be able to trigger this path. Potential attack vectors include:
- A malicious or compromised extension using the
chrome.windows.updateAPI to toggle a window between fullscreen and maximized states. - A Progressive Web App (PWA) using the
window.maximize()API (if theDesktopPWAsAdditionalWindowingControlsfeature is enabled).
If an attacker can groom the heap to control the memory of the freed host object, the virtual calls performed during the UAF (e.g., on the platform_window_ pointer) could potentially be leveraged for remote code execution (RCE) in the browser process. MiraclePtr does not mitigate this specific issue because the dangling reference is the implicit this pointer, and the member being accessed is a std::unique_ptr.
Suggested Fix
Apply a base::WeakPtr guard in both Maximize() and Show() to check if the object is still valid after the call to platform_window()->Maximize(). This pattern is already correctly implemented in DesktopWindowTreeHostPlatform::SetFullscreen().
Example fix for Maximize():
void DesktopWindowTreeHostPlatform::Maximize() {
auto weak_ptr = GetWeakPtr();
platform_window()->Maximize();
if (!weak_ptr) {
return;
}
if (IsMinimized()) {
Show(ui::mojom::WindowShowState::kNormal, gfx::Rect());
}
}
Evaluated with Chrome root at commit: 29093e11cf509e3593f6229e4b1b075cca356049
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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity memory corruption bug in Views (Google Chrome). Chrome VRP made it public on 2 June 2026 as CVE-2026-10988. Fixed in version 149.0.7827.53.
About 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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.