AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 50 Bitcoin

fix(solana): accept sysvars loaded from ALTs

Public commit record

What the developer wrote

Authored by Jakub Janků

100/100 · Strong
fix(solana): accept sysvars loaded from ALTs

- A sysvar account loaded from an address lookup table is valid on
chain and common: web3.js moves every account found in a supplied
table there unless it is a signer or an invoked program [1]. All such
transactions were rejected, e.g. swaps that wrap SOL in a temporary
token account.
- The account behind such a reference can't be verified. That matters
only if the program accepts another account in the sysvar slot and
uses the accounts that follow in other roles, as the Stake program
does [2]. Keep rejecting the references in all of its instructions
and accept them in the other programs.
- Every instruction with a sysvar reference has to state the choice in
`allow_alt_sysvars`, so that none is strict or relaxed by omission.
- The other programs either fail on a different account, as System [3],
Token [4] and Token-2022 [5] do in the versions deployed on mainnet,
or take the sysvar as the last account, so that no account follows it
(ATA Create).

[1] https://github.com/solana-foundation/solana-web3.js/blob/0b7c053c9e1d913da6e030a1a82183a5ff42447a/src/message/compiled-keys.ts#L106-L120
[2] https://github.com/solana-program/stake/blob/dc3536222715c575c643f424649e4637be3c5ed2/program/src/processor.rs#L306-L313
[3] https://github.com/anza-xyz/agave/blob/9ef63128134af559561f6a91a641ec01e665c70d/programs/system/src/system_processor.rs#L410-L465
https://github.com/anza-xyz/agave/blob/9ef63128134af559561f6a91a641ec01e665c70d/program-runtime/src/sysvar_cache.rs#L278-L288
[4] https://github.com/solana-program/token/blob/a94dd19750dc3b2409f73e15bb74754935b2a489/pinocchio/program/src/processor/shared/initialize_account.rs#L45-L51
https://github.com/solana-program/token/blob/a94dd19750dc3b2409f73e15bb74754935b2a489/pinocchio/program/src/processor/shared/initialize_multisig.rs#L36-L39
https://github.com/anza-xyz/pinocchio/blob/pinocchio%40v0.9.3/sdk/pinocchio/src/sysvars/rent.rs#L117-L122
[5] https://github.com/solana-program/token-2022/blob/8867f751c0f69367ba03af4f85510b5611989491/program/src/processor.rs#L187-L188
https://github.com/solana-program/token-2022/blob/8867f751c0f69367ba03af4f85510b5611989491/program/src/processor.rs#L288-L289
https://github.com/anza-xyz/solana-sdk/blob/a5ecbeb813096b11c63cca476acf9b4d49e27475/sysvar/src/lib.rs#L144-L149

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This update fixes a bug in Trezor's Solana transaction handling. Some Solana transactions use a feature called 'address lookup tables' to save space, and Trezor was incorrectly rejecting valid transactions when a special system account (a 'sysvar') was referenced through one of these tables. The fix allows these references for most programs, but still blocks them for the Stake program because there the missing verification could shift account roles and cause confusion. The change is a functional bug fix rather than a clear-cut security patch, but it touches account validation rules that protect users from signing misleading transactions.

Recommended action

Treat this as a legitimate compatibility fix with a defensive carve-out. Review that the `allow_alt_sysvars=false` list covers every instruction where a sysvar is optional and followed by accounts whose roles could shift, and verify the generated `instructions.py` matches `programs.json`. Consider whether any other program beyond Stake has optional sysvars followed by meaningful accounts; if so, those instructions should also be set to false. No urgent security response is indicated by the commit alone.

Security signals we found

01

Change relaxes a previously strict validation rule (sysvar account identity verification) for some instruction types

02

Relaxation is scoped per-instruction via a new `allow_alt_sysvars` boolean

03

Stake program instructions retain strict rejection to prevent account-role shifting attacks

04

Fixes a real-world compatibility issue: Solana web3.js moves eligible accounts, including sysvars, into ALTs by default

05

No CVE, advisory, or independent researcher attribution present in the commit materials

Risk score

Why this scored 50/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 10/15
Affected reach 9/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.