7.5high
Integer overflow in solana_rbpf
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.93% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-xwqr-xmgg-j69q
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";
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| solana_rbpf (crates.io) | from 0.2.14 before 0.2.17 | GitHub Advisory Database |
| solanalabs rbpf | from 0.2.14 up to 0.2.16 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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";
GitHub Advisory Database
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
NVD (es)
De la versión 0.2.14 a 0.2.16 para Solana rBPF, la función "relocate" en el archivo src/elf.rs presenta un bug de desbordamiento de enteros porque el sym.st_value es leído directamente del archivo ELF sin comprobarlo. Si el sym.st_value es bastante grande, es producido un desbordamiento de enteros mientras es calculada la variable "addr" por medio de "addr = (sym.st_value + refd_pa) as u64"
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46102 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xwqr-xmgg-j69q changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-46102 changed 2026-06-17 | Public domain |