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

Heap buffer overflow in Extensions (CVE-2026-11143)

A desynchronisation between two internal maps in StorageMonitorLinux::EjectDevice can cause an out-of-bounds heap read when a busy device fails to unmount. An attacker who controls adjacent heap memory could potentially turn this into an arbitrary memory disclosure.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 53 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 without the Chrome Security team.

Overview: A desynchronization between internal tracking maps in StorageMonitorLinux::EjectDevice can lead to an out-of-bounds heap read when a busy device fails to unmount. The code attempts to copy a previously erased mount entry using an invalid std::map::end() iterator. If an attacker controls adjacent heap memory, this out-of-bounds copy can potentially be leveraged into an arbitrary memory disclosure.

Affected files:

  • components/storage_monitor/storage_monitor_linux.cc
  • components/storage_monitor/storage_monitor_linux.h

Estimated timestamp from git blame: 2013-04-30

Description

StorageMonitorLinux maintains two parallel maps to track storage devices: mount_info_map_ (maps mount paths to device info) and mount_priority_map_ (maps device paths to mount paths). A potential out-of-bounds (OOB) heap read exists due to a map desynchronization when ejecting a device.

When a device is ejected via chrome.system.storage.ejectDevice, StorageMonitorLinux::EjectDevice correctly removes the device's entry from mount_info_map_ but fails to remove the corresponding entry from mount_priority_map_. If the background /bin/umount operation fails (e.g., because the filesystem is busy), the device remains in the system's /etc/mtab.

During the next mtab update (StorageMonitorLinux::UpdateMtab), the code detects the device in the mtab but finds it missing from mount_info_map_. It then calls IsDeviceAlreadyMounted, which checks the stale mount_priority_map_ and incorrectly returns true. Believing the device was re-mounted, the code calls HandleDeviceMountedMultipleTimes.

Inside HandleDeviceMountedMultipleTimes, the code fetches the stale mount path from the priority map and executes:

C++
mount_info_map_[mount_point] = mount_info_map_.find(other_mount_point)->second;

Because other_mount_point was already erased, find() returns mount_info_map_.end(). This iterator is unconditionally dereferenced. In Chromium's libc++, end() points to an internal header node (__tree_end_node) embedded within the StorageMonitorLinux object.

The resulting copy assignment reads 152 bytes of overlapping object data (the size of MountPointInfo), spilling past the bounds of mount_info_map_ over subsequent class members (mtab_watcher_task_runner_, sequence_checker_, etc.) and into the adjacent heap chunk.

Because MountPointInfo contains multiple std::string objects (24 bytes each), an attacker who can manipulate the adjacent heap layout can forge a std::string object (by setting the LSB to 1 to indicate a "long string" and supplying a target pointer). The std::string copy constructor will interpret this OOB data and perform a wild memory read from the target pointer. The leaked data is then stored in the new mount_info_map_ entry and can be retrieved via the chrome.system.storage.getInfo API.

Potential Reproduction Steps

Note: These are suggested steps based on code analysis; our tooling agent does not have the ability to run live exploit code to verify a full chain.

  1. On Linux, install an extension with the system.storage permission.
  2. Insert a removable USB device.
  3. Using the extension or a browser tab, open a file on the mount point to ensure the filesystem is kept busy.
  4. Call chrome.system.storage.ejectDevice() targeting the USB device.
  5. Wait for or trigger a system /etc/mtab update (e.g., by mounting a different benign device).
  6. The browser process hits the stale entry and performs the out-of-bounds copy. If the heap was successfully groomed beforehand, calling chrome.system.storage.getInfo() will expose the leaked browser memory.

Suggested Fix

In StorageMonitorLinux::EjectDevice, ensure that when an entry is erased from mount_info_map_, it is also correctly removed from mount_priority_map_:

C++
// components/storage_monitor/storage_monitor_linux.cc:284
mount_info_map_.erase(mount_info);
auto priority_iter = mount_priority_map_.find(device);
if (priority_iter != mount_priority_map_.end()) {
  priority_iter->second.erase(path);
  if (priority_iter->second.empty()) {
    mount_priority_map_.erase(priority_iter);
  }
}

Additionally, add a bounds check in HandleDeviceMountedMultipleTimes to prevent end() dereferences:

C++
auto it = mount_info_map_.find(other_mount_point);
CHECK(it != mount_info_map_.end());
mount_info_map_[mount_point] = it->second;

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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.

Raised in root component due to access or custom field issues on 1456107

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

Likely, the code fails to remove the device from mount_priority_map_ when it is removed from mount_info_map_, leading to a stale entry and an invalid iterator dereference.

Impact

An attacker who can manipulate the adjacent heap layout could potentially achieve arbitrary memory disclosure, but the report notes that the reproduction steps are suggested and not verified.

What the attacker needed

Linux OS; Extension with system.storage permission; Removable USB device; Ability to keep filesystem busy

The fix

The fix should ensure that when an entry is erased from mount_info_map_, it is also removed from mount_priority_map_, and add a bounds check to prevent end() dereferences.

How it was found

  1. Install an extension with the system.storage permission on Linux.
  2. Insert a removable USB device.
  3. Open a file on the mount point to keep the filesystem busy.
  4. Call chrome.system.storage.ejectDevice() targeting the USB device.
  5. Trigger a system /etc/mtab update (e.g., by mounting another device).
  6. Call chrome.system.storage.getInfo() to potentially expose leaked memory.

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.

The browser keeps two lists of mounted storage devices. When you eject a device, one list is updated but the other is not. Later, the browser tries to look up the device in the first list, finds nothing, and accidentally reads memory outside the intended area. This could let an attacker see sensitive data from the browser's memory.

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 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.