Use after free in Views (CVE-2026-7334)
A use-after-free occurs in Chromium's views::Widget when a help bubble is destroyed during browser teardown, and a macOS window notification later accesses the freed object. An attacker could potentially exploit this to execute code in the browser process, bypassing the sandbox.
Originally disclosed on Chrome VRP
- Fix shipped in 34 days
Steps to reproduce the problem
Hello, I encountered a crash while running tests on Chromium. I'm not sure if it's related to my HTML file, but the terminal output indicates the root cause of the problem. Obviously, to recreate this problem, I'm compiling Chromium from scratch on a different computer. I know the problem will recur if I encounter this bubble when I log in, but I've only encountered it once in 4 days. I suspect it's a promotional bubble shown to new users, so I'll try compiling from scratch on another computer.
Problem Description
I downloaded and compiled Chromium for the first time on my computer; this was my first time using the Chromium browser. My HTML file contained instructions to open the calculator, and coincidentally, perhaps because I had just downloaded it, a blue promotional bubble for Chromium appeared in the upper right corner. At the same time, a window popped up asking if I wanted to open the calculator because of my HTML file, but I ignored both warnings and closed the tabs by clicking the 'X' buttons. Meanwhile, the browser crashed and gave an error output in my terminal.
VULNERABILITY DETAILS
Heap-Use-After-Free (Read of size 8) in the main Browser Process (T0), which completely bypasses the sandbox. The vulnerable object is views::Widget, and ASan confirms it is NOT protected by MiraclePtr/BackupRefPtr.
ROOT CAUSE ANALYSIS
This is a synchronous race condition between Chromium's Browser teardown sequence (Browser::~Browser()) and the macOS native window notification system (NSNotificationCenter).
Phase A (Allocation):
The IPH system triggers a Help Bubble (e.g., CustomWebUIHelpBubble::CreateForController<extensions::ZeroStatePromoController>).
Phase B (The Free):
When the browser is closed (via Cmd+Q), Browser::~Browser() initiates the destruction sequence. The BubbleWidget is destroyed and its memory is synchronously freed via user_education::HelpBubble::Close().
Phase C (The Use):
Although the C++ object is freed, the macOS NSNotificationCenter fires a windowWillClose: notification. This invokes remote_cocoa::NativeWidgetNSWindowBridge::OnWindowWillClose(), which calls back into views::NativeWidgetMac::WindowDestroying() and views::Widget::HandleWidgetDestroying(). This attempts to read the freed C++ Widget state, causing a critical T0 UAF.
REPRODUCTION STEPS
Note: Reproducing this consistently on a local, unbranded build is extremely difficult because the FeatureEngagementTracker heuristics block the ZeroStatePromo bubble from rendering reliably (e.g., it waits for "browser initialization complete" and checks Finch configs).
To reproduce internally:
- Use internal developer flags to force a WebUI Help Bubble to render (e.g., force
IPH_ExtensionsZeroStatePromoonchrome://extensions). - While that blue Help Bubble is actively visible on the macOS screen, force-close the browser (Cmd + Q).
- The ASan trace will immediately catch the UAF during teardown.
Please review the attached ASan log for the complete stack trace. Given the T0 context and lack of MiraclePtr protection, I kindly request a review of the severity.
Summary
Security: T0 Heap-Use-After-Free in views::Widget during Browser Teardown
Custom Questions
Type of crash:
browser
Crash state:
AddressSanitizer: heap-use-after-free (Read of size 8) Crash location: views::Widget::HandleWidgetDestroying()
Thread: T0 (Main Browser Process) MiraclePtr Status: NOT PROTECTED
- Please see the attached ASan log (.txt) for the complete allocation, free, and crash stack traces.
Reporter credit:
Batuhan Eşref KOÇ
Additional Data
Category: Security
Chrome Channel: Not sure
Regression: N/A \
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 a synchronous race condition between browser teardown and macOS window notifications, where the help bubble widget is freed before the notification callback accesses it.
Impact
The use-after-free occurs in the main browser process and bypasses the sandbox, potentially allowing code execution, though reliable reproduction is difficult due to feature engagement heuristics.
What the attacker needed
MacOS; help bubble visible; force-close browser
How it was found
- Force a WebUI help bubble to render using internal developer flags.
- While the help bubble is visible, force-close the browser.
- The ASan trace catches the use-after-free during teardown.
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 is a bug where a program frees memory but then tries to use it again, which can let an attacker control what happens. Here, closing the browser while a help bubble is open causes the bubble's memory to be freed, but a system notification still tries to read it, crashing the browser. Because this happens in the main browser process, it could be very serious.
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.