Use after free in FileSystem (CVE-2026-10931)
A use-after-free exists in the browser process of Chromium's File System Access API when change notifications synchronously tear down the observation group being iterated. A malicious web page or compromised renderer could trigger the crash and potentially escalate to sandbox escape or remote code execution.
Originally disclosed on Chrome VRP
- Fix shipped in 54 days
VULNERABILITY DETAILS
A browser-process heap use-after-free (UAF) vulnerability exists in the File System Access API due to iterator/lifetime invalidation during change-delivery event dispatch.
FileSystemAccessWatcherManager::OnRawChange(...) iterates over its internal observation groups to notify them of changes. However, the resulting callback chain can synchronously destroy the active FileSystemAccessObservationGroup.
When an observed file root disappears or errors out, the following sequence occurs:
OnRawChange()callsobservation_group.NotifyOfChanges(...)FileSystemAccessObserverObservation::OnChanges()may callHandleError()when the observation root disappears.HandleError()sends an errored event and callshost_->RemoveObservation(this).- Removing the last observation triggers
watcher_manager_->RemoveObservationGroup(...). - This erases the group from the manager-owned map while
OnRawChange()is still actively iterating over it.
When the callback chain finishes and control returns to OnRawChange(), the iterator or container state is invalid. The next operation inside the loop accesses freed memory, causing an immediate crash.
As indicated by the ASan log (MiraclePtr Status: NOT PROTECTED), no raw_ptr<T> access was detected for this specific memory operation. Consequently, this vulnerability is not mitigated by MiraclePtr and results in an exploitable browser-process Use-After-Free, which can potentially be leveraged by a compromised renderer or malicious web page to achieve sandbox escape/RCE.
VERSION
Chrome Version: Chromium 148.0.7763.0 (Official mac-arm64 ASan prebuilt)
Operating System: macOS arm64
REPRODUCTION CASE
Please see the attached poc.html and asan.log files.
-
Extract the provided files into a directory and serve them locally using a python web server:
python3 -m http.server 8001 -
In another terminal, create a fresh profile directory and launch ASan Chromium:
Bash profile_dir=/tmp/fsa_obs_group_uaf_profile_final mkdir -p "$profile_dir" ASAN_OPTIONS='detect_odr_violation=0:abort_on_error=1:symbolize=1:external_symbolizer_path=/path/to/llvm-symbolizer:log_path=/tmp/fsa_obs_group_uaf_final' \ open -n '/path/to/.asan_mac_arm64_run/Chromium.app' --args \ --user-data-dir="$profile_dir" \ --enable-blink-features=FileSystemObserver \ --test-type \ --no-first-run \ --no-default-browser-check \ 'http://127.0.0.1:8001/poc.html?attempts=256&concurrency=16' -
On the loaded page, click Start.
-
In the directory picker, choose any writable local directory.
-
The PoC will rapidly create, observe, and delete files to drive the
disappeared -> errored -> observation teardownpath at high concurrency. The browser process will quickly crash with a UAF.
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION
Type of crash: Browser Process
Crash State:
=================================================================
==63307==ERROR: AddressSanitizer: heap-use-after-free on address 0x6190006d1d40 at pc 0x000309218ea4 bp 0x00016d9bfff0 sp 0x00016d9bffe8
READ of size 4 at 0x6190006d1d40 thread T0 (Crash Stack):
#0 0x000309218ea0 in content::FileSystemAccessWatcherManager::OnRawChange(...)
#1 0x00030913b300 in content::FileSystemAccessChangeSource::NotifyOfChange(...)
#2 0x00030a812238 in content::FileSystemAccessLocalPathWatcher::OnFilePathChanged(...)
[... truncated sequence manager / run loop ...]
0x6190006d1d40 is located 704 bytes inside of 936-byte region[0x6190006d1a80,0x6190006d1e28)
freed by thread T0 here (Free Stack):
#0 0x0001027d1074 in __asan_memmove
#1 0x00030921a7c0 in content::FileSystemAccessWatcherManager::RemoveObserver(...)
#2 0x0003091f0990 in content::FileSystemAccessObservationGroup::~FileSystemAccessObservationGroup()
#3 0x000309224c50 in std::__Cr::__tree<...>::erase(...)
#4 0x00030921af14 in content::FileSystemAccessWatcherManager::RemoveObservationGroup(...)
#5 0x0003091f2d54 in base::ScopedObservation<...>::Reset()
#6 0x0003091efe70 in content::FileSystemAccessObservationGroup::Observer::~Observer()
#7 0x0003091fef58 in content::FileSystemAccessObserverObservation::~FileSystemAccessObserverObservation()
#8 0x0003091ff178 in content::FileSystemAccessObserverObservation::~FileSystemAccessObserverObservation()
#9 0x0003091fb598 in std::__Cr::vector<...>::erase(...)
#10 0x0003091f75d8 in content::FileSystemAccessObserverHost::RemoveObservation(...)
#11 0x0003091ffa38 in content::FileSystemAccessObserverObservation::HandleError()
#12 0x0003091fe4a8 in content::FileSystemAccessObserverObservation::OnChanges(...)
#13 0x000309201b94 in base::internal::Invoker<...>::Run(...)
#14 0x0003091f0388 in base::RepeatingCallback<...>::Run(...)
#15 0x0003091f1970 in content::FileSystemAccessObservationGroup::NotifyOfChanges(...)
#16 0x000309217da8 in content::FileSystemAccessWatcherManager::OnRawChange(...)
==63307==ADDITIONAL INFO
MiraclePtr Status: NOT PROTECTED
No raw_ptr<T> access to this region was detected prior to this crash.
This crash is still exploitable with MiraclePtr.
CREDIT INFORMATION
Reporter credit: asjidkalam
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
The change-notification callback can synchronously remove the observation group from the manager's map while OnRawChange is still iterating over that same container, leaving a dangling iterator.
Impact
The crash is a browser-process use-after-free that is not mitigated by MiraclePtr and could potentially be leveraged by a compromised renderer or malicious web page to achieve sandbox escape or RCE.
What the attacker needed
Victim visits a malicious page; user grants a writable directory; FileSystemObserver feature enabled
How it was found
- Serve the provided PoC files locally with a Python web server.
- Launch an ASan Chromium build with a fresh profile and the FileSystemObserver feature enabled, pointing at the PoC page.
- Click Start on the loaded page.
- Choose any writable local directory in the picker.
- Let the PoC rapidly create, observe and delete files at high concurrency until the browser process crashes.
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 web page watches a folder for changes, the browser keeps a list of watchers and loops over it to notify each one. If notifying a watcher causes that same list to be deleted mid-loop, the loop keeps reading memory that has already been freed, which crashes the browser. Because this happens in the browser's own process, an attacker who can trigger it may be able to run code outside the usual security sandbox.
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.