Skip to content
Memory corruption Advisory Advanced CVE-2025-11458

Heap buffer overflow in Sync (CVE-2025-11458)

The AddTrustedRecoveryMethod IPC handler in Chromium did not validate the length of a public key sent from the renderer, passing it directly to EC_POINT_oct2point. An attacker who can execute JavaScript on accounts.google.com (via XSS) or achieve renderer RCE could trigger an out-of-bounds read in the browser process.

raven Follow

Originally disclosed on Chrome VRP

Bounty$5,000 High View original
  • Fix shipped in 33 days

Steps to reproduce the problem

my chromim commit is 6a99accd9be43e397fe4e41571a7e1f5c656ab0d

  1. Apply my patch and build Chromium.(This patch only removes the account check that is unrelated to the vulnerability. Since Chromium generally does not have Chrome accounts, I have temporarily disabled it.)
  2. out\asan\chrome.exe --no-sandbox https://accounts.google.com/
  3. Enter the code in the browser’s address bar
jaavscript:let buffer = new ArrayBuffer(1);let view = new Uint8Array(buffer);view[0] = 4;chrome.addTrustedSyncEncryptionRecoveryMethod(()=>{console.log("123")},"test", buffer,2);

you will see the asan output

Problem Description

the function https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/trusted_vault_encryption_keys_extension.mojom;l=28;drc=e3ad182cacc3a02eb6a13091a867815fd17a129c;bpv=0;bpt=1
AddTrustedRecoveryMethod(string gaia_id, array<uint8> public_key, int32 method_type_hint) => ();

This function receives a public_key sent from the renderer, but it does not perform any length validation. As a result, if the renderer sends malicious data, it will be passed directly to the EC_POINT_oct2point function for parsing, which leads to an out-of-bounds read.

Since the renderer parameters are not properly checked here, an exploit prerequisite is either an XSS on accounts.google.com (allowing us to execute arbitrary JavaScript), or a renderer RCE that can send arbitrary IPC messages.

JavaScript
let buffer = new ArrayBuffer(1);
let view = new Uint8Array(buffer);
view[0] = 4;
chrome.addTrustedSyncEncryptionRecoveryMethod(()=>{console.log("123")},"test", buffer,2);

When this JavaScript snippet is executed on the accounts.google.com page, the buffer with length 1 is passed to EC_POINT_oct2point for parsing, resulting in an out-of-bounds read in the browser process.

Summary

out of bound in function ECPublicKeyFromBytes

Custom Questions

Type of crash:

browser

Reporter credit:

raven at KunLun Lab

Additional Data

Category: Security
Chrome Channel: Not sure
Regression: N/A \

The original report as published on the Chromium issue tracker, by raven at KunLun lab. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Chrome's Sync feature exposes a Mojo interface to the renderer that lets trusted pages register an encryption recovery method with the trusted vault. The interface method in question is declared as:

Text
AddTrustedRecoveryMethod(string gaia_id, array<uint8> public_key, int32 method_type_hint) => ();

The renderer supplies a public_key byte array, and the browser process parses it as an elliptic curve point. The bug is that the browser side never checks the length of that array before handing it to the parsing routine, so a short buffer produces an out-of-bounds read in the browser process. The issue was tracked as CVE-2025-11458, a heap buffer overflow in Sync, rated high severity, and was disclosed on 7 October 2025 with a 5,000 USD bounty under the Chrome VRP. Credit goes to raven at KunLun Lab.

Setup

The researcher worked from Chromium commit [redacted]. Two preconditions are described:

  1. A local patch is applied and Chromium is rebuilt. The patch only removes the account check, which the researcher notes is unrelated to the vulnerability; because Chromium generally does not have Chrome accounts, the check was temporarily disabled.
  2. The build is launched with AddressSanitizer enabled, without the sandbox, and pointed at the Google accounts page:
Text
out\asan\chrome.exe --no-sandbox https://accounts.google.com/

The researcher navigates to accounts.google.com before running the payload.

