Uninitialized Use in V8 (CVE-2026-15132)
The TurboShaft assembler fails to mark certain element stores as initialising, so store-store elimination may remove stores that alias later ones, leaving uninitialised memory visible to the garbage collector. The reporter could not find a real reproducer and set a low severity because exploitation is unclear.
Originally disclosed on Chrome VRP
- Fix shipped in 15 days
The TurboShaft assembler does not set the maybe_initializing_or_transitioning properties for element stores in a few places:
- In the
NewArraynode that initialized a fixed array usingStoreNonArrayBufferElement(). - Strings use
InitializeElement()to initialize the data, this does not set themaybe_initializing_or_transitioningdespite the name. - WasmGC
ArraySetandStructSetuse regular stores too 2.
The problem is that when store-store-elimination runs, it may delete stores that are alias with a later store, but it should opt out if the maybe_initializing_or_transitioning. As a result, uninitialized memory could be visible to the GC in the above cases.
At the time of reporting however, we weren't able to find a real reproducer, given:
- The store-store-elimination pass doesn't run for wasm code
- The NewArray, and many of the string initializations, uses loops that cannot be unrolled, this could change in the future
- Strings are immutable, so another store cannot alias. At least for the place we found where a single-char string was initialised with a store that could be eliminated, as it's a fixed-offset store 1.
I've set a low severity given we're unsure how uninitialised memory visible to the GC would be exploited. And we couldn't actually trigger store-store elimination on main.
Context
This is a Chrome VRP report about V8, Chrome's JavaScript and WebAssembly engine. The affected component is the TurboShaft compiler, specifically the machine lowering reducer and the Wasm lowering reducer. The weakness class is uninitialized use: memory that the garbage collector can observe before it has been written.
The report concerns a property called maybe_initializing_or_transitioning, which TurboShaft attaches to certain stores. When store-store-elimination runs, it may delete a store that aliases a later store, but it is supposed to opt out of that elimination when the store carries maybe_initializing_or_transitioning. The researcher found places where element stores that do initialise memory are created without that property being set, so the elimination pass has no reason to keep them.
Setup
The report describes source-level analysis of the V8 codebase rather than a live test against a running browser. The researcher worked from the TurboShaft lowering code and the store-store-elimination pass. No specific Chrome version, build configuration or debugging tooling is given in the report.
The relevant code is in two files, referenced at a single revision:
v8/src/compiler/turboshaft/machine-lowering-reducer-inl.hv8/src/compiler/turboshaft/wasm-lowering-reducer.h
Finding it
The researcher noticed that the TurboShaft assembler does not set the maybe_initializing_or_transitioning properties for element stores in a few places:
- In the
NewArraynode that initialised a fixed array usingStoreNonArrayBufferElement(). - Strings use
InitializeElement()to initialise the data. Despite the name, this does not setmaybe_initializing_or_transitioning. - WasmGC
ArraySetandStructSetuse regular stores too.
The reasoning is that when store-store-elimination runs, it may delete stores that alias with a later store, but it should opt out if the store is marked maybe_initializing_or_transitioning. Because these three paths create initialising stores without the marker, the elimination pass can treat them as ordinary redundant stores. As a result, uninitialized memory could be visible to the GC in the above cases.
Exploitation
At the time of reporting, the researcher was not able to find a real reproducer. The report sets out three reasons why triggering the bug was not possible in practice:
- The store-store-elimination pass does not run for wasm code, which rules out the WasmGC
ArraySetandStructSetpaths. - The
NewArraypath, and many of the string initialisations, use loops that cannot be unrolled. The researcher explicitly notes that this could change in the future. - Strings are immutable, so another store cannot alias. This applies at least to the place found where a single-character string was initialised with a store that could be eliminated, because it is a fixed-offset store.
The researcher also states that store-store elimination could not actually be triggered on main.
Root cause
The mistake is a missing marker on stores that initialise memory. TurboShaft relies on maybe_initializing_or_transitioning to tell store-store-elimination that a store must be preserved even when a later store appears to alias it. Three code paths create element stores that initialise memory without setting that marker:
StoreNonArrayBufferElement()in theNewArraynode.InitializeElement()for strings, whose name suggests initialisation but which does not set the property.- The regular stores used by WasmGC
ArraySetandStructSet.
Because the marker is absent, the elimination pass has no signal that these stores are special and may remove them as redundant. The existing defence, the opt-out in store-store-elimination, therefore does not apply to these paths. The report does not describe any further mitigation that would have caught the issue.
Impact
The report frames the impact as uninitialized memory becoming visible to the GC in the cases listed above. The researcher set a low severity because it was unclear how uninitialized memory visible to the GC would be exploited, and because store-store elimination could not be triggered on main. The platform record classifies the issue as high severity, but the report itself does not describe a concrete exploitation path, affected users or attacker preconditions beyond the code paths above.
Fix
The report does not state what fix was applied. The change that follows from the analysis is to set maybe_initializing_or_transitioning on the element stores created by StoreNonArrayBufferElement() in the NewArray node, by InitializeElement() for strings, and by the regular stores used for WasmGC ArraySet and StructSet, so that store-store-elimination opts out of removing them. Whether the fix took that form is not described in the report.
Variants to test
- Audit other lowering reducers for stores that initialise memory but do not set
maybe_initializing_or_transitioning. A positive result is an initialising store created without the marker on a path that store-store-elimination can reach. - Look for initialisation loops that the compiler can unroll. The report notes that the
NewArrayand many string initialisation loops cannot currently be unrolled, and that this could change. A positive result is an unrollable initialisation loop whose stores can be eliminated. - Check fixed-offset stores into immutable objects, such as the single-character string case. A positive result is an aliasing store that the elimination pass can remove despite the object being immutable.
- Check whether store-store-elimination is enabled for a given compilation path, since the wasm paths were ruled out because the pass does not run there. A positive result is a path where the pass runs and reaches an unmarked initialising store.
Hunting notes
This kind of bug hides in compiler lowering code where a property with security meaning is set on most stores but missed on a few specialised paths. The signals are initialisation helpers whose names imply initialisation but which do not set the corresponding marker, and stores emitted by dedicated helpers such as StoreNonArrayBufferElement() rather than by the general store path. The researcher traced each affected path to the elimination pass and explained why the pass would not opt out, while being explicit that no reproducer existed and that the pass could not be triggered on main.
What happened, in plain words
Chrome runs the JavaScript and WebAssembly code that websites send it. The part of Chrome that does this is called V8. Inside V8 there is a compiler called TurboShaft, whose job is to turn the code a website supplies into faster machine instructions.
When a program creates a new list (in JavaScript, an array) or a new string, the computer has to reserve some memory and fill it with values. The compiler sometimes notices that one write to memory is pointless because a later write to the same place overwrites it, and it deletes the pointless one. That cleanup is called store-store elimination: "store" is a write to memory, and the pass removes a store that a later store makes redundant.
There is a catch. If the first write is the one that puts a value into brand-new memory, deleting it leaves that memory holding whatever was there before, which is garbage. V8 has a marker called maybe_initializing_or_transitioning that it is supposed to attach to such writes, so the cleanup pass knows to leave them alone. The researcher found three places where writes that do initialise memory are created without that marker. In those places the cleanup pass has no reason to keep the write, so uninitialised memory could become visible to the garbage collector.
A garbage collector (GC) is the part of the runtime that automatically frees memory no longer in use. If it reads memory that was never written, it can make decisions based on leftover data, which is the kind of thing that can sometimes be turned into a security problem.
The researcher could not build a working example that actually triggers the bug, and set a low severity for that reason. The researcher set a low severity for that reason.
Context
This is a Chrome VRP report about V8, Chrome's JavaScript and WebAssembly engine. WebAssembly (often shortened to wasm) is a second language that browsers run, designed to be fast and to be produced by compilers of other languages such as C++ or Rust. The affected component is the TurboShaft compiler, specifically two parts of it: the machine lowering reducer and the Wasm lowering reducer.
"Lowering" means translating the program from a high-level, abstract form into instructions closer to what the processor actually does. A "reducer" is a component that performs one such translation step. The weakness class is uninitialized use: memory that the garbage collector can observe before it has been written.
The report concerns a property called maybe_initializing_or_transitioning, which TurboShaft attaches to certain stores. A property here means a flag recorded alongside an instruction inside the compiler, not a JavaScript object property. When store-store-elimination runs, it may delete a store that aliases a later store, but it is supposed to opt out of that elimination when the store carries maybe_initializing_or_transitioning. Two writes "alias" when they touch the same memory location; if you write to a box and then write to the same box again, the first write is redundant.
The researcher found places where element stores that do initialise memory are created without that property being set, so the elimination pass has no reason to keep them. An "element store" is a write into one slot of an array or similar structure, as opposed to a write of a whole variable.
Setup
The report describes source-level analysis of the V8 codebase rather than a live test against a running browser. In other words, the researcher read the compiler's source code and reasoned about what it would do, instead of running a browser and watching the bug happen. The researcher worked from the TurboShaft lowering code and the store-store-elimination pass. No specific Chrome version, build configuration or debugging tooling is given in the report.
The relevant code is in two files, referenced at a single revision:
v8/src/compiler/turboshaft/machine-lowering-reducer-inl.hv8/src/compiler/turboshaft/wasm-lowering-reducer.h
These are file paths inside the V8 source tree. The first holds the lowering code shared by ordinary JavaScript, the second holds the lowering code specific to WebAssembly. A "revision" is one particular saved state of the source code, so the line numbers cited only make sense against that exact snapshot.
Finding it
The researcher noticed that the TurboShaft assembler does not set the maybe_initializing_or_transitioning properties for element stores in a few places:
- In the
NewArraynode that initialised a fixed array usingStoreNonArrayBufferElement(). - Strings use
InitializeElement()to initialise the data. Despite the name, this does not setmaybe_initializing_or_transitioning. - WasmGC
ArraySetandStructSetuse regular stores too.
Taking these in turn. A "node" is one instruction in the compiler's internal representation of the program; NewArray is the node that stands for "create a new array". A "fixed array" is an array whose size is decided when it is created and does not change. StoreNonArrayBufferElement() is a helper function in the compiler that emits the write into one slot of such an array. The name refers to the fact that this helper is not the one used for array buffers, a different kind of raw byte storage.
Strings in V8 are built from characters, and InitializeElement() is the helper used to write those characters in. The name strongly suggests it initialises memory, but the report's point is that it does not set the marker that would tell the cleanup pass to preserve the write.
WasmGC is the part of WebAssembly that supports garbage-collected data structures, so wasm programs can create arrays and structs (records with named fields) that the GC manages. ArraySet and StructSet are the operations that write into a wasm array slot and a wasm struct field. The report says these use ordinary stores, again without the marker.
The reasoning is that when store-store-elimination runs, it may delete stores that alias with a later store, but it should opt out if the store is marked maybe_initializing_or_transitioning. Because these three paths create initialising stores without the marker, the elimination pass can treat them as ordinary redundant stores. As a result, uninitialized memory could be visible to the GC in the above cases.
The everyday comparison: imagine a form where every field must be filled in before it is filed away. Most clerks stamp "new entry" on the forms they create, so the filing clerk knows not to throw away a form that looks blank but is about to be filled. In three workflows the stamp is missing, so the filing clerk may discard the form as a duplicate, and the archive ends up holding a blank page.
Exploitation
At the time of reporting, the researcher was not able to find a real reproducer. A reproducer is a small, reliable set of steps that makes the bug happen on demand; without one, you cannot show the impact, only argue that it exists. The report sets out three reasons why triggering the bug was not possible in practice:
- The store-store-elimination pass does not run for wasm code, which rules out the WasmGC
ArraySetandStructSetpaths. - The
NewArraypath, and many of the string initialisations, use loops that cannot be unrolled. The researcher explicitly notes that this could change in the future. - Strings are immutable, so another store cannot alias. This applies at least to the place found where a single-character string was initialised with a store that could be eliminated, because it is a fixed-offset store.
Unrolling a loop means the compiler replaces the repetition with a straight-line copy of the body, one copy per iteration. Only unrolled code gives the cleanup pass individual stores it can compare and delete; a loop that stays a loop is not something the pass can pick apart this way. "Immutable" means the value cannot be changed after it is created, so no later write can target the same string, and the aliasing situation the pass looks for cannot arise. A "fixed-offset store" writes to a slot at a position known in advance, which is exactly the shape the pass finds easy to reason about.
The researcher also states that store-store elimination could not actually be triggered on main. "Main" is the main development line of the V8 source code, the version everyone builds from.
Root cause
The mistake is a missing marker on stores that initialise memory. TurboShaft relies on maybe_initializing_or_transitioning to tell store-store-elimination that a store must be preserved even when a later store appears to alias it. Three code paths create element stores that initialise memory without setting that marker:
StoreNonArrayBufferElement()in theNewArraynode.InitializeElement()for strings, whose name suggests initialisation but which does not set the property.- The regular stores used by WasmGC
ArraySetandStructSet.
Because the marker is absent, the elimination pass has no signal that these stores are special and may remove them as redundant. The existing defence, the opt-out in store-store-elimination, therefore does not apply to these paths. The report does not describe any further mitigation that would have caught the issue.
In plain terms: the safety mechanism exists and works, but it is triggered by a label, and these three code paths forget to attach the label. The mechanism is not broken; it is simply never asked to act.
Impact
The report frames the impact as uninitialized memory becoming visible to the GC in the cases listed above. The researcher set a low severity because it was unclear how uninitialized memory visible to the GC would be exploited, and because store-store elimination could not be triggered on main. The platform record classifies the issue as high severity, but the report itself does not describe a concrete exploitation path, affected users or attacker preconditions beyond the code paths above.
"Severity" is the rating of how serious a bug is. "Exploited" means turned into an actual attack, for example one that reads data it should not or runs code it should not. "Attacker preconditions" are the things an attacker would need to control before the bug becomes useful, such as a particular kind of page or a particular browser build.
Fix
The report does not state what fix was applied. The change that follows from the analysis is to set maybe_initializing_or_transitioning on the element stores created by StoreNonArrayBufferElement() in the NewArray node, by InitializeElement() for strings, and by the regular stores used for WasmGC ArraySet and StructSet, so that store-store-elimination opts out of removing them. Whether the fix took that form is not described in the report.
Put simply, the natural repair is to add the missing stamp in all three workflows, so the filing clerk keeps the forms that are about to be filled in.
Variants to test
These are directions for anyone who wants to look for the same class of mistake elsewhere. Each one names what counts as a hit.
- Audit other lowering reducers for stores that initialise memory but do not set
maybe_initializing_or_transitioning. A positive result is an initialising store created without the marker on a path that store-store-elimination can reach. - Look for initialisation loops that the compiler can unroll. The report notes that the
NewArrayand many string initialisation loops cannot currently be unrolled, and that this could change. A positive result is an unrollable initialisation loop whose stores can be eliminated. - Check fixed-offset stores into immutable objects, such as the single-character string case. A positive result is an aliasing store that the elimination pass can remove despite the object being immutable.
- Check whether store-store-elimination is enabled for a given compilation path, since the wasm paths were ruled out because the pass does not run there. A positive result is a path where the pass runs and reaches an unmarked initialising store.
Hunting notes
This kind of bug hides in compiler lowering code where a property with security meaning is set on most stores but missed on a few specialised paths. The signals are initialisation helpers whose names imply initialisation but which do not set the corresponding marker, and stores emitted by dedicated helpers such as StoreNonArrayBufferElement() rather than by the general store path. The researcher traced each affected path to the elimination pass and explained why the pass would not opt out, while being explicit that no reproducer existed and that the pass could not be triggered on main.
Glossary
- V8: the engine inside Chrome that runs JavaScript and WebAssembly.
- TurboShaft: the compiler inside V8 that translates program code into faster machine instructions.
- WebAssembly (wasm): a fast, low-level language that browsers run alongside JavaScript.
- WasmGC: the part of WebAssembly that supports garbage-collected arrays and structs.
- Lowering: translating a program from an abstract form into instructions closer to the processor.
- Reducer: a compiler component that performs one lowering step.
- Node: one instruction in the compiler's internal representation of a program.
- Store: a write of a value into memory.
- Element store: a write into one slot of an array or similar structure.
- Alias: two writes that touch the same memory location.
- Store-store elimination: a compiler cleanup that deletes a write made redundant by a later write to the same place.
- Uninitialized use: reading memory before anything has written to it.
- Garbage collector (GC): the runtime part that automatically frees memory no longer in use.
maybe_initializing_or_transitioning: a marker TurboShaft attaches to stores that initialise memory, telling the cleanup pass to keep them.NewArray: the compiler node that represents creating a new array.- Fixed array: an array whose size is fixed when it is created.
StoreNonArrayBufferElement(): the compiler helper that emits a write into one slot of a fixed array.InitializeElement(): the helper used to write characters into a string.ArraySet/StructSet: wasm operations that write into a wasm array slot or struct field.- Immutable: cannot be changed after creation.
- Fixed-offset store: a write to a slot at a position known in advance.
- Loop unrolling: replacing a loop with a straight-line copy of its body, one copy per iteration.
- Reproducer: a small, reliable set of steps that makes a bug happen on demand.
- Main: the main development line of the source code.
- Severity: the rating of how serious a bug is.
- Exploit: to turn a bug into an actual attack.
- Attacker preconditions: what an attacker must control before a bug becomes useful.
- Chrome VRP: Google's Vulnerability Reward Program, which pays for reports of security bugs in Chrome.
- Revision: one particular saved state of the source code.