Use after free in Mojo (CVE-2026-8523)
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
VULNERABILITY DETAILS
A Use-After-Free vulnerability exists in ipcz's IPC message deserialization layer. DeserializeDriverObject() in third_party/ipcz/src/ipcz/message.cc:134-138 marks transport handles as consumed (is_handle_consumed[i] = true) without checking if the handle was already consumed by a prior DriverObjectData entry.
When a crafted IPC message contains multiple DriverObjectData entries with overlapping handle index ranges (e.g., Entry 0 claims handles[0..1], Entry 1 claims handles[1]), the same IpczDriverHandle is deserialized twice. On non-Windows platforms, this calls TransmissiblePlatformHandle::TakeFromHandle() (mojo/core/ipcz_driver/object.h:90-98) on an already-freed ref-counted object, resulting in a heap-use-after-free in the receiving process.
Reachable from a compromised renderer targeting the browser (broker) process via any ipcz NodeLink transport, including unknown message IDs (DeserializeUnknownType path at message.cc:282-330).
The per-entry bounds check (message.cc:125-132) validates each entry against handles.size() independently but does not validate against other entries for overlap. ValidateParameters() (message.cc:383-498) validates driver object index uniqueness (is_object_claimed) but not driver handle index uniqueness. It also runs after deserialization — the UAF has already occurred.
Vulnerable code (message.cc:134-138):
for (auto i = object_data.first_driver_handle;
i < object_data.first_driver_handle + object_data.num_driver_handles;
++i) {
is_handle_consumed[i] = true; // BUG: no check if already true
}
Suggested fix — add one check:
for (auto i = object_data.first_driver_handle;
i < object_data.first_driver_handle + object_data.num_driver_handles;
++i) {
if (is_handle_consumed[i]) {
return {}; // Handle already consumed by another DriverObjectData entry
}
is_handle_consumed[i] = true;
}
VERSION
- Chrome Version: Chromium
mainat commit1c9c00502d4b(refs/heads/main@{#1583918}), February 2026 - Operating System: Linux (confirmed non-Windows path). Bug also affects ChromeOS, Android, macOS. Windows has a different manifestation (handle duplication via
DecodeHandlerather than pointer UAF).
REPRODUCTION CASE
Attached: ipcz_uaf_poc.cc — Standalone ASAN reproducer.
This reproducer faithfully replicates the vulnerable code pattern from:
third_party/ipcz/src/ipcz/message.cc(DeserializeDriverObject, lines 113-143)third_party/ipcz/src/ipcz/message.cc(DeserializeUnknownType, lines 282-330)mojo/core/ipcz_driver/object.h(TakeFromHandle, lines 90-98)
Build and run:
clang++ -fsanitize=address -g -O0 -o ipcz_uaf_poc ipcz_uaf_poc.cc
./ipcz_uaf_poc
What the reproducer does:
- Creates 2 ref-counted objects (simulating
TransmissiblePlatformHandle) - Constructs 2
DriverObjectDataentries with overlapping handle ranges:- Entry 0:
first_driver_handle=0, num_driver_handles=2(claims handles[0] and handles[1]) - Entry 1:
first_driver_handle=1, num_driver_handles=1(claims handles[1] again)
- Entry 0:
- Processes them through the same deserialization logic as
DeserializeUnknownType - Entry 0 consumes handles[1] via
TakeFromHandle, freeing the object - Entry 1 calls
TakeFromHandleon handles[1] again — UAF on freed object
In a real attack: A compromised renderer sends a crafted ipcz message through its NodeLink transport to the browser process. The message has a valid MessageHeader with any message ID (unknown IDs route to DeserializeUnknownType), a DriverObjectData array with overlapping handle ranges, and valid transport handles attached. No authentication or special privileges needed beyond renderer compromise.
CRASH STATE
Type of crash: Browser process crash (ASAN-detected heap-use-after-free in IPC message parsing)
ASAN output:
=================================================================
==1941873==ERROR: AddressSanitizer: heap-use-after-free on address 0x5070000000d0
at pc 0x561979a2a7d8 bp 0x7fffb933e950 sp 0x7fffb933e948
WRITE of size 4 at 0x5070000000d0 thread T0
#0 RefCountedObject::AddRef() ipcz_uaf_poc.cc:54 [atomic refcount increment]
#1 RefCountedObject::TakeFromHandle() ipcz_uaf_poc.cc:82 [mirrors object.h:90-98]
#2 DeserializeDriverObject() ipcz_uaf_poc.cc:143 [mirrors message.cc:134-138]
#3 DeserializeUnknownType() ipcz_uaf_poc.cc:183 [mirrors message.cc:282-330]
#4 main() ipcz_uaf_poc.cc:256
0x5070000000d0 is located 64 bytes inside of 68-byte region [0x507000000090,0x5070000000d4)
freed by thread T0 here:
#0 operator delete(void*, unsigned long)
#1 RefCountedObject::Release() ipcz_uaf_poc.cc:63 [refcount hit 0]
#2 DeserializeDriverObject() ipcz_uaf_poc.cc:151 [Entry 0 consumed handles[1]]
#3 DeserializeUnknownType() ipcz_uaf_poc.cc:183
#4 main() ipcz_uaf_poc.cc:256
previously allocated by thread T0 here:
#0 operator new(unsigned long)
#1 main() ipcz_uaf_poc.cc:219
SUMMARY: AddressSanitizer: heap-use-after-free ipcz_uaf_poc.cc:54 in RefCountedObject::AddRef()
Exploitation impact:
- The freed
TransmissiblePlatformHandleis a small, fixed-size heap allocation in the browser process - Attacker controls timing (sends message at will) and can heap-spray between free and reuse
AddRef()on attacker-controlled data provides a write primitive (refcount increment at controlled offset)- Chainable into arbitrary code execution in the browser process (sandbox escape)
CREDIT INFORMATION
Reporter credit: [Paul Seekamp / nullenc0de]
Context
This report describes a use-after-free (UAF) in ipcz, the IPC layer used by Mojo in Chromium. The affected component is the IPC message deserialisation code in third_party/ipcz/src/ipcz/message.cc, specifically DeserializeDriverObject() and the unknown-message path DeserializeUnknownType(). The bug is reachable from a compromised renderer that sends a crafted ipcz message over any NodeLink transport to the browser (broker) process.
The report is a Chrome VRP advisory. The researcher is credited as Paul Seekamp / nullenc0de. The platform records the severity as high and the bounty as 25000.00 USD, with disclosure on 2026-05-12. The report itself does not state a CVSS score.
Setup
The report gives the following environment details:
- Chrome version: Chromium
mainat commit1c9c00502d4b(refs/heads/main@{#1583918}), February 2026. - Operating system: Linux, confirmed as the non-Windows path. The report says the bug also affects ChromeOS, Android and macOS. Windows has a different manifestation: handle duplication via
DecodeHandlerather than a pointer UAF. - Tooling: a standalone ASAN reproducer,
ipcz_uaf_poc.cc, built with clang++.
The precondition for a real attack, as stated in the report, is a compromised renderer. No authentication or special privileges are needed beyond that renderer compromise.
Finding it
The report states that DeserializeDriverObject() marks transport handles as consumed without checking whether a handle had already been consumed by an earlier DriverObjectData entry. The vulnerable code is at message.cc:134-138:
for (auto i = object_data.first_driver_handle;
i < object_data.first_driver_handle + object_data.num_driver_handles;
++i) {
is_handle_consumed[i] = true; // BUG: no check if already true
}
Because the loop only writes true and never tests the previous value, two entries with overlapping handle index ranges cause the same IpczDriverHandle to be deserialised twice. On non-Windows platforms, the second deserialisation calls TransmissiblePlatformHandle::TakeFromHandle() (mojo/core/ipcz_driver/object.h:90-98) on an object that has already been freed, producing a heap-use-after-free in the receiving process.
The report notes two existing checks that do not prevent this:
- The per-entry bounds check at
message.cc:125-132validates each entry againsthandles.size()independently, but does not compare entries with each other for overlap. ValidateParameters()atmessage.cc:383-498validates driver object index uniqueness throughis_object_claimed, but not driver handle index uniqueness. It also runs after deserialisation, so by the time it executes the UAF has already happened.
The report says the bug is reachable through any ipcz NodeLink transport, including the unknown message ID path (DeserializeUnknownType at message.cc:282-330).
Exploitation
Step 1: Build the standalone reproducer
The report attaches ipcz_uaf_poc.cc, a standalone ASAN reproducer that replicates the vulnerable code pattern from message.cc (DeserializeDriverObject, lines 113-143, and DeserializeUnknownType, lines 282-330) and mojo/core/ipcz_driver/object.h (TakeFromHandle, lines 90-98).
Build and run commands, copied from the report:
clang++ -fsanitize=address -g -O0 -o ipcz_uaf_poc ipcz_uaf_poc.cc
./ipcz_uaf_poc
-fsanitize=address instruments the binary so that the heap-use-after-free is detected and reported, -g keeps debug symbols for the stack trace, and -O0 disables optimisation so the code paths stay close to the source.
Step 2: Construct overlapping DriverObjectData entries
The reproducer creates two ref-counted objects that simulate TransmissiblePlatformHandle, then builds two DriverObjectData entries with overlapping handle ranges:
- Entry 0:
first_driver_handle=0, num_driver_handles=2, claiming handles[0] and handles[1]. - Entry 1:
first_driver_handle=1, num_driver_handles=1, claiming handles[1] again.
Step 3: Process the entries through the deserialisation logic
The entries are processed through the same logic as DeserializeUnknownType. Entry 0 consumes handles[1] via TakeFromHandle, which frees the object. Entry 1 then calls TakeFromHandle on handles[1] again, which is the use-after-free on the freed object.
Step 4: Observe the ASAN crash
The report gives the ASAN output:
=================================================================
==1941873==ERROR: AddressSanitizer: heap-use-after-free on address 0x5070000000d0
at pc 0x561979a2a7d8 bp 0x7fffb933e950 sp 0x7fffb933e948
WRITE of size 4 at 0x5070000000d0 thread T0
#0 RefCountedObject::AddRef() ipcz_uaf_poc.cc:54 [atomic refcount increment]
#1 RefCountedObject::TakeFromHandle() ipcz_uaf_poc.cc:82 [mirrors object.h:90-98]
#2 DeserializeDriverObject() ipcz_uaf_poc.cc:143 [mirrors message.cc:134-138]
#3 DeserializeUnknownType() ipcz_uaf_poc.cc:183 [mirrors message.cc:282-330]
#4 main() ipcz_uaf_poc.cc:256
0x5070000000d0 is located 64 bytes inside of 68-byte region [0x507000000090,0x5070000000d4)
freed by thread T0 here:
#0 operator delete(void*, unsigned long)
#1 RefCountedObject::Release() ipcz_uaf_poc.cc:63 [refcount hit 0]
#2 DeserializeDriverObject() ipcz_uaf_poc.cc:151 [Entry 0 consumed handles[1]]
#3 DeserializeUnknownType() ipcz_uaf_poc.cc:183
#4 main() ipcz_uaf_poc.cc:256
previously allocated by thread T0 here:
#0 operator new(unsigned long)
#1 main() ipcz_uaf_poc.cc:219
SUMMARY: AddressSanitizer: heap-use-after-free ipcz_uaf_poc.cc:54 in RefCountedObject::AddRef()
The trace shows the write of size 4 in RefCountedObject::AddRef() on the freed address, reached through TakeFromHandle() and DeserializeDriverObject(). The free happened earlier in the same thread when Entry 0 consumed handles[1] and the refcount reached zero in RefCountedObject::Release().
Step 5: Real attack path
In a real attack, a compromised renderer sends a crafted ipcz message through its NodeLink transport to the browser process. The message has:
- a valid
MessageHeaderwith any message ID (unknown IDs route toDeserializeUnknownType), - a
DriverObjectDataarray with overlapping handle ranges, - valid transport handles attached.
No authentication or special privileges are needed beyond renderer compromise.
Root cause
The mistake is in DeserializeDriverObject(): the loop that marks handles as consumed writes is_handle_consumed[i] = true without first checking whether the entry is already true. The per-entry bounds check validates each entry against handles.size() in isolation, and ValidateParameters() checks uniqueness of driver object indices but not driver handle indices. Because ValidateParameters() runs after deserialisation, it cannot prevent the double consumption. The report does not describe any other defence that would have caught the overlap before the second TakeFromHandle() call.
Impact
The report describes the crash as a browser process crash, detected by ASAN as a heap-use-after-free in IPC message parsing. On the exploitation side, the report states:
- The freed
TransmissiblePlatformHandleis a small, fixed-size heap allocation in the browser process. - The attacker controls timing (sends the message at will) and can heap-spray between free and reuse.
AddRef()on attacker-controlled data provides a write primitive (a refcount increment at a controlled offset).- The report says this is chainable into arbitrary code execution in the browser process, which would amount to a sandbox escape.
These impact statements are the researcher's assessment as written in the report. The report does not include a working exploit chain beyond the ASAN reproducer.
Fix
The report suggests adding one check to the loop so that an already consumed handle causes an early return:
for (auto i = object_data.first_driver_handle;
i < object_data.first_driver_handle + object_data.num_driver_handles;
++i) {
if (is_handle_consumed[i]) {
return {}; // Handle already consumed by another DriverObjectData entry
}
is_handle_consumed[i] = true;
}
The report presents this as a suggested fix. It does not state which change, if any, was actually merged, and the platform facts do not include a patch description.
Variants to test
- Other ipcz message paths. Try crafted messages with overlapping handle ranges on message IDs that route through
DeserializeUnknownType, and on known message IDs that reachDeserializeDriverObject. A positive result is a secondTakeFromHandle()on the same handle index, visible as an ASAN heap-use-after-free or a refcount anomaly. - Overlap shapes. Beyond the two-entry case in the report, try entries where one range fully contains another, where ranges share only the first or last index, and where three or more entries overlap. A positive result is any overlap that is not rejected before deserialisation.
- Platform differences. The report says Windows takes a different path through
DecodeHandle(handle duplication) rather than a pointer UAF. Test the same overlapping entries on Windows to see whether the duplication path produces a distinct, observable defect. - Validation ordering. Check whether
ValidateParameters()can be reached before any handle is consumed in other code paths. A positive result would be a path where the uniqueness check runs early enough to reject the message, which would show the ordering issue is path-specific. - Other handle-consuming loops. Look for similar loops in ipcz or Mojo that set a consumed or claimed flag without testing it first. A positive result is another double-consume that survives to a free and reuse.
What happened, in plain words
A web browser is a big program made of many smaller parts. Chrome, Google's browser, splits its work across several processes. One process, called the renderer, turns web pages into what you see on screen. Another process, called the browser process (sometimes called the broker), is the trusted part that handles things like files, the network and the operating system. The renderer is treated as less trusted, because it runs code from websites you visit. If an attacker manages to take over a renderer, the browser process is supposed to keep them contained.
For these parts to work together, they send each other messages. The system Chrome uses for this is called Mojo, and underneath Mojo there is a lower layer called ipcz. Think of ipcz as the postal service between processes: it packs messages, attaches things like file handles, and unpacks them at the other end. This report is about a mistake in the unpacking code.
The mistake is a use-after-free. In programming, when a program no longer needs a piece of memory, it gives it back (frees it). A use-after-free happens when the program keeps using that piece of memory after giving it back. It is like handing your keys back to a landlord, then walking into the flat later and finding someone else living there. The report shows that a crafted message can make the unpacking code free an object and then use it again, which crashes the browser process and, according to the researcher, could potentially be turned into something worse.
The report is a Chrome VRP advisory. VRP stands for Vulnerability Reward Program: a scheme where Google pays people who find and report security bugs. The researcher is credited as Paul Seekamp / nullenc0de. The platform records the severity as high and the bounty as 25000.00 USD, with disclosure on 2026-05-12. The report itself does not state a CVSS score. CVSS is a standard scoring system for how serious a vulnerability is; the report simply does not give one.
Context
This report describes a use-after-free (UAF) in ipcz, the IPC layer used by Mojo in Chromium. IPC means inter-process communication: the way separate processes talk to each other. Chromium is the open-source project that Chrome is built from.
The affected component is the IPC message deserialisation code in third_party/ipcz/src/ipcz/message.cc, specifically DeserializeDriverObject() and the unknown-message path DeserializeUnknownType(). Deserialisation is the unpacking step: turning a stream of bytes back into structured data the program can use. The opposite, serialisation, is packing data into bytes to send.
The bug is reachable from a compromised renderer that sends a crafted ipcz message over any NodeLink transport to the browser (broker) process. A transport is the channel the message travels on. A compromised renderer means an attacker already controls that process, for example through a separate bug in a web page. The point of this report is that from that position, the attacker can reach the more trusted browser process.
The report is a Chrome VRP advisory.
Setup
The report gives the following environment details:
- Chrome version: Chromium
mainat commit1c9c00502d4b(refs/heads/main@{#1583918}), February 2026. A commit is a saved snapshot of the source code;mainis the main development line. - Operating system: Linux, confirmed as the non-Windows path. The report says the bug also affects ChromeOS, Android and macOS. Windows has a different manifestation: handle duplication via
DecodeHandlerather than a pointer UAF. A handle is a reference the operating system gives a program to something like a file or a shared memory region. Duplication means making a second reference to the same thing. - Tooling: a standalone ASAN reproducer,
ipcz_uaf_poc.cc, built with clang++. A reproducer (or PoC, proof of concept) is a small program that demonstrates the bug. ASAN stands for AddressSanitizer, a tool built into the compiler that watches memory use and shouts when a program touches memory it should not. clang++ is a C++ compiler.
The precondition for a real attack, as stated in the report, is a compromised renderer. No authentication or special privileges are needed beyond that renderer compromise. In other words, the attacker does not need a password or an admin account; controlling the renderer is enough.
Finding it
The report states that DeserializeDriverObject() marks transport handles as consumed without checking whether a handle had already been consumed by an earlier DriverObjectData entry. A DriverObjectData entry is a small record in the message that says which handles belong to which object. Marking a handle as consumed means recording that it has been used up, so it should not be used again.
The vulnerable code is at message.cc:134-138:
for (auto i = object_data.first_driver_handle;
i < object_data.first_driver_handle + object_data.num_driver_handles;
++i) {
is_handle_consumed[i] = true; // BUG: no check if already true
}
Line by line:
for (auto i = object_data.first_driver_handle;starts a loop.iis a counter that begins at the first handle index this entry claims.autojust means the compiler works out the type.i < object_data.first_driver_handle + object_data.num_driver_handles;keeps looping whileiis less than the first index plus the number of handles. So the loop visits every handle index this entry claims.++imoves to the next index each time round.is_handle_consumed[i] = true;sets a flag saying handleihas been consumed. The comment// BUG: no check if already truemarks the mistake: the code never looks at the old value before overwriting it.
Because the loop only writes true and never tests the previous value, two entries with overlapping handle index ranges cause the same IpczDriverHandle to be deserialised twice. Overlapping means two entries claim the same handle. On non-Windows platforms, the second deserialisation calls TransmissiblePlatformHandle::TakeFromHandle() (mojo/core/ipcz_driver/object.h:90-98) on an object that has already been freed, producing a heap-use-after-free in the receiving process. The heap is the pool of memory a program uses for objects it creates while running.
The report notes two existing checks that do not prevent this:
- The per-entry bounds check at
message.cc:125-132validates each entry againsthandles.size()independently, but does not compare entries with each other for overlap. A bounds check makes sure an index is not outside the list; here it checks each entry on its own, like checking each guest has a valid ticket but never noticing two guests have the same seat number. ValidateParameters()atmessage.cc:383-498validates driver object index uniqueness throughis_object_claimed, but not driver handle index uniqueness. It also runs after deserialisation, so by the time it executes the UAF has already happened. This is like a security guard who checks tickets only after everyone is already inside.
The report says the bug is reachable through any ipcz NodeLink transport, including the unknown message ID path (DeserializeUnknownType at message.cc:282-330). A message ID is a label saying what kind of message it is. The unknown path handles IDs the receiver does not recognise, which is useful to an attacker because it is a general-purpose entry point.
Exploitation
Step 1: Build the standalone reproducer
The report attaches ipcz_uaf_poc.cc, a standalone ASAN reproducer that replicates the vulnerable code pattern from message.cc (DeserializeDriverObject, lines 113-143, and DeserializeUnknownType, lines 282-330) and mojo/core/ipcz_driver/object.h (TakeFromHandle, lines 90-98). Replicating means copying the same logic into a small program so the bug can be shown without building all of Chrome.
Build and run commands, copied from the report:
clang++ -fsanitize=address -g -O0 -o ipcz_uaf_poc ipcz_uaf_poc.cc
./ipcz_uaf_poc
Line by line:
clang++runs the compiler.-fsanitize=addressinstruments the binary so that the heap-use-after-free is detected and reported. Instrumenting means adding extra checks into the compiled program.-gkeeps debug symbols for the stack trace. A stack trace is the list of function calls that led to a point in the program.-O0disables optimisation so the code paths stay close to the source. Optimisation is the compiler rewriting code to be faster, which can make debugging harder.-o ipcz_uaf_pocnames the output program.ipcz_uaf_poc.ccis the source file../ipcz_uaf_pocruns the resulting program.
Step 2: Construct overlapping DriverObjectData entries
The reproducer creates two ref-counted objects that simulate TransmissiblePlatformHandle, then builds two DriverObjectData entries with overlapping handle ranges:
- Entry 0:
first_driver_handle=0, num_driver_handles=2, claiming handles[0] and handles[1]. - Entry 1:
first_driver_handle=1, num_driver_handles=1, claiming handles[1] again.
A ref-counted object is one that keeps a count of how many places are using it. When the count drops to zero, the object is freed. This is a common way to decide when memory is no longer needed. The overlap is the key: handle 1 is claimed by both entries.
Step 3: Process the entries through the deserialisation logic
The entries are processed through the same logic as DeserializeUnknownType. Entry 0 consumes handles[1] via TakeFromHandle, which frees the object. Entry 1 then calls TakeFromHandle on handles[1] again, which is the use-after-free on the freed object. In everyday terms: the first entry uses up the object and throws it away, and the second entry picks up the thrown-away object and tries to use it.
Step 4: Observe the ASAN crash
The report gives the ASAN output:
=================================================================
==1941873==ERROR: AddressSanitizer: heap-use-after-free on address 0x5070000000d0
at pc 0x561979a2a7d8 bp 0x7fffb933e950 sp 0x7fffb933e948
WRITE of size 4 at 0x5070000000d0 thread T0
#0 RefCountedObject::AddRef() ipcz_uaf_poc.cc:54 [atomic refcount increment]
#1 RefCountedObject::TakeFromHandle() ipcz_uaf_poc.cc:82 [mirrors object.h:90-98]
#2 DeserializeDriverObject() ipcz_uaf_poc.cc:143 [mirrors message.cc:134-138]
#3 DeserializeUnknownType() ipcz_uaf_poc.cc:183 [mirrors message.cc:282-330]
#4 main() ipcz_uaf_poc.cc:256
0x5070000000d0 is located 64 bytes inside of 68-byte region [0x507000000090,0x5070000000d4)
freed by thread T0 here:
#0 operator delete(void*, unsigned long)
#1 RefCountedObject::Release() ipcz_uaf_poc.cc:63 [refcount hit 0]
#2 DeserializeDriverObject() ipcz_uaf_poc.cc:151 [Entry 0 consumed handles[1]]
#3 DeserializeUnknownType() ipcz_uaf_poc.cc:183
#4 main() ipcz_uaf_poc.cc:256
previously allocated by thread T0 here:
#0 operator new(unsigned long)
#1 main() ipcz_uaf_poc.cc:219
SUMMARY: AddressSanitizer: heap-use-after-free ipcz_uaf_poc.cc:54 in RefCountedObject::AddRef()
Line by line:
ERROR: AddressSanitizer: heap-use-after-free on address 0x5070000000d0is ASAN saying it caught a use-after-free at a particular memory address.WRITE of size 4means the program tried to write 4 bytes there. A write is storing data into memory.thread T0means this happened on the program's main thread. A thread is one line of execution inside a program.- The numbered
#0to#4lines are the stack trace, read from the innermost call outwards.RefCountedObject::AddRef()is where the write happened; it increments the reference count.TakeFromHandle()is the function that took the handle.DeserializeDriverObject()andDeserializeUnknownType()are the unpacking functions.main()is the program's entry point. 0x5070000000d0 is located 64 bytes inside of 68-byte regiontells us the object was 68 bytes and the write landed 64 bytes in.- The
freed by thread T0 here:block shows where the memory was given back:RefCountedObject::Release()brought the refcount to zero, called fromDeserializeDriverObject()when Entry 0 consumed handles[1]. - The
previously allocated by thread T0 here:block shows where the memory originally came from:operator newinmain(). SUMMARYrepeats the headline: a heap-use-after-free inRefCountedObject::AddRef().
The trace shows the write of size 4 in RefCountedObject::AddRef() on the freed address, reached through TakeFromHandle() and DeserializeDriverObject(). The free happened earlier in the same thread when Entry 0 consumed handles[1] and the refcount reached zero in RefCountedObject::Release().
Step 5: Real attack path
In a real attack, a compromised renderer sends a crafted ipcz message through its NodeLink transport to the browser process. The message has:
- a valid
MessageHeaderwith any message ID (unknown IDs route toDeserializeUnknownType), - a
DriverObjectDataarray with overlapping handle ranges, - valid transport handles attached.
A MessageHeader is the fixed part at the start of a message that says what kind of message it is and how big it is. An array is an ordered list. No authentication or special privileges are needed beyond renderer compromise.
Root cause
The mistake is in DeserializeDriverObject(): the loop that marks handles as consumed writes is_handle_consumed[i] = true without first checking whether the entry is already true. The per-entry bounds check validates each entry against handles.size() in isolation, and ValidateParameters() checks uniqueness of driver object indices but not driver handle indices. Because ValidateParameters() runs after deserialisation, it cannot prevent the double consumption. The report does not describe any other defence that would have caught the overlap before the second TakeFromHandle() call.
Impact
The report describes the crash as a browser process crash, detected by ASAN as a heap-use-after-free in IPC message parsing. Parsing is reading and interpreting the message.
On the exploitation side, the report states:
- The freed
TransmissiblePlatformHandleis a small, fixed-size heap allocation in the browser process. A heap allocation is a block of memory handed out by the program at runtime. - The attacker controls timing (sends the message at will) and can heap-spray between free and reuse. Heap spraying means filling the heap with chosen data so that a freed slot is likely to be reused by something the attacker controls.
AddRef()on attacker-controlled data provides a write primitive (a refcount increment at a controlled offset). A write primitive means the ability to write a value to a place of the attacker's choosing, which is a building block for further attacks.- The report says this is chainable into arbitrary code execution in the browser process, which would amount to a sandbox escape. Arbitrary code execution means running the attacker's own code. A sandbox is the isolation that keeps a compromised process from affecting the rest of the system; escaping it means breaking out of that isolation.
These impact statements are the researcher's assessment as written in the report. The report does not include a working exploit chain beyond the ASAN reproducer.
Fix
The report suggests adding one check to the loop so that an already consumed handle causes an early return:
for (auto i = object_data.first_driver_handle;
i < object_data.first_driver_handle + object_data.num_driver_handles;
++i) {
if (is_handle_consumed[i]) {
return {}; // Handle already consumed by another DriverObjectData entry
}
is_handle_consumed[i] = true;
}
Line by line:
- The
forloop is the same as before: it walks every handle index this entry claims. if (is_handle_consumed[i]) {is the new check. It asks whether this handle has already been marked consumed.return {};stops processing and returns an empty result, rejecting the message. The comment explains why: the handle was already consumed by another entry.is_handle_consumed[i] = true;only runs if the check passed, so the flag is set exactly once per handle.
The report presents this as a suggested fix. It does not state which change, if any, was actually merged, and the platform facts do not include a patch description.
Variants to test
- Other ipcz message paths. Try crafted messages with overlapping handle ranges on message IDs that route through
DeserializeUnknownType, and on known message IDs that reachDeserializeDriverObject. A positive result is a secondTakeFromHandle()on the same handle index, visible as an ASAN heap-use-after-free or a refcount anomaly. An anomaly here means the count does not behave as expected. - Overlap shapes. Beyond the two-entry case in the report, try entries where one range fully contains another, where ranges share only the first or last index, and where three or more entries overlap. A positive result is any overlap that is not rejected before deserialisation.
- Platform differences. The report says Windows takes a different path through
DecodeHandle(handle duplication) rather than a pointer UAF. Test the same overlapping entries on Windows to see whether the duplication path produces a distinct, observable defect. - Validation ordering. Check whether
ValidateParameters()can be reached before any handle is consumed in other code paths. A positive result would be a path where the uniqueness check runs early enough to reject the message, which would show the ordering issue is path-specific. - Other handle-consuming loops. Look for similar loops in ipcz or Mojo that set a consumed or claimed flag without testing it first. A positive result is another double-consume that survives to a free and reuse.
Glossary
- AddressSanitizer (ASAN): a tool built into a compiler that detects memory errors such as use-after-free while a program runs.
- Array: an ordered list of items stored together.
- Bounds check: a check that an index stays inside the valid range of a list.
- Broker process: the trusted browser process that handles privileged work on behalf of less trusted processes.
- Chrome VRP: Google's Vulnerability Reward Program, which pays researchers for security bugs.
- Chromium: the open-source browser project that Chrome is built from.
- clang++: a C++ compiler.
- Commit: a saved snapshot of source code in a version control system.
- Compromised renderer: a renderer process that an attacker already controls.
- CVSS: a standard scoring system for the severity of a vulnerability.
- Deserialisation: turning a stream of bytes back into structured data.
- DriverObjectData: a record in an ipcz message describing which handles belong to which object.
- Handle: an operating system reference to a resource such as a file or shared memory.
- Heap: the pool of memory a program uses for objects created while running.
- Heap spraying: filling the heap with chosen data so a freed slot is likely reused by attacker-controlled data.
- Heap-use-after-free: using memory on the heap after it has been freed.
- Instrumenting: adding extra checks into a compiled program.
- IPC: inter-process communication, the way separate processes talk to each other.
- ipcz: the lower IPC layer used by Mojo in Chromium.
- Message ID: a label saying what kind of message it is.
- MessageHeader: the fixed part at the start of a message describing its type and size.
- Mojo: Chromium's system for sending messages between processes.
- NodeLink: an ipcz transport channel between processes.
- Parsing: reading and interpreting data such as a message.
- Ref-counted object: an object that tracks how many places use it and is freed when the count reaches zero.
- Renderer: the browser process that turns web pages into what you see.
- Reproducer (PoC): a small program that demonstrates a bug.
- Sandbox: the isolation that keeps a compromised process from affecting the rest of the system.
- Sandbox escape: breaking out of that isolation.
- Serialisation: packing data into bytes to send.
- Stack trace: the list of function calls that led to a point in a program.
- Thread: one line of execution inside a program.
- Transport: the channel a message travels on.
- Use-after-free (UAF): using memory after it has been given back.
- Write primitive: the ability to write a value to a place of the attacker's choosing.