Out of bounds read in Chromoting (CVE-2026-87525)
The Chrome Remote Desktop Windows host service, running as SYSTEM, manually deserialises Mojo message bytes read from a pipe written by a low-privileged child process, skipping the standard Mojo header validation. A compromised child process could craft a malformed message to cause out-of-bounds heap reads in the SYSTEM process and leak heap contents back to a remote client.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The Chrome Remote Desktop Windows host service running as SYSTEM manually deserializes Mojo message bytes received over a pipe from a low-privileged user-session child process. This manual deserialization bypasses standard Mojo message header validation, potentially allowing a compromised child process to trigger out-of-bounds heap reads in the SYSTEM process.
Affected files:
remoting/host/file_transfer/file_chooser_win.ccremoting/host/file_transfer/local_file_operations.cc
Estimated timestamp from git blame: 2022-08-09
Summary and Privilege Boundary
In Chrome Remote Desktop (CRD) on Windows, the high-privilege integration service (remoting_desktop.exe) runs with local SYSTEM privileges. To prompt the user with a file picker, it spawns a child process (remoting_host.exe --type=file_chooser) running in the context of the logged-in user.
The parent process reads serialized data from the child's STDOUT pipe and deserializes it into a mojom::FileChooserResult union. However, this is done manually without standard Mojo validation, creating a potential out-of-bounds (OOB) heap read vulnerability in the SYSTEM-privileged parent process.
Vulnerability Analysis
In remoting/host/file_transfer/file_chooser_win.cc (lines 174-179), the parent reads the response from the pipe into a local buffer and attempts to deserialize it directly:
mojo::Message serialized_message(base::span(response_bytes).first(bytes_read),
base::span<mojo::ScopedHandle>());
FileChooser::Result result;
if (!mojom::FileChooserResult::DeserializeFromMessage(
std::move(serialized_message), &result)) {
// ...
}
Standard Mojo IPC channels route incoming messages through mojo::internal::MessageHeaderValidator, which ensures the message header, version, and offsets are safe before any parsing or dispatching occurs. In contrast, manual deserialization via DeserializeFromMessage bypasses MessageHeaderValidator entirely.
In production/official builds, the safety checks in mojo::Message::payload() and mojo::Message::payload_num_bytes() rely on DCHECK macros which are compiled out. An attacker who can control the output of the low-privilege child process can craft a malformed Mojo message:
- Vector A (Relative Pointer Manipulation): For messages with
version >= 2,Message::payload()callsheader_v2()->payload.Get(), which invokesDecodePointerto resolve the payload's location using a relative 64-bit offset. An attacker can set this offset to an arbitrary relative distance, pointing the payload pointer directly into other areas of the parent process's heap. - Vector B (Payload Size Integer Underflow): For messages with
version < 2,payload_num_bytes()calculatesdata_num_bytes() - header()->num_bytes. Ifheader()->num_bytesis larger than the number of bytes read from the pipe, this subtraction underflows, initializing theValidationContextwith a massive size. The validator then treats the OOB heap memory as valid space.
If the OOB data structure successfully validates as a FileChooserResult with an error tag, the remoting::mojom::FileTransferError traits will extract arbitrary null-terminated strings from the OOB memory to populate the error's function and source_file fields. This error object is subsequently sent back to the remote client, potentially exposing sensitive SYSTEM-level heap contents (such as ASLR-defeating pointers or secret data) to the attacker.
Potential Attack Steps
Note: These are suggested/potential steps modeled from static code analysis; our tooling does not currently run active proofs of concept.
- A local attacker in the user session initiates a remote file transfer request.
- The high-privilege parent process launches the child file chooser process under the user's token.
- The attacker terminates or injects into the newly created child process, seizing control of its STDOUT handle.
- The attacker writes a crafted 32-byte Mojo message header to STDOUT where
versionis set to 2, and thepayloadoffset points to a targeted relative location on the parent process heap. - The child exits successfully, triggering
OnObjectSignaledin the parent. - The parent process reads the malformed message, validates the layout against the controlled OOB memory, and extracts strings from the OOB location.
- The parent returns the extracted strings back to the remote client within a
FileTransfer_Errorstructure, leaking the contents of the parent's heap.
Suggested Remediation
Instead of manually constructing and parsing raw bytes over an anonymous pipe, the file-chooser communication should be refactored to use a standard, validated Mojo IPC channel (such as an associated receiver/remote pair passed during process launch).
If manual deserialization must be maintained, the incoming message must be explicitly validated using a mojo::internal::MessageHeaderValidator or manual bounds checks prior to accessing the message's payload or calling DeserializeFromMessage.
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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.
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 parent process deserialises raw bytes from the child's pipe with DeserializeFromMessage instead of a validated Mojo channel, so MessageHeaderValidator never runs and the DCHECK-only bounds checks are compiled out in release builds.
Impact
A compromised child process could leak sensitive SYSTEM-level heap contents, such as ASLR-defeating pointers or secret data, to the attacker; the report notes these are potential steps from static analysis without an active proof of concept.
What the attacker needed
Local access to a user session; ability to compromise the child process; remote file transfer initiated
The fix
The file-chooser communication should be refactored to use a standard, validated Mojo IPC channel, or the incoming message should be explicitly validated with MessageHeaderValidator or manual bounds checks before deserialisation.
How it was found
- A local attacker in the user session initiates a remote file transfer request.
- The high-privilege parent process launches the child file chooser process under the user's token.
- The attacker terminates or injects into the newly created child process, seizing control of its STDOUT handle.
- The attacker writes a crafted Mojo message header to STDOUT with a version and payload offset aimed at the parent's heap.
- The child exits successfully, triggering OnObjectSignaled in the parent.
- The parent reads the malformed message, validates against the controlled out-of-bounds memory, and extracts strings from it.
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.
Chrome Remote Desktop on Windows has a powerful background service that runs with the highest system rights. To show a file picker, it starts a weaker helper process and reads data back from it, but it trusts that data without checking its shape. If an attacker takes over the helper, they could feed malformed data that makes the powerful service read memory it should not and send it back out.
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.