Skip to content

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

Unknown
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

1 package: 0 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
crates.io solana_rbpf(crates.io) >= 0.8.0 No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
crates.io solana_rbpf(crates.io) >= 0.8.0 No fix listed

References