Advisory

RUSTSEC-2026-0191

Also known as: None

Summary

EbpfVm::invoke_function performs out-of-bounds pointer arithmetic

Details

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`.

Severity

Not rated by the source.

Dates

Published
2026-05-28 12:00 UTC
Modified
2026-06-29 14:45 UTC

Affected packages and fixes

solana_rbpf

crates.io · All systems

Affected

  • introduced 0.8.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences