CVE-2021-46102
Summary
| CVE | CVE-2021-46102 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-01-27 18:15:00 UTC |
| Updated | 2023-04-26 19:10:00 UTC |
| 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"; |
Risk And Classification
Problem Types: CWE-190
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Solana | Rbpf | All | All | All | All |
| Application | Solanalabs | Rbpf | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Fix: Unchecked integer arithmetic in elf.rs by Lichtso · Pull Request #236 · solana-labs/rbpf · GitHub | MISC | github.com | |
| rbpf/elf.rs at c14764850f0b83b58aa013248eaf6d65836c1218 · solana-labs/rbpf · GitHub | MISC | github.com | |
| New Integer Overflow Bug Discovered in Solana rBPF | by BlockSecTeam | Dec, 2021 | Medium | MISC | blocksecteam.medium.com | |
| Implement handling of R_BPF_64_64 relocations used in ld_imm64 by dmakarov · Pull Request #200 · solana-labs/rbpf · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.