Finding it

The researcher focused on the Mojo declaration for AddTrustedRecoveryMethod and observed that the public_key argument arrives from the renderer with no length validation. The bytes are passed straight into EC_POINT_oct2point for parsing. That function expects a well-formed encoded curve point; given a one-byte buffer it reads past the end of the allocation. The summary of the report states the defect plainly: an out-of-bounds read in the function ECPublicKeyFromBytes.

Exploitation

Step 1: Build with the account check removed

Apply the patch that removes the account check and build Chromium. The patch removes the account check, which the researcher describes as unrelated to the vulnerability.

Step 2: Launch the ASan build against the accounts page

Text
out\asan\chrome.exe --no-sandbox https://accounts.google.com/

This starts the instrumented browser with the sandbox disabled and loads https://accounts.google.com/.

Step 3: Run the payload in the address bar

The researcher enters the following into the browser's address bar:

Text
jaavscript:let buffer = new ArrayBuffer(1);let view = new Uint8Array(buffer);view[0] = 4;chrome.addTrustedSyncEncryptionRecoveryMethod(()=>{console.log("123")},"test", buffer,2);

The payload allocates a one-byte ArrayBuffer, wraps it in a Uint8Array, and sets the single byte to 4. It then calls chrome.addTrustedSyncEncryptionRecoveryMethod with a callback that logs 123, the string test as the gaia_id, the one-byte buffer as the public_key, and 2 as the method_type_hint. The result is the ASan output showing the out-of-bounds read.

Step 4: The same payload as written in the description

The problem description repeats the snippet in a cleaner form:

JavaScript
let buffer = new ArrayBuffer(1);
let view = new Uint8Array(buffer);
view[0] = 4;
chrome.addTrustedSyncEncryptionRecoveryMethod(()=>{console.log("123")},"test", buffer,2);

When this runs on the accounts.google.com page, the one-byte buffer is passed to EC_POINT_oct2point for parsing, producing an out-of-bounds read in the browser process.

Root cause

The Mojo method AddTrustedRecoveryMethod accepts a public_key as array<uint8> from the renderer, but the browser-side handler performs no length validation on it. The bytes are forwarded directly to EC_POINT_oct2point, which parses an encoded elliptic curve point and assumes the input is long enough to describe one. A one-byte array does not satisfy that assumption, so the parser reads beyond the end of the buffer. The report's summary names the location as ECPublicKeyFromBytes.

The renderer parameters are not properly checked on the browser side before being passed to the parser. The report does not describe any other defence that was in place.

Impact

The immediate effect is an out-of-bounds read in the browser process, confirmed by ASan. The report frames exploitation as requiring one of two prerequisites: an XSS on accounts.google.com, which would let an attacker execute arbitrary JavaScript in the trusted page context, or a renderer RCE that can send arbitrary IPC messages. Without one of those, the malicious public_key cannot be delivered to the vulnerable handler. The report does not go further into what an attacker could achieve beyond the out-of-bounds read.

Fix

The report does not describe the fix that was applied. What it identifies is the missing length validation on the public_key array before it reaches EC_POINT_oct2point.

Variants to test

  • Other Mojo methods that take array<uint8> and hand the bytes to a parser expecting a fixed structure. A positive result is an ASan report showing a read or write past the end of the buffer when a short array is supplied.
  • Other callers of EC_POINT_oct2point and similar curve-point decoding routines that accept renderer-controlled bytes. A positive result is a crash or sanitizer finding with a truncated point encoding.
  • Other privileged JavaScript APIs exposed to trusted origins, where the renderer argument is forwarded to the browser without validation. A positive result is a browser-process sanitizer report triggered from page script.

Hunting notes

This kind of bug tends to sit at the boundary between a privileged page API and a browser-side parser: a Mojo method that accepts a byte array, a length that is never checked, and a downstream routine that assumes a minimum size. During recon, the signals are privileged JavaScript APIs reachable from trusted origins, Mojo interfaces that take array<uint8> or similar variable-length types, and calls into cryptographic or binary parsing code in the browser process. The researcher produced an ASan report from a one-byte buffer.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A security researcher found a bug in Google Chrome, in the part of the browser that handles Sync.

