CVE-2021-46102
HIGH 7.5CVSS 3.1Integer overflow in solana_rbpf
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";
- Published
- 27 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- GHSA-xwqr-xmgg-j69q
- Sources
- NVDJSONOSV GHSA-xwqr-xmgg-j69qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | solanalabs | rbpfcpe:2.3:a:solanalabs:rbpf:*:*:*:*:*:*:*:* |
>= 0.2.14, <= 0.2.16 | |
| OSV | crates.io | solana_rbpf | >= 0.2.14, < 0.2.17 | 0.2.17 |
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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 27 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jan 2022)