{"id":"RUSTSEC-2026-0191","aliases":["RUSTSEC-2026-0191"],"related":[],"kind":"vulnerability","state":"published","title":"`EbpfVm::invoke_function` performs out-of-bounds pointer arithmetic","summary":"Affected versions of `solana_rbpf` expose the safe method\n`EbpfVm::invoke_function`. This method computes an obfuscated VM pointer by\ncasting `self` to `*mut u64` and applying a randomized offset derived from\n`get_runtime_environment_key()`.\n\nThe resulting pointer arithmetic is performed with `ptr::offset`, which\nrequires the computed pointer to remain within the same allocation. In practice,\nthe randomized offset can move the pointer far outside the allocation\ncontaining the `EbpfVm`, causing undefined behavior before the supplied builtin\nfunction is invoked.\n\n## Unmaintained\n\nThe upstream `solana_rbpf` repository is archived, and no patched version of\nthis crate is currently available.\n\nUsers should migrate to the maintained [`solana-sbpf`](https://crates.io/crates/solana-sbpf)\ncrate. The issue has been fixed there in\n[`anza-xyz/sbpf#151`](https://github.com/anza-xyz/sbpf/pull/151).","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Affected versions of `solana_rbpf` expose the safe method\n`EbpfVm::invoke_function`. This method computes an obfuscated VM pointer by\ncasting `self` to `*mut u64` and applying a randomized offset derived from\n`get_runtime_environment_key()`.\n\nThe resulting pointer arithmetic is performed with `ptr::offset`, which\nrequires the computed pointer to remain within the same allocation. In practice,\nthe randomized offset can move the pointer far outside the allocation\ncontaining the `EbpfVm`, causing undefined behavior before the supplied builtin\nfunction is invoked.\n\n## Unmaintained\n\nThe upstream `solana_rbpf` repository is archived, and no patched version of\nthis crate is currently available.\n\nUsers should migrate to the maintained [`solana-sbpf`](https://crates.io/crates/solana-sbpf)\ncrate. The issue has been fixed there in\n[`anza-xyz/sbpf#151`](https://github.com/anza-xyz/sbpf/pull/151).","format":"markdown","source":"rustsec"}],"published":"2026-05-28T12:00:00.000Z","modified":"2026-06-29T14:45:04.175Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.8.0","status":"affected"}],"ecosystem":"crates.io","package":"solana_rbpf","purl":"pkg:cargo/solana_rbpf","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/solana_rbpf","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0191.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/solana-labs/rbpf","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/anza-xyz/sbpf/pull/151","tags":["web"],"sources":["rustsec"]},{"url":"https://crates.io/crates/solana-sbpf","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0191","url":"https://rustsec.org/advisories/RUSTSEC-2026-0191.html","licence":"CC0-1.0","modified":"2026-06-29T14:45:04.175Z"}],"updatedAt":"2026-11-25T22:56:43.376Z"}