A web page is not normally allowed to touch that machinery. The researcher found that when such a page sends a deliberately malformed key, Chrome does not check how long the key is before trying to read it. Chrome then reads past the end of the small piece of memory it was given. That kind of mistake is called an out-of-bounds read, and in this case it happens inside the browser process, the most privileged part of Chrome.

The bug was tracked as CVE-2025-11458, described as a heap buffer overflow in Sync, rated high severity, and disclosed on 7 October 2025. A bounty of 5,000 USD was paid under the Chrome VRP, Google's programme that rewards people for reporting security bugs. Credit goes to raven at KunLun Lab.

The background you need

Before the steps make sense, a few ideas need unpacking.

The browser process and the renderer. Chrome is not one program but many working together. The part that draws the window, manages tabs and talks to the operating system is the browser process. Each web page runs in its own separate, more restricted program called a renderer. The whole point of the split is safety: if a malicious page takes over its renderer, it should still be fenced off from the rest of the computer. The fence is only useful if the browser process checks everything the renderer sends it.

IPC and Mojo. Because the renderer and the browser process are separate programs, they have to send messages to each other. That is called inter-process communication, or IPC. Mojo is Chrome's own system for this. A Mojo interface is like a menu of allowed messages: it lists the methods one side may call on the other, with the name and type of each argument. If a method is on the menu, the renderer is allowed to call it, so the browser side must treat every argument as untrusted.

JavaScript APIs exposed to pages. A web page runs JavaScript, the programming language of the web. Browsers give pages a set of built-in objects to work with, such as document or fetch; together these are called an API, an application programming interface, meaning the agreed way for one piece of software to ask another to do something. Chrome adds some extra, non-standard APIs that only work on pages it trusts. One of them lets a trusted page ask Chrome to register an encryption recovery method with the trusted vault.

Encryption keys and elliptic curves. Encryption scrambles data so only the right person can read it. Modern encryption often uses elliptic curves, a branch of mathematics where a key can be represented as a point on a curve. To store or send such a key, software encodes the point as a sequence of bytes, a byte being one of the small units computers store data in. A function called EC_POINT_oct2point does the reverse: it takes that sequence of bytes and turns it back into a point. It assumes the sequence is a complete, well-formed encoding. Give it too few bytes and it will keep reading past the end of what it was given.

Out-of-bounds read and heap buffer overflow. Computer memory is divided into allocated blocks, and a program is supposed to stay inside the block it asked for. Reading past the end of a block is an out-of-bounds read; writing past it is an out-of-bounds write. The heap is the general-purpose pool of memory where programs allocate blocks like these at runtime, so a bug involving such a block is called a heap buffer overflow. Reading a little past the end may only crash the program, but it can also leak whatever happens to sit next to the block.

AddressSanitizer. AddressSanitizer, or ASan, is a tool built into a special version of a program that watches every memory access. The moment the program reads or writes outside an allocated block, ASan stops it and prints a detailed report. Researchers use ASan builds to prove a memory bug exists without needing a full attack.

The sandbox. The sandbox is the set of restrictions around the renderer: it cannot read your files or talk to the network freely. Running Chrome with --no-sandbox turns those restrictions off, which makes debugging easier but is only ever done on a test machine.

XSS and RCE. Cross-site scripting, XSS, is a bug in a website that lets an attacker run their own JavaScript inside that site's pages, as if the site itself had written it. Remote code execution, RCE, is the far more serious case where an attacker can run their own program on a machine. Both appear later as the conditions an attacker would need.

Context: where the bug lives

Chrome's Sync feature exposes a Mojo interface to the renderer that lets trusted pages register an encryption recovery method with the trusted vault. The interface method in question is declared as:

Text
AddTrustedRecoveryMethod(string gaia_id, array<uint8> public_key, int32 method_type_hint) => ();

