Integer overflow in Solanalabs Rbpf
CVE-2021-46102
From version 0.2.14 to 0.2.16 for Solana rBPF, function "relocate" in the file src/elf.rs has an integer overflow bug because the sym.st_value is read directly from ELF file without checking. If the sym.st_value is rather large, an integer overflow is triggered while calculating the variable "addr" via "addr = (sym.st_value + refd_pa) as u64";
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.019 (78.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 79th percentile — 78.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.019 · newest: 0.019 · change: 0.000
Affected products
Weakness classification (CWE)
References
- blocksecteam.medium.com/new-integer-overflow-bug-discovered-in-solana-rbpf-7729… (Exploit, Third Party Advisory)
- github.com/solana-labs/rbpf/blob/c14764850f0b83b58aa013248eaf6d65836c1218/src/e… (Exploit, Third Party Advisory)
- github.com/solana-labs/rbpf/pull/200 (Patch, Third Party Advisory)
- github.com/solana-labs/rbpf/pull/236 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-46102?
- CVE-2021-46102 is a high-severity vulnerability in Solanalabs Rbpf, classified under Integer Overflow or Wraparound. CVSS score: 7.5/10. Published 2022-01-27.
- How severe is CVE-2021-46102?
- High severity. CVSS v3 base score is 7.5 out of 10.