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

Use after free in FileSystem (CVE-2026-6360)

A use-after-free in the browser process of Chromium's File System Access API occurs when a callback deletes the object during initialization, and a subsequent callback accesses freed memory. An attacker who can run a malicious web page or compromised renderer could trigger this memory corruption, potentially leading to sandbox escape or remote code execution.

asjidkalam Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 16 days

Reference: This is a highly-reliable refile of Issue https://issues.chromium.org/issues/497456775.

Why it was previously marked Not Reproducible: The previous PoC relied on a single-shot race condition (Worker Termination vs. IO Thread Execution). Because thread scheduling timings differ across hardware (e.g., M-series vs. Intel, core counts), it missed the race window on the triage machine.

The Fix: I have created a new PoC that acts as a "reliability sweep". It programmatically sweeps through thousands of attempts using varying profiles of [attempts x fanout x concurrency] (e.g., 1024x24x8). This systematically exhausts the thread scheduler variations, effectively guaranteeing the Use-After-Free race window is hit across different hardware profiles.

A video demonstrating the reliable crash on the latest ASan build is attached.


VULNERABILITY DETAILS

Class: Browser-process heap-use-after-free / memory corruption.

Impact: A compromised renderer or a malicious web page can trigger a browser-process UAF. Because the vulnerability bypasses MiraclePtr (MiraclePtr Status: NOT PROTECTED), this memory corruption can be exploited for an arbitrary memory read or controlled write in the browser process, leading to sandbox escape/RCE.

Root Cause: The bug is in content/browser/file_system_access/file_system_access_change_source.cc, in FileSystemAccessChangeSource::DidInitialize(...).

DidInitialize() moves initialization_callbacks_ to a local stack variable because executing the callbacks may cause this to be deleted. However, it still reads this->initialization_result_ from the member variable inside the callback loop:

C++
  initialization_result_ = std::move(result);

  // Move the callbacks to the stack since they may cause |this| to be deleted.
  auto initialization_callbacks = std::move(initialization_callbacks_);
  initialization_callbacks_.clear();
  for (auto& callback : initialization_callbacks) {
    // If the first callback deleted |this|, the next iteration UAFs here:
    std::move(callback).Run(initialization_result_->Clone()); 
  }

If the first callback tears down the watcher and deletes the source, the second iteration dereferences freed object state through this->initialization_result_. The implicit this pointer is not protected by BRP/MiraclePtr in this specific execution context.

VERSION

Chrome Version: Chromium 148.0.7761.0 canary (official mac-arm64 ASan prebuilt; reproduced March 31, 2026) Operating System: macOS 15.7.4 (24G517), arm64

REPRODUCTION CASE

Please see the attached individual files:

  • poc.html (The reliability sweep driver)
  • poc.js
  • worker.js
  • asan.log (ASan logs from the run)
  • FSA_UAF_POC.mov (Video evidence of reproduction)

The PoC is a minimized, pure-web reproduction utilizing a reliability sweep:

  1. Serve the PoC files from a local HTTP server (python3 -m http.server 8000).
  2. Launch the ASan browser.
  3. Click Start.
  4. In the directory picker, choose any writable local directory.
  5. The PoC will begin a staged sweep (Stage 1: 1024x24x8, Stage 2: 1024x32x8, Stage 3: 768x24x12).
  6. The browser will crash with a heap-use-after-free during one of these stages.

Exact Command Line from Repro (As recorded in asan.log):

Bash
profile_dir=$(mktemp -d /tmp/fsa_profile.XXXXXX)

ASAN_OPTIONS="detect_odr_violation=0:abort_on_error=1:symbolize=1:external_symbolizer_path=/Users/asjidkalam/fuzzing/chrome_research/chromium/src/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer:log_path=/tmp/fsa_local_context_arm64_default_symbolized_asan" \
open -n "/Users/asjidkalam/fuzzing/chrome_research/chromium/src/.asan_mac_arm64_run/Chromium.app" --args \
  --user-data-dir="$profile_dir" \
  --window-size=1280,900 \
  --window-position=0,0 \
  --enable-blink-features=FileSystemObserver \
  --test-type \
  --no-first-run \
  --no-default-browser-check \
  "http://127.0.0.1:8000/fsa_change_source_default_web_vrp_bundle/poc.html"

Notes:

  • No flags required: This repro does NOT use --disable-features=PartitionAllocBackupRefPtr.
  • Timing: If the crash does not occur in Stage 1, please allow the sweep to continue through Stage 3.

SUGGESTED PATCH

Move/Clone the initialization result to a local stack variable before entering the callback loop to decouple it from the object's lifetime:

C++
  auto initialization_callbacks = std::move(initialization_callbacks_);
  initialization_callbacks_.clear();
  auto result_clone = initialization_result_->Clone();
  for (auto& callback : initialization_callbacks) {
    std::move(callback).Run(result_clone->Clone());
  }

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION

Type of crash: browser-process ASan heap-use-after-free

Crash State:

  • Use path: content::FileSystemAccessChangeSource::DidInitialize(...)
  • Callback path: content::FileSystemAccessLocalPathWatcher::Initialize(...)
  • Free path: content::FileSystemAccessWatcherManager::RemoveObserver(...)
  • Allocation path: content::FileSystemAccessWatcherManager::CreateOwnedSourceForScope(...)

Summary from attached ASan log:

  • ERROR: AddressSanitizer: heap-use-after-free
  • SUMMARY: AddressSanitizer: heap-use-after-free ... in content::FileSystemAccessChangeSource::DidInitialize(...)
  • MiraclePtr Status: NOT PROTECTED

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

Impact

A compromised renderer or a malicious web page can trigger a browser-process use-after-free that bypasses MiraclePtr, potentially leading to sandbox escape or remote code execution.

What the attacker needed

Victim visits a malicious web page; user selects a writable directory

The fix

The initialization result should be cloned to a local stack variable before the callback loop to decouple it from the object's lifetime.

How it was found

  1. Serve the PoC files from a local HTTP server.
  2. Launch the ASan browser.
  3. Click Start.
  4. In the directory picker, choose any writable local directory.
  5. The PoC will begin a staged sweep.
  6. The browser will crash with a heap-use-after-free during one of these stages.

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 memory bug where a program keeps using a piece of memory after it has been freed. Here, a callback function deletes an object, but the code then tries to read from that same object again, causing a crash or worse. An attacker could exploit this to run their own code on the victim's computer.

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.