Line by line, this declaration says:

  • AddTrustedRecoveryMethod is the name of the method, the message a page can send.
  • string gaia_id is the first argument, a piece of text identifying the Google account. A Gaia ID is Google's internal identifier for an account.
  • array<uint8> public_key is the second argument, a list of bytes: the public key, the part of an encryption key pair that is safe to share.
  • int32 method_type_hint is the third argument, a whole number saying which kind of recovery method is meant.
  • => () means the method sends nothing back; it is a one-way request.

The renderer supplies the public_key byte array, and the browser process parses it as an elliptic curve point. The bug is that the browser side never checks the length of that array before handing it to the parsing routine, so a short buffer produces an out-of-bounds read in the browser process. The issue was tracked as CVE-2025-11458, a heap buffer overflow in Sync, rated high severity, and was disclosed on 7 October 2025 with a 5,000 USD bounty under the Chrome VRP. Credit goes to raven at KunLun Lab.

Setup: getting a browser that can show the bug

The researcher worked from Chromium commit [redacted]. Chromium is the open-source project Chrome is built from, and a commit is a saved snapshot of its source code, identified by a long string like that one. Working from a known commit means anyone else can rebuild exactly the same code.

Two preconditions are described:

  1. A local patch is applied and Chromium is rebuilt. A patch is a small edit to source code. The patch only removes the account check, which the researcher notes is unrelated to the vulnerability; because Chromium generally does not have Chrome accounts, the check was temporarily disabled. The patch removes the account check, which the researcher describes as unrelated to the vulnerability. The bug itself is untouched by the patch.
  2. The build is launched with AddressSanitizer enabled, without the sandbox, and pointed at the Google accounts page:
Text
out\asan\chrome.exe --no-sandbox https://accounts.google.com/

This command does three things:

  • out\asan\chrome.exe is the browser program that was built with AddressSanitizer, sitting in a build folder named asan.
  • --no-sandbox switches off the sandbox, so the test build is easier to run and debug.
  • https://accounts.google.com/ is the page to open at startup.

The researcher navigates to accounts.google.com before running the payload. A proof of concept, or PoC, is a small demonstration that proves a bug is real.

Finding it: spotting the missing check

The researcher focused on the Mojo declaration for AddTrustedRecoveryMethod and observed that the public_key argument arrives from the renderer with no length validation. Validation here means checking that the input makes sense before using it, in this case asking whether the byte array is long enough to be a real key. The bytes are passed straight into EC_POINT_oct2point for parsing. That function expects a well-formed encoded curve point; given a one-byte buffer it reads past the end of the allocation. The summary of the report states the defect plainly: an out-of-bounds read in the function ECPublicKeyFromBytes.

A useful comparison: think of a form that asks for a full postal address but only checks that the box is not empty. Someone who types a single letter gets through, and the clerk who later tries to read a street, a city and a postcode from that one letter ends up reading whatever is on the next line of the page. The missing length check is the form; the clerk reading too far is EC_POINT_oct2point.

Exploitation: reproducing it step by step

Step 1: Build with the account check removed

Apply the patch that removes the account check and build Chromium. The patch is described as unrelated to the vulnerability itself and only exists to make the code path reachable in a stock Chromium build. Building means compiling the source code into a runnable program, which takes a while for something the size of a browser.

Step 2: Launch the ASan build against the accounts page

Text
out\asan\chrome.exe --no-sandbox https://accounts.google.com/

This starts the instrumented browser with the sandbox disabled and loads https://accounts.google.com/, giving the page the context in which the Sync recovery API is exposed. Instrumented means the program carries extra checking code, here AddressSanitizer, that a normal build does not have.

Step 3: Run the payload in the address bar

The researcher enters the following into the browser's address bar:

Text
jaavscript:let buffer = new ArrayBuffer(1);let view = new Uint8Array(buffer);view[0] = 4;chrome.addTrustedSyncEncryptionRecoveryMethod(()=>{console.log("123")},"test", buffer,2);

