# CVE-2021-46102: Integer overflow in solana_rbpf

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.93%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-01-27T17:44:59.000Z
- Modified: 2026-06-17T04:14:32.753Z
- Also known as: GHSA-xwqr-xmgg-j69q
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

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";

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- solana_rbpf (crates.io): from 0.2.14 before 0.2.17
- solanalabs rbpf: from 0.2.14 up to 0.2.16

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://blocksecteam.medium.com/new-integer-overflow-bug-discovered-in-solana-rbpf-7729717159ee> (exploit, third-party-advisory, web)
- <https://github.com/solana-labs/rbpf/blob/c14764850f0b83b58aa013248eaf6d65836c1218/src/elf.rs#L609-L630> (exploit, third-party-advisory, web)
- <https://github.com/solana-labs/rbpf/pull/200> (patch, third-party-advisory, web)
- <https://github.com/solana-labs/rbpf/pull/236> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46102> (advisory)
- <https://github.com/solana-labs/rbpf> (package)
- <https://github.com/solana-labs/rbpf/releases/tag/v0.2.17> (web)

## Sources

- CVE List: [CVE-2021-46102](https://www.cve.org/CVERecord?id=CVE-2021-46102), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-xwqr-xmgg-j69q](https://github.com/advisories/GHSA-xwqr-xmgg-j69q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-46102](https://nvd.nist.gov/vuln/detail/CVE-2021-46102), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46102 · Whole record: https://cve.day/CVE-2021-46102.json · Rebuilt by cve.day 2026-11-25T22:58:06.678Z
