Inappropriate implementation in Mojo (CVE-2025-10201)
A bug in Mojo's file descriptor handling causes extra file descriptors beyond 128 in a single message to be silently dropped, leading to corruption when subsequent messages arrive. An attacker could exploit this to crash the browser or renderer, or to confuse file descriptors and potentially read data from other frames.
Originally disclosed on Chrome VRP
- Fix shipped in 23 days
VULNERABILITY DETAILS If more than 128 file descriptors are sent in a single Mojo message on platforms using ChannelPosix (Linux, Android, ChromeOS), the extra file descriptors are silently dropped and never seen by the receiver. If more file descriptors are subsequently transmitted on the same channel, the receiver will incorrectly combine the new file descriptors with the original incomplete set, resulting in a corrupted message.
The problem affects all process types using Mojo (browser, renderer, GPU, etc.). Its impact varies depending on the Mojo interface being attacked; we provide three reproduction cases as examples, but in general any interface using an arbitrary number of file descriptors (e.g., handle<shared_buffer>, BigBuffer, BigString16, etc.) in a single message may be vulnerable.
The root cause is that ChannelPosix::WriteNoLock[1] splits transmitted file descriptors into batches of 128 (kMaxSendmsgHandles). The first batch of 128 is sent correctly, but if all of the message data was also sent with the first message, subsequent batches only consist of file descriptors and have zero bytes of actual message data.
[1] https://source.chromium.org/chromium/chromium/src/+/main:mojo/core/channel_posix.cc;l=341;bpv=1
The underlying message conduit (sendmsg(2)) does not support sending zero bytes of actual data together with non-zero ancillary data (cmsg(3)), because the socket is created with SOCK_STREAM instead of SOCK_DGRAM. Therefore, the subsequent file descriptor batches will be silently dropped.
On the receiving side, the original message with >128 file descriptors will correctly receive the first batch of 128 file descriptors, but then remain stuck (DispatchResult::kMissingHandles) until enough other file descriptors are received from subsequent messages.
This bug was introduced in 2019 by https://source.chromium.org/chromium/chromium/src/+/5e25b795ba30601fbd543fb311e28c946de52560.
VERSION Chrome Version: 139.0.7258.5 (Official Build) beta (64-bit) Operating System: Linux (Debian 13), Android (16), ChromeOS (unconfirmed but presumed vulnerable)
REPRODUCTION CASE
Three reproduction cases are attached. To reproduce, download all the .html files to a directory, run python -m http.server, and navigate to each specific PoC page.
###########################################################################
poc1.html
###########################################################################
Simplest case; triggers an immediate browser or renderer segfault.
Sequence of events when clicking “Crash browser”:
-
Page uses postMessage to send 65 large ImageBitmaps to an iframe hosted by another renderer (requiring a trip through the browser process). Because each in-transit ArrayBuffer is represented by 2 file descriptors (1 on Android), this means sending 130 fds in a single message, causing the last 2 to become lost.
-
Page sends 1 small ImageBitmap to the same destination. This unblock processing of the message in the browser process.
-
The browser receives the incoming message (RemoteFrameHost.RouteMessageEvent) and attempts to copy image bitmaps into non-shared memory in CreateSkBitmapForPixelData.
-
Copying the first 64 bitmaps works normally, but the 65th bitmap is now pointing to the smaller shared memory segment sent in step 2, leading to an out-of-bounds read.
Sequence of events when clicking “Crash renderer”:
-
The page sends 65 transferable ArrayBuffers to the destination renderer. Again, the last one gets dropped, so the browser enqueues the message until another fd arrives.
-
The page sends 1 ArrayBuffer. The fd from this message unblocks the message enqueued in step one, so the browser tries to send 65 ArrayBuffers to the destination renderer. The last one is dropped, so the renderer is now holding the message in a queue until the next fd arrives. The message itself sent in this step is enqueued by the browser, because it is now missing an fd.
-
The page sends 1 smaller ArrayBuffer. The fd from this message unblocks the message queued by the browser in step 2, which in turn unblocks the message queued by the renderer in that same step.
-
The target renderer receives 65 ArrayBuffers, but the fd of the last one points to the smaller ArrayBuffer sent in step 2. The target renderer crashes when trying to copy the ArrayBuffer contents from shared memory.
Crucially, unlike ImageBitmaps, ArrayBuffers aren’t copied by the browser during transit, so the corrupted ArrayBuffer passes through the browser unnoticed.
###########################################################################
poc2.html
###########################################################################
This variant uses fd confusion to disrupt the ipcz handshake sequence when a MessageChannel is transferred between two renderers. The effect is that the destination renderer is terminated immediately by ipcz with this error:
[257966:5:0815/230712.588877:ERROR:third_party/ipcz/src/ipcz/router.cc:1124] Disconnecting Router due to failed introduction
Note that the destination frame can be a purely cross-origin page without any scripting or messaging access. Any other page/tab sharing its renderer will also be terminated. The PoC uses this to remove Google ads from bbc.com in another tab.
Note: This example requires the bbc page to load a google ad to show the exploit. There is a chance that bbc.com won't load any google ads due to pure chance, if that occurs please refresh until it does.
Sequence of events:
-
Page creates an iframe with the victim page.
-
Page sends 65 transferable ArrayBuffers to the target page with postMessage. Since the last one is lost, the message remains queued in the browser process.
-
Page sends a MessageChannel port to the target page. Its file descriptor will fill the remaining slot in the message from step 2, allowing that message to be sent to the target renderer. Because of the bug described in the issue, the last ArrayBuffer will again be lost on its way from the browser to the renderer, so the incoming message will remain queued in the destination renderer. The second message (with the MessageChannel port) will remain queued in the browser, because it no longer has a file descriptor.
-
Page sends one ArrayBuffer to the target page. This unblocks the MessageChannel port to be sent to the target renderer from the browser. However, the file descriptor from that message will now take the place of the last ArrayBuffer for the original message sent to the renderer. All 65 ArrayBuffers will now finally be delivered to the renderer, although the last one now points to the file descriptor of the MessageChannel.
-
Page sends one final ArrayBuffer, which unblocks the ArrayBuffer from step 4 to be sent to the renderer, which in turn unblocks the MessageChannel port from step 3 to finally be delivered to the renderer. However, that port’s file descriptor is now pointing to the ArrayBuffer from step 4.
-
Ipcz starts a handshake in the target renderer for the MessageChannel port. This fails because the MessageChannel’s file descriptor is actually an ArrayBuffer, and the renderer is killed.
#############################################################################
poc3.html
###########################################################################
Demonstrates file descriptor confusion by reading console.log() output from a frame (poc3-victim.html). Note: in this case the victim must be sharing the renderer process with the attacker, so this attack is more realistic on platforms with limited site isolation (Android & Android WebView).
While this example uses console.log(), similar fd confusion can be achieved with other mojo frame APIs which use BigString16 or other types of shared memory (e.g., copy & paste, printing, drag & drop).
Sequence of events:
-
Page sends the following to a sandboxed iframe created by the attacker: 65 transferables (A), 1 transferable (B), and 1 transferable (C). This results in the following mojo channel states:
- Main page => browser channel: transferable C waiting for 1 fd.
- Browser => evil frame: transferable B waiting for 1 fd.
-
Victim page is loaded in another frame and does a console.log(). The fd from this unblocks transferable C in the main page => browser channel, which in turn unblocks transferable B in the browser => evil frame channel.
-
Evil frame receives a message with transferable B, but its fd actually points to the console.log() message from the victim frame. The evil frame is able to extract the message by reading the ArrayBuffer contents.
#############################################################################
poc4.html
###########################################################################
Still being developed at the time of this submission. We believe it may be possible to do a sandboxed ACE/possible sandbox-escaping ACE by confusing mojo into believing that a user controlled transferable is instead a privileged transferable.
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: tab + browser + frame Crash State: attached
CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Sahan Fernando & Anon
Context
Mojo is Chrome's inter-process communication (IPC) system. It carries messages between the browser process, renderers, the GPU process and other process types, and it can attach file descriptors (fds) to those messages so that shared memory and other OS handles can be passed between processes. On platforms that use ChannelPosix (Linux, Android and ChromeOS), the transport is implemented in mojo/core/channel_posix.cc.
The report describes an inappropriate implementation in Mojo, tracked as CVE-2025-10201, disclosed on 2025-09-09 through the Chrome VRP. The researcher is credited as Sahan Fernando & Anon, the severity is high, and the bounty was 30,000.00 USD. The affected asset is Mojo itself.
The bug concerns what happens when a single Mojo message carries more than 128 file descriptors. The extra descriptors are silently dropped and never seen by the receiver. If more descriptors are later transmitted on the same channel, the receiver combines the new descriptors with the original incomplete set, producing a corrupted message.
Setup
The report gives the following environment details:
- Chrome Version: 139.0.7258.5 (Official Build) beta (64-bit)
- Operating System: Linux (Debian 13), Android (16), ChromeOS (unconfirmed but presumed vulnerable)
No accounts, roles or special tooling are described. The reproduction cases are three attached .html files. To reproduce, the researcher says to download all the .html files to a directory, run python -m http.server, and navigate to each specific PoC page.
python -m http.server
The problem affects all process types using Mojo (browser, renderer, GPU, etc.). The impact varies depending on the Mojo interface being attacked. The report provides three reproduction cases as examples, but states that in general any interface using an arbitrary number of file descriptors in a single message may be vulnerable, giving handle<shared_buffer>, BigBuffer and BigString16 as examples.
Finding it
The researcher identified that ChannelPosix::WriteNoLock splits transmitted file descriptors into batches of 128, a constant named kMaxSendmsgHandles. The first batch of 128 is sent correctly. However, if all of the message data was also sent with the first message, the subsequent batches consist only of file descriptors and have zero bytes of actual message data.
The referenced source location is:
https://source.chromium.org/chromium/chromium/src/+/main:mojo/core/channel_posix.cc;l=341;bpv=1
The underlying message conduit, sendmsg(2), does not support sending zero bytes of actual data together with non-zero ancillary data (cmsg(3)), because the socket is created with SOCK_STREAM instead of SOCK_DGRAM. As a result, the subsequent file descriptor batches are silently dropped.
On the receiving side, the original message with more than 128 file descriptors correctly receives the first batch of 128 file descriptors, but then remains stuck in DispatchResult::kMissingHandles until enough other file descriptors are received from subsequent messages.
The researcher states that the bug was introduced in 2019 by this commit:
https://source.chromium.org/chromium/chromium/src/+/[redacted]
Exploitation
The report provides three reproduction cases. Each is a separate .html file served from the same directory.
Step 1: poc1.html, crash the browser
This is described as the simplest case. It triggers an immediate browser or renderer segfault. The sequence of events when clicking "Crash browser" is:
- The page uses
postMessageto send 65 largeImageBitmapobjects to an iframe hosted by another renderer, requiring a trip through the browser process. Because each in-transitArrayBufferis represented by 2 file descriptors (1 on Android), this means sending 130 fds in a single message, causing the last 2 to become lost. - The page sends 1 small
ImageBitmapto the same destination. This unblocks processing of the message in the browser process. - The browser receives the incoming message (
RemoteFrameHost.RouteMessageEvent) and attempts to copy image bitmaps into non-shared memory inCreateSkBitmapForPixelData. - Copying the first 64 bitmaps works normally, but the 65th bitmap is now pointing to the smaller shared memory segment sent in step 2, leading to an out-of-bounds read.
Step 2: poc1.html, crash the renderer
The sequence of events when clicking "Crash renderer" is:
- The page sends 65 transferable
ArrayBufferobjects to the destination renderer. Again, the last one gets dropped, so the browser enqueues the message until another fd arrives. - The page sends 1
ArrayBuffer. The fd from this message unblocks the message enqueued in step one, so the browser tries to send 65ArrayBufferobjects to the destination renderer. The last one is dropped, so the renderer is now holding the message in a queue until the next fd arrives. The message itself sent in this step is enqueued by the browser, because it is now missing an fd. - The page sends 1 smaller
ArrayBuffer. The fd from this message unblocks the message queued by the browser in step 2, which in turn unblocks the message queued by the renderer in that same step. - The target renderer receives 65
ArrayBufferobjects, but the fd of the last one points to the smallerArrayBuffersent in step 2. The target renderer crashes when trying to copy theArrayBuffercontents from shared memory.
The researcher notes that, crucially, unlike ImageBitmap objects, ArrayBuffer objects are not copied by the browser during transit, so the corrupted ArrayBuffer passes through the browser unnoticed.
Step 3: poc2.html, disrupt the ipcz handshake
This variant uses fd confusion to disrupt the ipcz handshake sequence when a MessageChannel is transferred between two renderers. The effect is that the destination renderer is terminated immediately by ipcz with this error:
[257966:5:0815/230712.588877:ERROR:third_party/ipcz/src/ipcz/router.cc:1124] Disconnecting Router due to failed introduction
The researcher notes that the destination frame can be a purely cross-origin page without any scripting or messaging access, and that any other page or tab sharing its renderer will also be terminated. The PoC uses this to remove Google ads from bbc.com in another tab.
The report adds a note that this example requires the bbc page to load a Google ad to show the exploit, and that there is a chance bbc.com will not load any Google ads due to pure chance; if that occurs, the page should be refreshed until it does.
The sequence of events is:
- The page creates an iframe with the victim page.
- The page sends 65 transferable
ArrayBufferobjects to the target page withpostMessage. Since the last one is lost, the message remains queued in the browser process. - The page sends a
MessageChannelport to the target page. Its file descriptor will fill the remaining slot in the message from step 2, allowing that message to be sent to the target renderer. Because of the bug described in the issue, the lastArrayBufferwill again be lost on its way from the browser to the renderer, so the incoming message will remain queued in the destination renderer. The second message (with theMessageChannelport) will remain queued in the browser, because it no longer has a file descriptor. - The page sends one
ArrayBufferto the target page. This unblocks theMessageChannelport to be sent to the target renderer from the browser. However, the file descriptor from that message will now take the place of the lastArrayBufferfor the original message sent to the renderer. All 65ArrayBufferobjects will now finally be delivered to the renderer, although the last one now points to the file descriptor of theMessageChannel. - The page sends one final
ArrayBuffer, which unblocks theArrayBufferfrom step 4 to be sent to the renderer, which in turn unblocks theMessageChannelport from step 3 to finally be delivered to the renderer. However, that port's file descriptor is now pointing to theArrayBufferfrom step 4. - Ipcz starts a handshake in the target renderer for the
MessageChannelport. This fails because theMessageChannel's file descriptor is actually anArrayBuffer, and the renderer is killed.
Step 4: poc3.html, read console.log output from another frame
This case demonstrates file descriptor confusion by reading console.log() output from a frame (poc3-victim.html). The researcher notes that in this case the victim must be sharing the renderer process with the attacker, so this attack is more realistic on platforms with limited site isolation (Android and Android WebView).
While this example uses console.log(), the researcher states that similar fd confusion can be achieved with other Mojo frame APIs which use BigString16 or other types of shared memory, for example copy and paste, printing, and drag and drop.
The sequence of events is:
- The page sends the following to a sandboxed iframe created by the attacker: 65 transferables (A), 1 transferable (B), and 1 transferable (C). This results in the following Mojo channel states:
- Main page to browser channel: transferable C waiting for 1 fd.
- Browser to evil frame: transferable B waiting for 1 fd.
- The victim page is loaded in another frame and does a
console.log(). The fd from this unblocks transferable C in the main page to browser channel, which in turn unblocks transferable B in the browser to evil frame channel. - The evil frame receives a message with transferable B, but its fd actually points to the
console.log()message from the victim frame. The evil frame is able to extract the message by reading theArrayBuffercontents.
Step 5: poc4.html, work in progress
This case was still being developed at the time of submission. The researcher believes it may be possible to do a sandboxed ACE or possible sandbox-escaping ACE by confusing Mojo into believing that a user controlled transferable is instead a privileged transferable.
Crash information
The report asks for additional information for crashes and states:
- Type of crash: tab + browser + frame
- Crash State: attached
Root cause
The root cause is in ChannelPosix::WriteNoLock, which splits transmitted file descriptors into batches of 128 (kMaxSendmsgHandles). If all of the message data was also sent with the first message, the subsequent batches consist only of file descriptors and have zero bytes of actual message data.
The underlying sendmsg(2) conduit does not support sending zero bytes of actual data together with non-zero ancillary data (cmsg(3)), because the socket is created with SOCK_STREAM instead of SOCK_DGRAM. The subsequent file descriptor batches are therefore silently dropped.
When those later descriptors arrive, they are combined with the original incomplete set, corrupting the message.
The report states the bug was introduced in 2019 by the commit referenced above.
Impact
Its impact varies depending on the Mojo interface being attacked. The report gives three reproduction cases as examples:
- A browser or renderer segfault via
ImageBitmaporArrayBuffertransfer (poc1.html). - Termination of a destination renderer by ipcz when a
MessageChannelhandshake fails, including a purely cross-origin page with no scripting or messaging access, and any other page or tab sharing that renderer (poc2.html). - Reading
console.log()output from a victim frame that shares the renderer process with the attacker, which the researcher says is more realistic on platforms with limited site isolation such as Android and Android WebView (poc3.html).
The researcher also states a belief, not a confirmed result, that a sandboxed ACE or possible sandbox-escaping ACE may be achievable by confusing Mojo into believing that a user controlled transferable is instead a privileged transferable (poc4.html, still being developed at the time of submission).
In general, any interface using an arbitrary number of file descriptors in a single message may be vulnerable, with handle<shared_buffer>, BigBuffer and BigString16 given as examples.
Fix
The original report text does not describe a fix or a change that was made. It only documents the bug, the reproduction cases and the conditions under which they work. What should be fixed, based on the report's own analysis, is the batching behaviour in ChannelPosix::WriteNoLock: batches that consist only of file descriptors and carry zero bytes of message data are silently dropped by the SOCK_STREAM socket, The report does not state which change, if any, was applied. The report does not state which change, if any, was applied.
Variants to test
The report's own analysis suggests the following directions:
- Other Mojo interfaces that accept an arbitrary number of file descriptors in a single message, such as
handle<shared_buffer>,BigBufferandBigString16. A positive result is a message whose later descriptors are dropped and then combined with descriptors from a subsequent message, producing a corrupted message on the receiving side. - Other Mojo frame APIs that use
BigString16or other types of shared memory, for example copy and paste, printing, and drag and drop. A positive result is the same fd confusion pattern: a descriptor from one message taking the place of a descriptor expected by another. - Platforms with limited site isolation, such as Android and Android WebView, where a victim frame can share a renderer process with the attacker. A positive result is reading another frame's
console.log()output, or similar data, through a confused descriptor. - Confusing Mojo into treating a user controlled transferable as a privileged transferable, as sketched in poc4.html. The report describes this as still being developed and expresses only a belief that a sandboxed ACE or possible sandbox-escaping ACE may be possible; a positive result would be a confirmed sandbox escape, which the report does not claim to have achieved.
What happened, in plain words
Chrome is not one program. It is a collection of programs, called processes, that talk to each other. There is a process that draws the window and the tabs (the browser process), a process for each tab that runs the page's code (a renderer), a process for graphics (the GPU process), and others. These processes need to exchange data constantly: a page sends an image to another page, a tab asks the browser to open a file, and so on.
The system Chrome uses for this internal conversation is called Mojo. Think of Mojo as an internal postal service: each process puts a message in an envelope, writes the address of the recipient, and hands it to the postal service, which delivers it. Sometimes the envelope also carries a key to a shared storage room, so the recipient can open that room and read a large amount of data without copying it through the post. In operating system terms, that key is a file descriptor, usually shortened to fd.
This report describes a bug in Mojo. When one message tries to carry more than 128 of these keys, the extra keys are quietly thrown away. Nobody is told. The recipient waits until enough other keys arrive on the same route. If more keys arrive later on the same route, the recipient mixes the new keys with the old, incomplete set, and the message becomes corrupted: a key that was meant to open one storage room now opens a different one.
The bug is tracked as CVE-2025-10201. CVE stands for Common Vulnerabilities and Exposures: a public catalogue number given to a security flaw so people can refer to it unambiguously. It was disclosed on 2025-09-09 through the Chrome VRP. VRP stands for Vulnerability Reward Program: Google pays people who report security bugs in Chrome. The researchers are credited as Sahan Fernando & Anon. The severity is high, and the bounty was 30,000.00 USD. The affected asset is Mojo itself.
The report gives three reproduction cases, called proofs of concept or PoCs, plus a fourth that was still being developed. They show that the bug can crash the browser, crash a tab, terminate a destination renderer including a purely cross-origin page, and read another frame's console output.
Context
What Mojo is
Mojo is Chrome's inter-process communication system, usually shortened to IPC. IPC simply means the way separate programs on the same computer talk to each other. Mojo carries messages between the browser process, renderers, the GPU process and other process types.
Mojo can also attach file descriptors to those messages. A file descriptor is a small number that the operating system uses as a handle to something: an open file, a network connection, or a chunk of shared memory. Passing a file descriptor from one process to another is like handing someone the key to a locker instead of copying everything inside the locker. It is fast, because the data is not copied.
On platforms that use a component called ChannelPosix (Linux, Android and ChromeOS), the transport is implemented in a source file called mojo/core/channel_posix.cc. "Transport" here means the actual mechanism that moves bytes between processes. The name ChannelPosix tells you it is the version used on POSIX-style operating systems, which is the family that includes Linux, Android and ChromeOS.
What the report is about
The report describes an inappropriate implementation in Mojo. "Inappropriate implementation" is a weakness category: it means the code does something that is technically allowed but does not handle a case it should have handled. It is not a simple typo or a missing password check; it is a design or logic gap.
The bug concerns what happens when a single Mojo message carries more than 128 file descriptors. The extra descriptors are silently dropped and never seen by the receiver. If more descriptors are later transmitted on the same channel, the receiver combines the new descriptors with the original incomplete set, producing a corrupted message.
A "channel" here is one established route between two processes, like a dedicated phone line. Once the line is open, messages travel along it in order.
Setup
The environment
The report gives the following environment details:
- Chrome Version: 139.0.7258.5 (Official Build) beta (64-bit)
- Operating System: Linux (Debian 13), Android (16), ChromeOS (unconfirmed but presumed vulnerable)
"Beta" means a pre-release build of Chrome that is more stable than a nightly build but not yet the general release. "64-bit" refers to the width of the numbers the processor works with; it is a standard detail in bug reports because it can affect behaviour.
"Unconfirmed but presumed vulnerable" for ChromeOS means the researcher did not test on ChromeOS but expects the same bug because ChromeOS uses the same ChannelPosix transport.
No accounts, roles or special tooling are described. You do not need to be logged in anywhere, and you do not need a debugger or a special build. The reproduction cases are three attached .html files. An .html file is a web page: a text file that a browser can open and run.
How to run the demonstrations
To reproduce, the researcher says to download all the .html files to a directory, run the following command in that directory, and navigate to each specific PoC page.
python -m http.server
Line by line:
pythonruns the Python interpreter, a program that executes Python code.-m http.servertells Python to run one of its built-in modules, calledhttp.server. That module starts a tiny web server that serves the files in the current directory over HTTP, the protocol browsers use to fetch pages.- The command has no address or port, so it uses defaults: it listens on the local machine and prints the address to open in the browser.
Why this step is needed: browsers treat pages loaded from a local file differently from pages loaded over HTTP. Some features, especially those involving separate origins and iframes, behave more realistically when the page is served by a web server. Running a local server makes the demonstrations behave as they would on a real site.
Scope of the problem
The problem affects all process types using Mojo (browser, renderer, GPU, etc.). The impact varies depending on the Mojo interface being attacked. An "interface" here means a named set of operations that one process offers to another, like a menu of requests. The report provides three reproduction cases as examples, but states that in general any interface using an arbitrary number of file descriptors in a single message may be vulnerable, giving handle<shared_buffer>, BigBuffer and BigString16 as examples.
handle<shared_buffer>is a handle to a shared memory buffer: a block of memory that two processes can both read and write.BigBufferis a Mojo type for sending a large amount of data, which may be split between inline bytes and shared memory.BigString16is a Mojo type for sending a large text string, where each character is 16 bits wide.
All three can involve many file descriptors in one message, which is exactly the condition that triggers the bug.
Finding it
The batching behaviour
The researcher identified that ChannelPosix::WriteNoLock splits transmitted file descriptors into batches of 128, a constant named kMaxSendmsgHandles. A "constant" is a named fixed value in the code. "Batches" means groups: instead of sending all descriptors at once, the code sends them 128 at a time.
The first batch of 128 is sent correctly. However, if all of the message data was also sent with the first message, the subsequent batches consist only of file descriptors and have zero bytes of actual message data.
In plain terms: the postal service puts the letter and the first 128 keys in one envelope. The remaining keys are put in follow-up envelopes that contain no letter at all, only keys. The operating system refuses to deliver an envelope that has keys but no letter, so those follow-up envelopes vanish.
The referenced source location is:
https://source.chromium.org/chromium/chromium/src/+/main:mojo/core/channel_posix.cc;l=341;bpv=1
This is a link to the Chromium source code browser. channel_posix.cc is the file, l=341 points to line 341, and bpv=1 is a display option. It is where the batching code lives.
Why the extra batches are dropped
The underlying message conduit, sendmsg(2), does not support sending zero bytes of actual data together with non-zero ancillary data (cmsg(3)), because the socket is created with SOCK_STREAM instead of SOCK_DGRAM. As a result, the subsequent file descriptor batches are silently dropped.
This paragraph is dense, so let us unpack it term by term.
sendmsg(2)is an operating system call, meaning a request a program makes to the kernel, the core of the operating system. It sends a message on a socket. The(2)is a convention in Unix documentation meaning "section 2 of the manual, system calls".- A socket is one end of a communication link between two programs. You can think of it as a pipe with two openings.
- "Ancillary data" is extra information attached to a message alongside the main payload. File descriptors travel as ancillary data. The
cmsg(3)reference points to the manual page for control messages, which is the mechanism used to carry ancillary data. The(3)means "section 3, library functions". SOCK_STREAMandSOCK_DGRAMare two kinds of socket.SOCK_STREAMis like a phone call: a continuous stream of bytes, with no message boundaries.SOCK_DGRAMis like sending postcards: each one is a separate, self-contained message.
Why the socket type matters: on a SOCK_STREAM socket, the kernel will not accept ancillary data unless there is at least one byte of ordinary data in the same call. The follow-up batches have zero bytes of ordinary data, so the kernel discards them. The program is not told. That is what "silently dropped" means: no error is returned, and nobody notices at the time.
What the receiver sees
On the receiving side, the original message with more than 128 file descriptors correctly receives the first batch of 128 file descriptors, but then remains stuck in DispatchResult::kMissingHandles until enough other file descriptors are received from subsequent messages.
DispatchResult::kMissingHandles is a status value in the code meaning "I cannot deliver this message yet because handles are missing". The receiver holds the partial message in a queue, waiting. It has no way to know that the missing descriptors were thrown away; it simply waits for more to arrive.
When the bug was introduced
The researcher states that the bug was introduced in 2019 by this commit:
https://source.chromium.org/chromium/chromium/src/+/[redacted]
A "commit" is a recorded change to a code repository, with a unique identifier. This link points to the specific change that introduced the faulty batching. Knowing when a bug appeared helps maintainers understand which versions are affected and why the problem went unnoticed for years.
Exploitation
"Exploitation" means turning a bug into an observable effect. The report provides three reproduction cases. Each is a separate .html file served from the same directory. The word "payload" in security usually means the data or code crafted to trigger the bug; here the payloads are the JavaScript actions described in each sequence.
Step 1: poc1.html, crash the browser
This is described as the simplest case. It triggers an immediate browser or renderer segfault. A "segfault" is a segmentation fault: the operating system stops a program because it tried to read or write memory it is not allowed to touch. It is the usual way a crash happens at the lowest level.
The sequence of events when clicking "Crash browser" is:
- The page uses
postMessageto send 65 largeImageBitmapobjects to an iframe hosted by another renderer, requiring a trip through the browser process. Because each in-transitArrayBufferis represented by 2 file descriptors (1 on Android), this means sending 130 fds in a single message, causing the last 2 to become lost. - The page sends 1 small
ImageBitmapto the same destination. This unblocks processing of the message in the browser process. - The browser receives the incoming message (
RemoteFrameHost.RouteMessageEvent) and attempts to copy image bitmaps into non-shared memory inCreateSkBitmapForPixelData. - Copying the first 64 bitmaps works normally, but the 65th bitmap is now pointing to the smaller shared memory segment sent in step 2, leading to an out-of-bounds read.
Now the terms:
postMessageis a browser API. An API, or Application Programming Interface, is a set of functions a program offers so other programs can use it.postMessagelets one page send a message to another page, for example to an iframe.- An iframe is a page embedded inside another page, like a picture frame on a wall holding a smaller picture.
- An
ImageBitmapis a browser object representing an image ready to be drawn. It can be transferred between pages. - An
ArrayBufferis a browser object representing a raw block of bytes. It is often used for binary data. - "Transferable" means the object can be handed over to another page rather than copied. Handing over is faster, and it is why file descriptors are involved: the underlying memory is shared, and the key to that memory is passed along.
- "Out-of-bounds read" means reading memory outside the intended area. It is dangerous because the bytes read may belong to something else entirely.
Why each step was taken:
- Sending 65 large bitmaps is chosen because each one needs 2 descriptors, so 65 of them need 130 descriptors, which is just over the 128 limit. The last 2 are lost. This is the trigger.
- The small bitmap is sent to provide the missing descriptors. It is small so that when it is later mistaken for the 65th bitmap, the mismatch is obvious and leads to reading past the end of a small buffer.
- The browser has to copy the bitmaps because they are crossing a process boundary and the receiving side needs its own copy. This copy step is where the corrupted descriptor is used.
- The 65th bitmap now points at the small shared memory from step 2. The copy code reads as if the memory were large, runs past the end, and the process crashes.
Step 2: poc1.html, crash the renderer
The sequence of events when clicking "Crash renderer" is:
- The page sends 65 transferable
ArrayBufferobjects to the destination renderer. Again, the last one gets dropped, so the browser enqueues the message until another fd arrives. - The page sends 1
ArrayBuffer. The fd from this message unblocks the message enqueued in step one, so the browser tries to send 65ArrayBufferobjects to the destination renderer. The last one is dropped, so the renderer is now holding the message in a queue until the next fd arrives. The message itself sent in this step is enqueued by the browser, because it is now missing an fd. - The page sends 1 smaller
ArrayBuffer. The fd from this message unblocks the message queued by the browser in step 2, which in turn unblocks the message queued by the renderer in that same step. - The target renderer receives 65
ArrayBufferobjects, but the fd of the last one points to the smallerArrayBuffersent in step 2. The target renderer crashes when trying to copy theArrayBuffercontents from shared memory.
The researcher notes that, crucially, unlike ImageBitmap objects, ArrayBuffer objects are not copied by the browser during transit, so the corrupted ArrayBuffer passes through the browser unnoticed.
"Enqueues" means puts in a queue, a waiting line. The browser holds the message until the missing descriptor arrives, then forwards it.
Why each step was taken:
- Sending 65 buffers again crosses the 128-descriptor limit (65 times 2 equals 130), so the last descriptor is lost and the message waits.
- The single buffer supplies one descriptor, which lets the waiting message move forward. But the same limit is hit again on the next hop, so the message waits once more, and the new message also waits.
- The smaller buffer supplies another descriptor, which releases the chain of waiting messages.
- The last buffer in the original message now uses the descriptor of the smaller buffer. When the renderer copies the contents, it reads a small block as if it were large, and crashes.
The key difference from the bitmap case is that the browser does not inspect ArrayBuffer contents. It just forwards the descriptors. So the corruption is not caught in the middle.
Step 3: poc2.html, disrupt the ipcz handshake
This variant uses fd confusion to disrupt the ipcz handshake sequence when a MessageChannel is transferred between two renderers. The effect is that the destination renderer is terminated immediately by ipcz with this error:
[257966:5:0815/230712.588877:ERROR:third_party/ipcz/src/ipcz/router.cc:1124] Disconnecting Router due to failed introduction
Line by line:
[257966:5:0815/230712.588877:ERROR:...]is a log prefix.257966is a process identifier,5is a thread identifier, and0815/230712.588877is a timestamp in month-day and time form.ERRORis the log level.third_party/ipcz/src/ipcz/router.cc:1124is the source file and line where the message was logged.Disconnecting Router due to failed introductionis the human-readable message: a router, which is a component that forwards messages, was disconnected because an introduction failed.
"ipcz" is the newer internal transport that Chrome uses for some inter-process connections. A "handshake" is an initial exchange where two sides agree on how to talk. "Introduction" here means the step where two endpoints are introduced to each other so they can form a connection.
The researcher notes that the destination frame can be a purely cross-origin page without any scripting or messaging access, and that any other page or tab sharing its renderer will also be terminated. The PoC uses this to remove Google ads from bbc.com in another tab.
"Cross-origin" means a page from a different site. Browsers normally prevent one site from reading or controlling another site's page. Here, the attacker does not need to read the victim page at all: the crash happens because the victim shares a renderer process with the attacker's frame, and killing that process kills everything in it.
The report adds a note that this example requires the bbc page to load a Google ad to show the exploit, and that there is a chance bbc.com will not load any Google ads due to pure chance; if that occurs, the page should be refreshed until it does.
The sequence of events is:
- The page creates an iframe with the victim page.
- The page sends 65 transferable
ArrayBufferobjects to the target page withpostMessage. Since the last one is lost, the message remains queued in the browser process. - The page sends a
MessageChannelport to the target page. Its file descriptor will fill the remaining slot in the message from step 2, allowing that message to be sent to the target renderer. Because of the bug described in the issue, the lastArrayBufferwill again be lost on its way from the browser to the renderer, so the incoming message will remain queued in the destination renderer. The second message (with theMessageChannelport) will remain queued in the browser, because it no longer has a file descriptor. - The page sends one
ArrayBufferto the target page. This unblocks theMessageChannelport to be sent to the target renderer from the browser. However, the file descriptor from that message will now take the place of the lastArrayBufferfor the original message sent to the renderer. All 65ArrayBufferobjects will now finally be delivered to the renderer, although the last one now points to the file descriptor of theMessageChannel. - The page sends one final
ArrayBuffer, which unblocks theArrayBufferfrom step 4 to be sent to the renderer, which in turn unblocks theMessageChannelport from step 3 to finally be delivered to the renderer. However, that port's file descriptor is now pointing to theArrayBufferfrom step 4. - Ipcz starts a handshake in the target renderer for the
MessageChannelport. This fails because theMessageChannel's file descriptor is actually anArrayBuffer, and the renderer is killed.
A MessageChannel is a browser API that creates two connected endpoints, called ports, which can send messages to each other. Transferring a port to another page is a common way to set up direct communication between two pages.
Why each step was taken:
- The iframe gives the attacker a target frame in the victim's renderer.
- The 65 buffers again cross the limit, leaving the message waiting for one descriptor.
- The port supplies that descriptor, so the first message moves on. But the same limit is hit again, so the first message waits in the renderer, and the port message waits in the browser.
- The single buffer releases the port message, but its descriptor is now used as the last buffer of the original message. The renderer finally gets all 65 buffers, but the last one is really the port.
- The final buffer releases the chain, and the port is delivered, but its descriptor now points at the buffer from step 4.
- When ipcz tries to set up the port, it finds a buffer where it expected a port. The handshake fails, and the renderer is terminated.
Step 4: poc3.html, read console.log output from another frame
This case demonstrates file descriptor confusion by reading console.log() output from a frame (poc3-victim.html). The researcher notes that in this case the victim must be sharing the renderer process with the attacker, so this attack is more realistic on platforms with limited site isolation (Android and Android WebView).
console.log() is a browser API that prints a message to the developer console, a debugging panel. "Site isolation" is a Chrome security feature that puts pages from different sites into different renderer processes, so one site cannot easily affect another. "Limited site isolation" means that on some platforms, such as Android and Android WebView, pages from different sites may share a renderer. Android WebView is the component apps use to show web content inside an app.
While this example uses console.log(), the researcher states that similar fd confusion can be achieved with other Mojo frame APIs which use BigString16 or other types of shared memory, for example copy and paste, printing, and drag and drop.
Why these examples matter: they all send text or data through shared memory, so they all involve file descriptors in a single message, which is the condition for the bug.
The sequence of events is:
- The page sends the following to a sandboxed iframe created by the attacker: 65 transferables (A), 1 transferable (B), and 1 transferable (C). This results in the following Mojo channel states:
- Main page to browser channel: transferable C waiting for 1 fd.
- Browser to evil frame: transferable B waiting for 1 fd.
- The victim page is loaded in another frame and does a
console.log(). The fd from this unblocks transferable C in the main page to browser channel, which in turn unblocks transferable B in the browser to evil frame channel. - The evil frame receives a message with transferable B, but its fd actually points to the
console.log()message from the victim frame. The evil frame is able to extract the message by reading theArrayBuffercontents.
A "sandboxed iframe" is an iframe with restrictions applied, such as not being allowed to run scripts or open popups. "Evil frame" is the report's informal name for the attacker's iframe.
Why each step was taken:
- The 65 transferables (A) cross the limit, leaving a message waiting. Then B and C are sent to set up two waiting messages on two different channels, each missing one descriptor.
- The victim's
console.log()produces a descriptor. That descriptor releases C, which releases B. The chain of waiting messages moves forward. - B is delivered to the evil frame, but its descriptor now points at the victim's console message. Reading the buffer contents therefore reads the victim's text.
Step 5: poc4.html, work in progress
This case was still being developed at the time of submission. The researcher believes it may be possible to do a sandboxed ACE or possible sandbox-escaping ACE by confusing Mojo into believing that a user controlled transferable is instead a privileged transferable.
ACE stands for arbitrary code execution: the ability to make a computer run code of your choosing. A "sandbox" is a security boundary that limits what a process can do, for example preventing a renderer from reading files on disk. A "sandboxed ACE" means running code inside the sandbox, which is serious but still contained. A "sandbox-escaping ACE" means running code outside the sandbox, which is much more serious.
"Privileged" means having more rights than an ordinary page. The idea is that if Mojo can be tricked into treating an attacker's object as one that belongs to a more powerful component, the attacker might gain those powers. The report presents this as a belief, not a confirmed result.
Crash information
The report asks for additional information for crashes and states:
- Type of crash: tab + browser + frame
- Crash State: attached
"Tab + browser + frame" means the crash affected a tab, the browser process, and a frame inside a page. "Crash State: attached" means the detailed crash information was attached to the report rather than written inline.
Root cause
The root cause is in ChannelPosix::WriteNoLock, which splits transmitted file descriptors into batches of 128 (kMaxSendmsgHandles). If all of the message data was also sent with the first message, the subsequent batches consist only of file descriptors and have zero bytes of actual message data.
The underlying sendmsg(2) conduit does not support sending zero bytes of actual data together with non-zero ancillary data (cmsg(3)), because the socket is created with SOCK_STREAM instead of SOCK_DGRAM. The subsequent file descriptor batches are therefore silently dropped.
When those later descriptors arrive, they are combined with the original incomplete set, corrupting the message.
The report states the bug was introduced in 2019 by the commit referenced above.
In everyday terms: the sender thinks it has sent everything, the receiver thinks it is still waiting, and neither side reports an error. The mistake only becomes visible when a later message supplies the missing pieces, and by then the pieces are attached to the wrong message.
Impact
Its impact varies depending on the Mojo interface being attacked. The report gives three examples:
- A browser or renderer segfault via
ImageBitmaporArrayBuffertransfer (poc1.html). - Termination of a destination renderer by ipcz when a
MessageChannelhandshake fails, including a purely cross-origin page with no scripting or messaging access, and any other page or tab sharing that renderer (poc2.html). - Reading
console.log()output from a victim frame that shares the renderer process with the attacker, which the researcher says is more realistic on platforms with limited site isolation such as Android and Android WebView (poc3.html).
The researcher also states a belief, not a confirmed result, that a sandboxed ACE or possible sandbox-escaping ACE may be achievable by confusing Mojo into believing that a user controlled transferable is instead a privileged transferable (poc4.html, still being developed at the time of submission).
In general, any interface using an arbitrary number of file descriptors in a single message may be vulnerable, with handle<shared_buffer>, BigBuffer and BigString16 given as examples.
Why this matters in practice: a crash is annoying but recoverable. Killing another site's tab is a denial of service against a page the user did not attack. Reading another frame's console output is a confidentiality problem. A sandbox escape would be the most serious outcome, but the report does not claim to have achieved one.
Fix
The original report text does not describe a fix or a change that was made. It only documents the bug, the reproduction cases and the conditions under which they work. What should be fixed, based on the report's own analysis, is the batching behaviour in ChannelPosix::WriteNoLock: batches that consist only of file descriptors and carry zero bytes of message data are silently dropped by the SOCK_STREAM socket, The report does not state which change, if any, was applied. The report does not state which change, if any, was applied.
In plain words: the code should not assume that a batch of descriptors with no ordinary data will be delivered.
Variants to test
The report's own analysis suggests the following directions:
- Other Mojo interfaces that accept an arbitrary number of file descriptors in a single message, such as
handle<shared_buffer>,BigBufferandBigString16. A positive result is a message whose later descriptors are dropped and then combined with descriptors from a subsequent message, producing a corrupted message on the receiving side. - Other Mojo frame APIs that use
BigString16or other types of shared memory, for example copy and paste, printing, and drag and drop. A positive result is the same fd confusion pattern: a descriptor from one message taking the place of a descriptor expected by another. - Platforms with limited site isolation, such as Android and Android WebView, where a victim frame can share a renderer process with the attacker. A positive result is reading another frame's
console.log()output, or similar data, through a confused descriptor. - Confusing Mojo into treating a user controlled transferable as a privileged transferable, as sketched in poc4.html. The report describes this as still being developed and expresses only a belief that a sandboxed ACE or possible sandbox-escaping ACE may be possible; a positive result would be a confirmed sandbox escape, which the report does not claim to have achieved.
Why these variants are worth testing: the bug is in the transport, not in one specific feature. Any feature that sends many descriptors in one message can hit it. The variants are ways to find out how far the impact reaches.
Glossary
- ACE (arbitrary code execution): the ability to make a computer run code of your choosing.
- Ancillary data: extra information attached to a message alongside the main payload, such as file descriptors.
- API (Application Programming Interface): a set of functions a program offers so other programs can use it.
- ArrayBuffer: a browser object representing a raw block of bytes.
- BigBuffer: a Mojo type for sending a large amount of data, possibly split between inline bytes and shared memory.
- BigString16: a Mojo type for sending a large text string, where each character is 16 bits wide.
- Bounty: a payment made by a company to someone who reports a security bug.
- Browser process: the Chrome process that manages windows, tabs and coordination between other processes.
- Channel: one established route between two processes along which messages travel.
- ChannelPosix: the Mojo transport implementation used on POSIX-style systems such as Linux, Android and ChromeOS.
- cmsg(3): the manual page for control messages, the mechanism used to carry ancillary data on Unix sockets.
- Commit: a recorded change to a code repository, with a unique identifier.
- Constant: a named fixed value in code.
- Cross-origin: belonging to a different site, which browsers normally keep separate.
- CVE (Common Vulnerabilities and Exposures): a public catalogue number given to a security flaw.
- Denial of service: making a service or program unavailable to its users.
- DispatchResult::kMissingHandles: a status value meaning a message cannot be delivered yet because handles are missing.
- Enqueue: to put something in a queue, a waiting line.
- File descriptor (fd): a small number the operating system uses as a handle to an open file, connection or shared memory block.
- GPU process: the Chrome process that handles graphics work.
- handle<shared_buffer>: a handle to a shared memory buffer that two processes can both access.
- Handshake: an initial exchange where two sides agree on how to communicate.
- HTML: the text format used to write web pages.
- HTTP: the protocol browsers use to fetch pages from servers.
- Iframe: a page embedded inside another page.
- ImageBitmap: a browser object representing an image ready to be drawn.
- Inappropriate implementation: a weakness category meaning the code does something technically allowed but does not handle a case it should have handled.
- Interface: a named set of operations one process offers to another.
- IPC (inter-process communication): the way separate programs on the same computer talk to each other.
- ipcz: the newer internal transport Chrome uses for some inter-process connections.
- kMaxSendmsgHandles: the constant that sets the batch size of 128 file descriptors.
- MessageChannel: a browser API that creates two connected endpoints, called ports, which can send messages to each other.
- Mojo: Chrome's inter-process communication system.
- Out-of-bounds read: reading memory outside the intended area.
- Payload: the data or code crafted to trigger a bug.
- PoC (proof of concept): a demonstration that a bug can be triggered.
- Port: one endpoint of a
MessageChannel. - postMessage: a browser API that lets one page send a message to another page.
- Privileged: having more rights than an ordinary page.
- Process: a running program with its own memory, managed by the operating system.
- Renderer: the Chrome process that runs a page's code and draws its content.
- Sandbox: a security boundary that limits what a process can do.
- Sandboxed iframe: an iframe with restrictions applied, such as not being allowed to run scripts.
- Segfault (segmentation fault): the operating system stopping a program because it tried to access memory it is not allowed to touch.
- sendmsg(2): an operating system call that sends a message on a socket.
- Severity: a rating of how serious a security flaw is.
- Shared memory: a block of memory that two processes can both read and write.
- Site isolation: a Chrome security feature that puts pages from different sites into different renderer processes.
- SOCK_DGRAM: a socket type where each message is separate and self-contained, like a postcard.
- SOCK_STREAM: a socket type that carries a continuous stream of bytes with no message boundaries, like a phone call.
- Socket: one end of a communication link between two programs.
- Transferable: an object that can be handed over to another page rather than copied.
- Transport: the actual mechanism that moves bytes between processes.
- VRP (Vulnerability Reward Program): a program that pays people who report security bugs.
- WebView: the component apps use to show web content inside an app.