Ushuaia2 is live: what changed and what to check

Summary

Protocol Ushuaia2 is now active on Tezos Mainnet. It succeeds Ushuaia and was activated through a user-activated upgrade (UAU). It adds no features. It gathers, in the protocol itself, the fixes for a series of security findings.

These findings were reported to us through the Tezos Foundation bug bounty program, by Tezos Commons, and by our own internal audit tools. As described in our recent post on changes to our development process, AI tools have made finding vulnerabilities faster and cheaper across the software industry, and Tezos is no exception. The same tools also help us find issues first: over 2026, they have become part of a continuous audit process on the Tezos protocol.

As the findings came in, we shipped security releases of Octez that mitigated them outside the protocol, mostly in the block validation plugin. Some of these mitigations had a temporary performance cost, which Ushuaia2 removes. This UAU consolidates all the fixes in the protocol, where they become rules enforced by every node rather than mitigations.

Ushuaia2 was activated through a UAU rather than the regular amendment process. A proposal’s code is public, and fixes reveal the flaws they correct: several weeks of voting would have drawn attention to these flaws before the fixes were active. A UAU kept that window short.

Ushuaia2 fixed 17 security issues, of which 11 were rated critical or high. They affected Michelson, staking, consensus, smart rollups and the validation of operations. What was at stake ranged from the availability of nodes and of the chain, to the correct attribution of staking rewards, to the robustness of smart rollup refutation games. We have no evidence that any of these issues were exploited on Mainnet. Now that the fixes are active, we can describe them: this post lists each change and its impact, by type of user. The full technical detail is in the Ushuaia2 ChangeLog and in the Breaking Changes page of the Octez documentation.

We thank everyone who made this upgrade possible. Thank you to the researchers who found these bugs, whether they reported them through the bug bounty program, sent them to us directly, or worked on our internal audit tools. Thank you to the engineers who worked on this UAU. And a particular thank you to the bakers, who once again showed their commitment and reactivity by upgrading in time.

Note: Bakers who are yet to upgrade are advised to do so as soon as possible. You can find more details here.

What changed, and what it means for you

Each item below states the change first, then its impact. Items marked as a breaking change may require an action from you. Find the groups you belong to. If none applies, you have nothing to do.

If you write or operate smart contracts

  • Time-lock chest keys (breaking change). A `chest_key` whose nonce exceeds 128 bits is now rejected when parsed. Impact: a contract that stores such a key, or pushes one as a literal, can no longer be called. Chest keys produced by `octez-client`, `octez.js` and Taquito with their default parameters are not affected.

  • Post-quantum (`tz5`) values (breaking change). While `tz5` accounts are not enabled, as on Mainnet today, ML-DSA-44 keys, `tz5` key hashes and ML-DSA-44 signatures are now rejected when parsed. Impact: a contract that stores such a value, or pushes one as a literal, cannot be called until `tz5` accounts are enabled.

  • Gas costs. Gas now covers the real cost of opening a time-lock and of the `AND` instruction on large numbers. Impact: a call that uses them may consume more gas.

  • Out-of-range values. Out-of-range values, such as a Sapling transaction with an invalid balance, are now rejected as soon as they are read. Impact: none for well-formed values.

If you stake with a baker

  • Very small stakes (breaking change). A stake too small to be credited anything now fails with an explicit error, `operations.stake_amount_too_small`. The operation reaches a block and fails there. In Ushuaia, it was refused beforehand, at no cost. Impact: such a stake now costs you its fees. Wallets that simulate an operation before sending it still catch the error and do not send it.

  • Rewards when a baker has no stake of its own. When a baker has no frozen stake of its own, the frozen rewards of its stakers go to the stakers again, as before Ushuaia. In Ushuaia, the baker received them. Impact: nothing to do.

If you run a baker

  • Staking after a slashing. A recently slashed baker now stakes from its liquid balance, and can no longer re-stake funds that may still be slashed. In Ushuaia, such a baker could not stake at all. Impact: you can stake again after a slashing, with tez from your spendable balance.

  • Rewards of your stakers. A baker with no frozen stake of its own no longer receives the frozen rewards of its stakers. They go to the stakers, as before Ushuaia. Impact: nothing to do.

  • DAL attestations. DAL attestations are counted again right after a protocol activation. Ushuaia ignored them for a few blocks, as a temporary workaround. Impact: nothing to do.

If your account has no spendable tez

  • Accounts emptied by their fees (breaking change). An operation whose fees would empty your account is now refused, unless you are your own delegate or have a staked balance. Funds waiting in unstake requests no longer count. Impact: keep enough tez for fees. Without it, you can no longer submit operations yourself. Your funds are not lost: any other account can finalize your unstake requests for you, and the tez is credited to your account.

If you run an accuser, an indexer or monitoring tools

  • Double baking evidence (breaking change). Double baking evidence that is inconsistent, or whose two block headers differ only by their signature, is refused. The second case now reports

`validate.block.invalid_double_baking_evidence`. In Ushuaia it was reported under a

`block_validation_plugin` identifier. Impact: update any tool that matches on the former identifier.

  • Error identifier of very small stakes. A stake that is too small now reports `operations.stake_amount_too_small`. In Ushuaia it was reported under a `block_validation_plugin` identifier. Impact: update any tool that matches on the former identifier.

If you simulate views through the RPC or `octez-client`

  • Gas cap on view simulation (breaking change). A view simulation can no longer use more gas than a single operation, even with `–unlimited-gas` or a larger `–gas`. Impact: a view that needs more now fails with a gas-exhaustion error.

If you operate a smart rollup

  • Invalid refutation moves and outbox executions. A refutation proof move that the protocol cannot accept, or an outbox execution with a broken proof, is now included in a block as a failed operation. In Ushuaia such operations were kept out of blocks. Impact: the author of such an operation now pays its fees.

  • Refutation games. A player can no longer present a message as belonging to another inbox level. Both players can act on the same game in the same block. Impact: nothing to do.

If you develop a smart rollup

  • WASM PVM version 7. Ushuaia2 adds version 7 of the WASM PVM, which bounds the payload of `store_write` before reading it.

Where to find the details

The Ushuaia2 ChangeLog lists every change, with the reason for each fix. The Breaking Changes page of the Octez documentation covers the changes in the previous section in more depth. If you have questions about how Ushuaia2 affects your setup, you can ask them in this thread or Discord. To report a security issue, use the Tezos Foundation bug bounty program.

7 Likes