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

Inappropriate implementation in V8 (CVE-2026-19168)

Maglev's OSR prologue in V8 subtracts a large amount from the stack pointer to reserve an untagged spill area without probing the pages in between, so a crafted page can jump the pthread guard page and write into an adjacent renderer thread's live stack. The PoC demonstrates cross-thread corruption of another worker's Wasm locals, which the reporter says can reach saved control-flow state and become a renderer code-execution primitive.

XBOW Follow

Originally disclosed on Chrome VRP

Bounty$500 High View original
  • Fix shipped in 18 days

VULNERABILITY DETAILS

M150 Maglev code generation can reserve a very large OSR frame with one stack-pointer subtraction without probing the intervening pages before using the frame. This implementation defect is not confined to Linux or x86-64: the same unprobed adjustment for the remaining untagged slots appears in the M150 x64, arm64, arm32, RISC-V, PPC, S390, and LoongArch64 backends.

The attached PoC was validated only on Linux x86-64. On that configuration, a sufficiently large untagged spill area jumps over a pthread guard page into an adjacent mapped thread stack, and later spills overwrite the other renderer thread's live native frame. On other targets, the consequence depends on the operating system's stack reservation, guard, and mapping layout; this report does not claim that the attached PoC works unchanged or that every target yields adjacent-stack corruption.

The following is the x64 implementation exercised by the validated exploit. Tagged slots are pushed and therefore touched, but the remaining untagged slots are allocated as follows:

C++
uint32_t size_so_far = source_frame_size + additional_tagged;
if (size_so_far < target_frame_size) {
  subq(rsp,
       Immediate((target_frame_size - size_so_far) * kSystemPointerSize));
}

There is no page probing or guard-aware preflight around this subtraction. The generated FunctionEntryStackCheck executes after the prologue has already built the frame, so it cannot prevent the guard-page jump.

The attached page demonstrates the resulting cross-thread write:

  1. It creates two equal-sized renderer pthread stacks in adjacent reusable holes. A lower-address worker runs a Liftoff function with 10,000 live i64 locals; the higher-address worker is the attacker.
  2. The attacker generates a Maglev OSR body with 500,084 expressions whose integer and floating-point forms remain live, producing a very large raw spill area.
  3. A recursive Proxy trap measures the current stack limit and positions the attacker close to its guard page.
  4. OSR entry performs the unprobed subtraction. The new RSP lands beyond the guard, in the victim's mapped stack, and Maglev spills change the victim's live Wasm locals.

The page contains no native payload. It stops at cross-thread corruption (or the resulting renderer failure).

The bug is reachable from ordinary web content in stock Chrome without a prior memory-corruption primitive or non-default browser flags. COOP/COEP response headers are used only to enable SharedArrayBuffer coordination and can be supplied by an attacker-controlled origin. The resulting overwrite targets a live native renderer stack and can corrupt saved control-flow state, making this a renderer-code-execution primitive; the attached minimal PoC intentionally stops at cross-thread data corruption.

VERSION

  • Validated Chrome configuration: Stable 150.0.7871.128, Linux x86-64
  • Code-level scope: the unprobed OSR adjustment is present in every M150 Maglev architecture backend listed above; exploitability outside Linux x86-64 was not tested
  • Chromium revision: 81891e5ca708047763816c778216799ef14c66cb
  • V8 revision: 2b2f69158528fdd9d86b778cfcc2d0a1c4f8c59f
  • Chrome GNU build ID: 2f071daf2a0b4aa68bda1729031294d443a989ab
  • OS used for validation: Ubuntu 24.04 x86-64

REPRODUCTION CASE

Attachments:

  • poc.html — self-contained trigger, including both worker bodies and generated Wasm.
  • server.py — Python standard-library server adding the COOP/COEP headers required for SharedArrayBuffer.

Reproduction steps:

  1. Put both files in one directory.

  2. Start the server:

    Bash
    cd stackclash
    python3 server.py
    
  3. Start a fresh Stable M150 process and navigate to the PoC:

    Bash
    google-chrome-stable \
      --user-data-dir=/tmp/chrome-maglev-stack-poc \
      http://127.0.0.1:8000/poc.html
    
  4. The page reports setup phases. On the tested machine, the target renderer failed about 18 seconds after navigation, shortly after RUNNING initialize attacker. Depending on stack reuse and the overwritten words, another run may instead report CONTEXT_OVERLAP_VICTIM_CHANGED with the changed live-local index and value.

