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

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.

asjidkalam Follow

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:

  1. OnRawChange() calls observation_group.NotifyOfChanges(...)
  2. FileSystemAccessObserverObservation::OnChanges() may call HandleError() when the observation root disappears.
  3. HandleError() sends an errored event and calls host_->RemoveObservation(this).
  4. Removing the last observation triggers watcher_manager_->RemoveObservationGroup(...).
  5. 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.

  1. Extract the provided files into a directory and serve them locally using a python web server: python3 -m http.server 8001

  2. 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'
    
  3. On the loaded page, click Start.

  4. In the directory picker, choose any writable local directory.

  5. The PoC will rapidly create, observe, and delete files to drive the disappeared -> errored -> observation teardown path 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

The original report as published on the Chromium issue tracker, by asjidkalam. 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

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

  1. Serve the provided PoC files locally with a Python web server.
  2. Launch an ASan Chromium build with a fresh profile and the FileSystemObserver feature enabled, pointing at the PoC page.
  3. Click Start on the loaded page.
  4. Choose any writable local directory in the picker.
  5. 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.

More by asjidkalam

View all

2 more disclosed reports, best first.

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.