Email me

Rust advisories / solana_rbpf

UnsoundRUSTSEC-2026-0191 · solana_rbpf

RUSTSEC-2026-0191: `EbpfVm::invoke_function` performs out-of-bounds pointer arithmetic

Short answersolana_rbpf has an API that can cause undefined behaviour from safe code: `EbpfVm::invoke_function` performs out-of-bounds pointer arithmetic. No fixed version yet.

Cratesolana_rbpf
TypeUnsound (memory-corruption)
Affected versionsFrom 0.8.0 onward (every version).
Fixed innone
Severitynot scored
Published2026-05-28
Last changed2026-06-29
Also known asnone
Affected functionssolana_rbpf::vm::EbpfVm::invoke_function

What to do

  1. Find who pulls it in: cargo tree -i solana_rbpf.
  2. Avoid the affected API (solana_rbpf::vm::EbpfVm::invoke_function), or replace the crate.

Details from the advisory

Affected versions of solana_rbpf expose the safe method EbpfVm::invoke_function. This method computes an obfuscated VM pointer by casting self to *mut u64 and applying a randomized offset derived from get_runtime_environment_key().

The resulting pointer arithmetic is performed with ptr::offset, which requires the computed pointer to remain within the same allocation. In practice, the randomized offset can move the pointer far outside the allocation containing the EbpfVm, causing undefined behavior before the supplied builtin function is invoked.

Unmaintained

The upstream solana_rbpf repository is archived, and no patched version of this crate is currently available.

Users should migrate to the maintained solana-sbpf crate. The issue has been fixed there in anza-xyz/sbpf#151.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for solana_rbpf

Full security history of solana_rbpf

Up next

Same cratesolana_rbpf: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