The defaults in poc.html are the qualified M150 geometry. Query parameters are present only to make minimization and retesting easier; none are required.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION

Type of crash: renderer/tab process.

Crash State: One M150 focused run produced:

Text
exception: SIGTRAP (signal 5)
faulting thread: 0x316496
RIP: chrome+0x314e32b
instruction at chrome+0x314e32a: int3 (followed by ud2)
captured stack: [0x7488085d8160, 0x7488085e5000)
Chrome build ID: 2f071daf2a0b4aa68bda1729031294d443a989ab

An ASan diagnostic is not expected for the defining write: after RSP skips the guard, the destination is a valid, mapped neighboring pthread stack. The victim's changed live locals provide direct evidence of the cross-thread write.

CREDIT INFORMATION

Reporter credit: Found by XBOW and triaged by Andrés Luksenberg

The original report as published on the Chromium issue tracker, by XBOW and triaged by Andrés Luksenberg. 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. 5 min read.

Context

V8's Maglev compiler generates code for on-stack replacement (OSR), the mechanism that swaps a running function into optimised code while it is still executing. To do that, the generated prologue builds a new frame on the renderer thread's native stack: tagged slots are pushed one by one, and the remaining untagged slots are reserved in a single stack-pointer adjustment. The report concerns that adjustment in Chrome M150: when the OSR frame is very large, the subtraction moves RSP across whole pages without touching them first, so the stack guard page is never probed before the new frame is used.

The defect is not specific to one architecture. The same unprobed adjustment for the remaining untagged slots is present in the M150 x64, arm64, arm32, RISC-V, PPC, S390 and LoongArch64 Maglev backends. Only the Linux x86-64 configuration was validated with a proof of concept.

Setup

The researcher validated the issue on a stock Stable build, with no non-default browser flags and no prior memory-corruption primitive. The qualified configuration was:

Item Value
Chrome Stable 150.0.7871.128, Linux x86-64
OS Ubuntu 24.04 x86-64
Chromium revision [redacted]
V8 revision [redacted]
Chrome GNU build ID [redacted]

The reproduction uses two attachments:

  • poc.html, a self-contained trigger that includes both worker bodies and the generated Wasm.
  • server.py, a Python standard-library server that adds the COOP/COEP headers needed for SharedArrayBuffer.

COOP/COEP is only there to enable SharedArrayBuffer coordination between the workers, and those headers can be served by an attacker-controlled origin, so this is reachable from ordinary web content.

Finding it

The starting point is the x64 code path exercised by the validated exploit. Tagged slots are pushed, and therefore touched, but the remaining untagged slots are allocated with a single subtraction:

C++
uint32_t size_so_far = source_frame_size + additional_tagged;
if (size_so_far < target_frame_size) {
  subq(rsp,
       Immediate((target_frame_size - size_so_far) * kSystemPointerSize));
}

Nothing probes the pages covered by that subtraction, and nothing checks for a guard page. The generated FunctionEntryStackCheck runs after the prologue has already built the frame, so it cannot prevent the jump over the guard. If the untagged spill area is large enough, RSP lands in a neighbouring mapping instead of faulting on the guard page, and subsequent spills write there.

Exploitation

The proof of concept demonstrates a cross-thread write. It contains no native payload and stops at corruption of another renderer thread's live Wasm locals, or at the resulting renderer failure.

Step 1: place two renderer stacks side by side

The page creates two equal-sized renderer pthread stacks in adjacent reusable holes. The worker at the lower address runs a Liftoff function with 10,000 live i64 locals. The worker at the higher address is the attacker.

Step 2: build a very large Maglev OSR body

The attacker generates a Maglev OSR body with 500,084 expressions whose integer and floating-point forms remain live. This produces a very large raw spill area, which is what makes the single subtraction large enough to cross the guard page.

