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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-28T12:00:00.000Z
- Modified: 2026-06-29T14:45:04.175Z

## 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`](https://crates.io/crates/solana-sbpf)
crate. The issue has been fixed there in
[`anza-xyz/sbpf#151`](https://github.com/anza-xyz/sbpf/pull/151).

(As written by RustSec Advisory Database.)

## Affected

- solana_rbpf (crates.io): from 0.8.0

## References

- <https://crates.io/crates/solana_rbpf> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0191.html> (advisory)
- <https://github.com/solana-labs/rbpf> (web)
- <https://github.com/anza-xyz/sbpf/pull/151> (web)
- <https://crates.io/crates/solana-sbpf> (package)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0191](https://rustsec.org/advisories/RUSTSEC-2026-0191.html), CC0-1.0, modified 2026-06-29

---

Page: https://cve.day/RUSTSEC-2026-0191 · Whole record: https://cve.day/RUSTSEC-2026-0191.json · Rebuilt by cve.day 2026-11-25T22:56:43.376Z
