Buffer Overflow Affecting solana_rbpf package, versions >=0.2.14 <0.2.17


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.18% (55th percentile)
Expand this section
NVD
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUST-SOLANARBPF-2386861
  • published 28 Jan 2022
  • disclosed 28 Jan 2022
  • credit Unknown

How to fix?

Upgrade solana_rbpf to version 0.2.17 or higher.

Overview

solana_rbpf is a virtual machine for eBPF program execution

Affected versions of this package are vulnerable to Buffer Overflow via the function relocate in the file src/elf.rs. The integer overflow stems from the sym.st_value which is read directly from ELF file without checking. If the sym.st_value is large, it triggers the overflow while calculating the variable addr via addr = (sym.st_value + refd_pa) as u64;.