Step 3: move the attacker next to its guard page

A recursive Proxy trap measures the current stack limit and positions the attacker close to its guard page, so that the OSR frame reservation will run past the guard rather than into free space.

Step 4: enter OSR and spill into the victim

OSR entry performs the unprobed subtraction. The new RSP lands beyond the guard, inside the victim's mapped stack, and Maglev spills change the victim's live Wasm locals.

Running the reproduction

  1. Put both files in one directory.

  2. Start the server:

    Bash
    cd stackclash
    python3 server.py
    
  3. Start a fresh Stable M150 process and navigate to the PoC:

    Bash
    google-chrome-stable \
      --user-data-dir=/tmp/chrome-maglev-stack-poc \
      http://[redacted]:8000/poc.html
    
  4. The page reports setup phases. On the tested machine, the target renderer failed about 18 seconds after navigation, shortly after RUNNING initialize attacker. Depending on stack reuse and the overwritten words, another run may instead report CONTEXT_OVERLAP_VICTIM_CHANGED with the changed live-local index and value.

The defaults in poc.html are the qualified M150 geometry. Query parameters exist only to make minimisation and retesting easier; none are required.

Observed crash

One focused M150 run produced:

Text
exception: SIGTRAP (signal 5)
faulting thread: 0x316496
RIP: chrome+0x314e32b
instruction at chrome+0x314e32a: int3 (followed by ud2)
captured stack: [0x7488085d8160, 0x7488085e5000)
Chrome build ID: [redacted]

An ASan diagnostic is not expected for the defining write: once RSP skips the guard, the destination is a valid, mapped neighbouring pthread stack, so the write is not out of bounds from the allocator's point of view. The victim's changed live locals are the direct evidence of the cross-thread write.

Root cause

The OSR prologue reserves the untagged part of the frame with one subq on RSP and does not probe the pages it skips. On Linux x86-64, a sufficiently large untagged spill area therefore jumps over a pthread guard page into an adjacent mapped thread stack, and later spills overwrite the other renderer thread's live native frame. The FunctionEntryStackCheck cannot help because it executes after the frame has already been built.

The same unprobed adjustment appears in every M150 Maglev backend listed above. On other targets the consequence depends on the operating system's stack reservation, guard and mapping layout; the report does not claim that the attached PoC works unchanged there, or that every target yields adjacent-stack corruption.

Impact

The bug is reachable from ordinary web content in stock Chrome, without a prior memory-corruption primitive and without non-default browser flags. The overwrite targets a live native renderer stack and can corrupt saved control-flow state, which makes this a renderer-code-execution primitive. The attached minimal PoC intentionally stops at cross-thread data corruption and contains no native payload.

Fix

The report does not describe a fix or a code change.

Variants to test

  • Other architectures.
  • Different stack layouts.
  • Smaller frames.
  • Different positioning.

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. 17 min read.

What happened, in plain words

Chrome runs every web page inside a separate program called a renderer. That renderer is a normal program on your computer, and like every program it has a piece of memory called the stack, where it keeps track of what it is currently doing. The stack is protected at its edge by a special page of memory called a guard page: if a program tries to use memory past the edge, the guard page stops it and the program crashes safely instead of wandering into memory that belongs to something else.

Chrome contains a JavaScript engine called V8, and V8 contains a component called Maglev, which is a compiler: it turns JavaScript into faster machine code while the page is running. One of the things Maglev does is called on-stack replacement, or OSR. In simple terms, a function that has been running slowly for a while gets swapped, mid-run, into a faster version of itself. To do that, Maglev builds a new workspace on the stack, and it reserves that workspace by moving a pointer called RSP (the stack pointer) downwards in one big step.

The problem is that this one big step can be very large, and Maglev never touches the pages in between. Normally, when a program reserves a lot of stack, it touches each page on the way down, so the operating system notices and either gives it more memory or stops it at the guard page. Here that check is skipped. If the workspace is big enough, the stack pointer jumps clean over the guard page and lands in the stack of a different thread in the same renderer. From then on, when Maglev writes its temporary values, it writes them into the other thread's live data.

