CVE-2021-46102
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
solana_rbpf (crates.io)from 0.2.14 before 0.2.17GitHub Advisory Database
solanalabs rbpffrom 0.2.14 up to 0.2.16NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-46102 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-xwqr-xmgg-j69q changed 2023-11-08CC-BY-4.0
NVDCVE-2021-46102 changed 2026-06-17Public domain