A payload is the piece of input crafted to trigger a bug. This one begins with jaavscript:, which is not the real javascript: prefix: the scheme name is misspelled, so as written it would not run as script. The report shows it exactly this way, and the corrected version appears in the next step. Reading the rest of the line:

  • let buffer = new ArrayBuffer(1); creates a block of raw memory exactly one byte long and names it buffer.
  • let view = new Uint8Array(buffer); creates a Uint8Array, a way of looking at that memory as a list of unsigned 8-bit numbers, that is, byte values from 0 to 255. It is named view.
  • view[0] = 4; sets the single byte to the value 4.
  • chrome.addTrustedSyncEncryptionRecoveryMethod(...) calls the privileged API. Its arguments are a callback function that logs 123 to the console, the string test standing in for the account identifier, the one-byte buffer standing in for the public key, and 2 as the method type hint.

The result is the ASan output showing the out-of-bounds read. The console is the browser's built-in place for messages from pages, usually opened with the developer tools.

Step 4: The same payload as written in the description

The problem description repeats the snippet in a cleaner form:

JavaScript
let buffer = new ArrayBuffer(1);
let view = new Uint8Array(buffer);
view[0] = 4;
chrome.addTrustedSyncEncryptionRecoveryMethod(()=>{console.log("123")},"test", buffer,2);

This is the same code as above, spread over several lines and without the address-bar prefix, so it can be read or run as ordinary JavaScript. Line by line:

  • The first line allocates a one-byte block of memory.
  • The second line creates a byte-sized view over it.
  • The third line puts the value 4 into that single byte.
  • The fourth line hands the one-byte block to Chrome as if it were a public key, along with a placeholder account name and the number 2.

When this runs on the accounts.google.com page, the one-byte buffer is passed to EC_POINT_oct2point for parsing, producing an out-of-bounds read in the browser process.

Root cause: why the check was needed

The Mojo method AddTrustedRecoveryMethod accepts a public_key as array<uint8> from the renderer, but the browser-side handler performs no length validation on it. The bytes are forwarded directly to EC_POINT_oct2point, which parses an encoded elliptic curve point and assumes the input is long enough to describe one. A one-byte array does not satisfy that assumption, so the parser reads beyond the end of the buffer. The report's summary names the location as ECPublicKeyFromBytes.

The renderer parameters are not properly checked on the browser side before being passed to the parser. The report does not describe any other defence that was in place.

Impact: what an attacker would need first

The immediate effect is an out-of-bounds read in the browser process, confirmed by ASan. The report frames exploitation as requiring one of two prerequisites: an XSS on accounts.google.com, which would let an attacker execute arbitrary JavaScript in the trusted page context, or a renderer RCE that can send arbitrary IPC messages. Without one of those, the malicious public_key cannot be delivered to the vulnerable handler. The report does not go further into what an attacker could achieve beyond the out-of-bounds read.

Put simply, the bug is a locked door with a weak frame, but you still have to get into the building to reach it. The trusted page is the only place the API works, so an attacker first needs a way to run script there, or a way to send messages from a compromised renderer.

Fix: what the report says and does not say

The report does not describe the fix that was applied. What it identifies is the missing length validation on the public_key array before it reaches EC_POINT_oct2point. Truncated means cut short, and rejecting it means returning an error instead of carrying on.

Variants to test: where else to look

  • Other Mojo methods that take array<uint8> and hand the bytes to a parser expecting a fixed structure. A positive result is an ASan report showing a read or write past the end of the buffer when a short array is supplied.
  • Other callers of EC_POINT_oct2point and similar curve-point decoding routines that accept renderer-controlled bytes. A positive result is a crash or sanitizer finding with a truncated point encoding.
  • Other privileged JavaScript APIs exposed to trusted origins, where the renderer argument is forwarded to the browser without validation. A positive result is a browser-process sanitizer report triggered from page script.

Hunting notes: the pattern to recognise