The researcher showed this with a proof of concept that makes one thread overwrite another thread's data. The proof of concept deliberately stops there: it does not run any malicious code. But because the overwritten memory is a real, live stack, the same flaw could in principle be used to take control of the renderer, which is why it was rated high severity.

The product and the feature

Before the details, a few words about the pieces involved.

  • Chrome is the browser. It splits work across several processes so that a broken page does not take down the whole browser. The process that runs a page's code is the renderer.
  • V8 is the part of Chrome that understands JavaScript. It reads the page's scripts and runs them.
  • Maglev is one of V8's compilers. A compiler here means a program that translates JavaScript into faster machine instructions. Maglev sits between the slow interpreter and the most aggressive optimiser.
  • OSR (on-stack replacement) is the trick of switching a function that is already running into its faster compiled version, without restarting it. Think of a long car journey where you change to a faster engine while still driving, rather than stopping and starting again.
  • The stack is a region of memory a program uses as a scratchpad. Each function call puts a new layer on top, and when the function returns the layer is removed. The stack pointer, usually called RSP on Intel-style processors, is a register that marks the current top of that scratchpad.
  • A guard page is an empty page placed at the edge of the stack. If the stack pointer or a write reaches it, the operating system raises an error and the program stops. It is like the barrier at the end of a car park: you cannot drive past it into the next building.
  • A thread is one line of execution inside a program. A renderer can have several threads, each with its own stack. Two threads' stacks can end up next to each other in memory.
  • **A page is the unit in which the operating system hands out memory, typically 4 kilobytes. Memory protection, such as guard pages, works page by page.

Context

V8's Maglev compiler generates code for on-stack replacement (OSR), the mechanism that swaps a running function into optimised code while it is still executing. To do that, the generated prologue builds a new frame on the renderer thread's native stack: tagged slots are pushed one by one, and the remaining untagged slots are reserved in a single stack-pointer adjustment. The report concerns that adjustment in Chrome M150: when the OSR frame is very large, the subtraction moves RSP across whole pages without touching them first, so the stack guard page is never probed before the new frame is used.

In plain words: when Maglev prepares the faster version of a running function, it first sets aside space on the stack. Some of that space is filled in piece by piece, which means those pages get touched. The rest is set aside with one single subtraction from the stack pointer. If that subtraction is huge, the pointer skips over whole pages without anything ever touching them, so the guard page never gets a chance to stop it.

The defect is not specific to one architecture. The same unprobed adjustment for the remaining untagged slots is present in the M150 x64, arm64, arm32, RISC-V, PPC, S390 and LoongArch64 Maglev backends. Only the Linux x86-64 configuration was validated with a proof of concept.

An architecture here means the family of processor a computer uses. x64 is the common desktop and laptop processor; arm64 is common on phones and newer laptops; arm32, RISC-V, PPC, S390 and LoongArch64 are other processor families. Each has its own version of the Maglev code, called a backend, and the report says the same missing check appears in all of them. Only one combination, Linux on x64, was actually tested.

Setup

The researcher validated the issue on a stock Stable build, with no non-default browser flags and no prior memory-corruption primitive. The qualified configuration was:

Item Value
Chrome Stable 150.0.7871.128, Linux x86-64
OS Ubuntu 24.04 x86-64
Chromium revision [redacted]
V8 revision [redacted]
Chrome GNU build ID [redacted]

A stock Stable build means the ordinary Chrome that anyone downloads, not a special developer version. No non-default browser flags means the researcher did not switch on any hidden settings. No prior memory-corruption primitive means the page did not first need to break something else: it reaches the bug from a normal page.

The revision numbers identify the exact version of the Chromium and V8 source code that was examined. The build ID identifies the exact compiled Chrome binary. These let someone else reproduce the same test on the same code.

The reproduction uses two attachments:

  • poc.html, a self-contained trigger that includes both worker bodies and the generated Wasm.
  • server.py, a Python standard-library server that adds the COOP/COEP headers needed for SharedArrayBuffer.

A proof of concept, or PoC, is a small demonstration that shows a bug is real without doing any harm. Wasm (WebAssembly) is a fast, low-level language that browsers can run; here it is used to create the victim thread's work. A worker is a background thread a page can start to do work in parallel. SharedArrayBuffer is a piece of memory that several workers can share and coordinate through. Browsers only allow it when the page is served with two special response headers, COOP and COEP, which tell the browser the page is isolated from other sites.

COOP/COEP is only there to enable SharedArrayBuffer coordination between the workers, and those headers can be served by an attacker-controlled origin, so this is reachable from ordinary web content.

In other words, the headers are not a security barrier here: a malicious site can simply send them itself. That is why the report stresses that the bug is reachable from ordinary web content.

Finding it

The starting point is the x64 code path exercised by the validated exploit. Tagged slots are pushed, and therefore touched, but the remaining untagged slots are allocated with a single subtraction:

C++
uint32_t size_so_far = source_frame_size + additional_tagged;
if (size_so_far < target_frame_size) {
  subq(rsp,
       Immediate((target_frame_size - size_so_far) * kSystemPointerSize));
}

Line by line:

  1. uint32_t size_so_far = source_frame_size + additional_tagged; works out how much space has already been accounted for: the size of the frame being replaced plus the extra tagged slots that were pushed.
  2. if (size_so_far < target_frame_size) { checks whether the new, larger frame still needs more room.
  3. subq(rsp, Immediate((target_frame_size - size_so_far) * kSystemPointerSize)); subtracts the missing amount from the stack pointer in one go. subq means subtract on a 64-bit register, rsp is the stack pointer, and the amount is the number of missing slots multiplied by the size of one pointer.
  4. The closing brace ends the check.

Nothing probes the pages covered by that subtraction, and nothing checks for a guard page. The generated FunctionEntryStackCheck runs after the prologue has already built the frame, so it cannot prevent the jump over the guard. If the untagged spill area is large enough, RSP lands in a neighbouring mapping instead of faulting on the guard page, and subsequent spills write there.

A prologue is the short piece of code that runs at the start of a function to set up its workspace. A spill is when the compiler saves a value from a fast processor register into memory, usually the stack, because it needs the register for something else. A mapping is a region of memory the operating system has assigned to the program. FunctionEntryStackCheck is a safety check that V8 normally runs when entering a function, but here it runs too late: the frame has already been built by then.

Exploitation

The proof of concept demonstrates a cross-thread write. It contains no native payload and stops at corruption of another renderer thread's live Wasm locals, or at the resulting renderer failure.

A cross-thread write means one thread writes into memory that belongs to another thread. A native payload would be machine code the attacker wants the processor to run; the PoC deliberately contains none. Live locals are the variables a running function is currently keeping on its stack. The PoC's goal is simply to change those variables from the other thread.

Step 1: place two renderer stacks side by side

The page creates two equal-sized renderer pthread stacks in adjacent reusable holes. The worker at the lower address runs a Liftoff function with 10,000 live i64 locals. The worker at the higher address is the attacker.

A pthread is a standard way for a program to create a thread. A hole here means a free region of memory that the operating system can reuse for a new stack. Liftoff is V8's fast WebAssembly compiler, the one that produces the victim's code. i64 is a 64-bit integer type in WebAssembly. The point of this step is to arrange the two stacks so that the attacker's stack sits directly above the victim's, with only the guard page between them.

Step 2: build a very large Maglev OSR body

The attacker generates a Maglev OSR body with 500,084 expressions whose integer and floating-point forms remain live. This produces a very large raw spill area, which is what makes the single subtraction large enough to cross the guard page.

An expression here is a piece of JavaScript that produces a value. Integer and floating-point forms means each value is kept both as a whole number and as a decimal number, so twice as much has to be stored. Because all of them stay live at once, the compiler has to reserve a very large area to spill them into. That is what makes the single subtraction big enough to jump over the guard page.

Step 3: move the attacker next to its guard page

A recursive Proxy trap measures the current stack limit and positions the attacker close to its guard page, so that the OSR frame reservation will run past the guard rather than into free space.

A Proxy is a JavaScript object that lets code intercept operations on another object. A trap is the function that runs when such an operation happens. Recursive means the trap calls itself repeatedly, which uses up stack and lets the code measure how much room is left. The goal is to place the attacker's stack pointer just above the guard page, so that the big subtraction has to cross it.

Step 4: enter OSR and spill into the victim

OSR entry performs the unprobed subtraction. The new RSP lands beyond the guard, inside the victim's mapped stack, and Maglev spills change the victim's live Wasm locals.

This is the moment the bug fires. The stack pointer jumps over the guard page, the spills that follow land in the victim thread's stack, and the victim's live variables change underneath it.

Running the reproduction

  1. Put both files in one directory.

  2. Start the server:

    Bash
    cd stackclash
    python3 server.py
    

    Line by line: cd stackclash moves into the directory called stackclash that holds the two files. python3 server.py runs the small Python server, which serves the page with the COOP/COEP headers so that SharedArrayBuffer is allowed.

  3. Start a fresh Stable M150 process and navigate to the PoC:

    Bash
    google-chrome-stable \
      --user-data-dir=/tmp/chrome-maglev-stack-poc \
      http://[redacted]:8000/poc.html
    

    Line by line: google-chrome-stable starts the ordinary Chrome. --user-data-dir=/tmp/chrome-maglev-stack-poc tells it to use a fresh, separate profile folder, so the test does not touch your normal browsing data. http://[redacted]:8000/poc.html is the address of the page on the local server; [redacted] means this computer, and 8000 is the port the server listens on.

  4. The page reports setup phases. On the tested machine, the target renderer failed about 18 seconds after navigation, shortly after RUNNING initialize attacker. Depending on stack reuse and the overwritten words, another run may instead report CONTEXT_OVERLAP_VICTIM_CHANGED with the changed live-local index and value.

The page prints progress messages so you can see which step it has reached. Stack reuse means the operating system may hand out the same memory in a slightly different arrangement on another run, so the result can vary. CONTEXT_OVERLAP_VICTIM_CHANGED is the message the page prints when it detects that the victim's live variables have changed, together with which variable and what value it now holds.

The defaults in poc.html are the qualified M150 geometry. Query parameters exist only to make minimisation and retesting easier; none are required.

Geometry here means the sizes and arrangement of the stacks and frames that were tested. Query parameters are the extra ?name=value parts of a web address; the page accepts them to make it easier to shrink the test or run it again, but the default settings already work.

Observed crash

One focused M150 run produced:

Text
exception: SIGTRAP (signal 5)
faulting thread: 0x316496
RIP: chrome+0x314e32b
instruction at chrome+0x314e32a: int3 (followed by ud2)
captured stack: [0x7488085d8160, 0x7488085e5000)
Chrome build ID: [redacted]

Line by line: exception: SIGTRAP (signal 5) says the program stopped with a trap signal, which is what a deliberate breakpoint instruction raises. faulting thread: 0x316496 identifies the thread that stopped. RIP: chrome+0x314e32b gives the instruction pointer, that is, where in the Chrome program the processor was. instruction at chrome+0x314e32a: int3 (followed by ud2) shows the exact instruction: int3 is a breakpoint instruction, and ud2 is an instruction that deliberately raises an error. captured stack: [0x7488085d8160, 0x7488085e5000) gives the range of the stack that was captured. Chrome build ID: [redacted] identifies the exact Chrome binary.

An ASan diagnostic is not expected for the defining write: once RSP skips the guard, the destination is a valid, mapped neighbouring pthread stack, so the write is not out of bounds from the allocator's point of view. The victim's changed live locals are the direct evidence of the cross-thread write.

ASan (AddressSanitizer) is a debugging tool that watches memory accesses and reports ones that go outside the memory a program was given. Here it would stay silent, because the memory being written is a perfectly valid stack, just the wrong thread's. That is why the report points to the victim's changed variables as the real evidence.

Root cause

The OSR prologue reserves the untagged part of the frame with one subq on RSP and does not probe the pages it skips. On Linux x86-64, a sufficiently large untagged spill area therefore jumps over a pthread guard page into an adjacent mapped thread stack, and later spills overwrite the other renderer thread's live native frame. The FunctionEntryStackCheck cannot help because it executes after the frame has already been built.

The same unprobed adjustment appears in every M150 Maglev backend listed above. On other targets the consequence depends on the operating system's stack reservation, guard and mapping layout; the report does not claim that the attached PoC works unchanged there, or that every target yields adjacent-stack corruption.

In short: the code reserves a large amount of stack in one step without touching the pages on the way, so the guard page never gets a chance to stop it. The later safety check runs too late. The same pattern exists on other processor families, but whether it leads to the same result depends on how each operating system lays out its stacks, and the report does not claim the PoC works there unchanged.

Impact

The bug is reachable from ordinary web content in stock Chrome, without a prior memory-corruption primitive and without non-default browser flags. The overwrite targets a live native renderer stack and can corrupt saved control-flow state, which makes this a renderer-code-execution primitive. The attached minimal PoC intentionally stops at cross-thread data corruption and contains no native payload.

Saved control-flow state means the stored information that tells the processor where to return to after a function finishes. If an attacker can change that, they can redirect the program to code of their choosing. A renderer-code-execution primitive means the bug gives an attacker the building blocks to run their own code inside the renderer process. The PoC does not go that far; it stops at changing another thread's data.

Fix

The report does not describe a fix or a code change.

Probing the pages means touching each page on the way down, so the operating system notices and the guard page does its job. A guard-aware preflight means checking for the guard page before making the big subtraction, rather than after.

Variants to test

  • Other architectures.
  • Different stack layouts.
  • Smaller frames.
  • Different positioning.

A positive result means the test shows the bug is present on that setup. Intermittent means it only happens some of the time.

Glossary

  • Architecture: the family of processor a computer uses, such as x64 or arm64.
  • ASan (AddressSanitizer): a debugging tool that reports memory accesses outside the memory a program was given.
  • Backend: the part of a compiler that produces code for one particular processor family.
  • Build ID: a unique identifier for one compiled binary of a program.
  • Chrome: the web browser made by Google.
  • COEP: a response header that helps isolate a page from other sites.
  • COOP: a response header that helps isolate a page from other sites.
  • Cross-thread write: one thread writing into memory that belongs to another thread.
  • Expression: a piece of code that produces a value.
  • Guard page: an empty memory page at the edge of a stack that stops the program if it tries to go past.
  • Hole: a free region of memory the operating system can reuse.
  • i64: a 64-bit integer type in WebAssembly.
  • Intermittent: happening only some of the time.
  • Liftoff: V8's fast WebAssembly compiler.
  • Live locals: the variables a running function is currently keeping on its stack.
  • Maglev: one of V8's JavaScript compilers, sitting between the interpreter and the most aggressive optimiser.
  • Mapping: a region of memory the operating system has assigned to a program.
  • Native payload: machine code an attacker wants the processor to run.
  • OSR (on-stack replacement): switching a function that is already running into its faster compiled version without restarting it.
  • Page: the unit in which the operating system hands out and protects memory.
  • PoC (proof of concept): a small demonstration that shows a bug is real without doing harm.
  • Probing: touching each page on the way down so the operating system notices and the guard page works.
  • Prologue: the short piece of code at the start of a function that sets up its workspace.
  • Proxy: a JavaScript object that lets code intercept operations on another object.
  • pthread: a standard way for a program to create a thread.
  • Query parameters: the extra ?name=value parts of a web address.
  • Recursive: a function that calls itself.
  • Renderer: the Chrome process that runs a page's code.
  • Revision: a number identifying an exact version of source code.
  • RSP: the stack pointer register on Intel-style processors, marking the current top of the stack.
  • Saved control-flow state: stored information that tells the processor where to return after a function finishes.
  • SharedArrayBuffer: a piece of memory several workers can share and coordinate through.
  • Spill: saving a value from a processor register into memory, usually the stack.
  • Stack: a region of memory a program uses as a scratchpad for function calls and local values.
  • Stack pointer: a register marking the current top of the stack.
  • Thread: one line of execution inside a program, with its own stack.
  • Trap: the function that runs when an intercepted operation happens on a Proxy.
  • V8: the JavaScript engine inside Chrome.
  • Wasm (WebAssembly): a fast, low-level language browsers can run.
  • Worker: a background thread a page can start to do work in parallel.

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.