This kind of bug tends to sit at the boundary between a privileged page API and a browser-side parser: a Mojo method that accepts a byte array, a length that is never checked, and a downstream routine that assumes a minimum size. During recon, the signals are privileged JavaScript APIs reachable from trusted origins, Mojo interfaces that take array<uint8> or similar variable-length types, and calls into cryptographic or binary parsing code in the browser process. Recon, short for reconnaissance, is the early phase of looking around a target to see what it exposes. The researcher produced an ASan report from a one-byte buffer. An exploit chain is a series of separate bugs joined together to reach a bigger goal; here none was needed to prove the point.

Glossary

  • AddressSanitizer (ASan): a checking tool built into a special build of a program that stops it and prints a report the moment it reads or writes outside allocated memory.
  • API (application programming interface): the agreed set of commands one piece of software offers so another can ask it to do things.
  • ArrayBuffer: a JavaScript object representing a fixed-length block of raw memory.
  • ASan build: a version of a program compiled with AddressSanitizer included.
  • Browser process: the central, most privileged part of Chrome that manages windows, tabs and the operating system.
  • Buffer: a block of memory set aside to hold data.
  • Byte: the basic unit of computer storage, holding a value from 0 to 255.
  • Callback: a function passed to another piece of code so it can be called later.
  • Chromium: the open-source browser project that Google Chrome is built from.
  • Commit: a saved snapshot of source code, identified by a long hash string.
  • Console: the browser's built-in place for messages from pages, usually viewed in developer tools.
  • Cross-site scripting (XSS): a website bug that lets an attacker run their own JavaScript inside that site's pages.
  • CVE: a public identifier for a known security vulnerability, here CVE-2025-11458.
  • EC_POINT_oct2point: a function that turns a sequence of bytes into a point on an elliptic curve, assuming the sequence is a complete encoding.
  • ECPublicKeyFromBytes: the function named in the report's summary as the place where the out-of-bounds read occurs.
  • Elliptic curve: a mathematical structure used in modern encryption, where a key can be represented as a point on the curve.
  • Encryption: scrambling data so only the right person can read it.
  • Exploit chain: a series of separate bugs joined together to achieve a larger goal.
  • Gaia ID: Google's internal identifier for an account.
  • Heap: the general-purpose pool of memory a program allocates blocks from while running.
  • Heap buffer overflow: a bug where a program reads or writes outside a block of heap memory it was given.
  • Instrumented: compiled with extra checking code that a normal build does not have.
  • IPC (inter-process communication): the way separate programs on the same machine send messages to each other.
  • JavaScript: the programming language that runs inside web pages.
  • Method: a named operation one side of an interface can call on the other.
  • Mojo: Chrome's system for sending messages between its processes.
  • Mojo interface: a declared menu of methods, with their argument types, that one process may call on another.
  • Out-of-bounds read: reading memory outside the block a program was given.
  • Out-of-bounds write: writing memory outside the block a program was given.
  • Patch: a small edit to source code.
  • Payload: the crafted input designed to trigger a bug.
  • Proof of concept (PoC): a small demonstration that proves a bug is real.
  • Public key: the shareable half of an encryption key pair.
  • Recon (reconnaissance): the early phase of examining a target to see what it exposes.
  • Remote code execution (RCE): a bug that lets an attacker run their own program on a machine.
  • Renderer: the separate, restricted process in which each web page runs.
  • Sandbox: the set of restrictions around the renderer that stops it touching files or the network freely.
  • Sync: Chrome's feature that keeps bookmarks, passwords, history and tabs the same across signed-in devices.
  • Truncated: cut short, missing part of what is expected.
  • Trusted vault: the protected online store where Chrome keeps the key that unlocks synced data.
  • Uint8Array: a JavaScript view over memory as a list of byte values from 0 to 255.
  • Validation: checking that input makes sense before using it.
  • VRP (Vulnerability Reward Program): Google's programme that pays people for reporting security bugs, here the Chrome VRP.

More by raven

View all

15 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.