{"id":"CVE-2021-46102","published":"2022-01-27T17:44:59Z","modified":"2024-08-04T05:02:10Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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\";","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01934,"percentile":0.80551,"provenance":"source"},"cwes":[],"references":[{"url":"https://blocksecteam.medium.com/new-integer-overflow-bug-discovered-in-solana-rbpf-7729717159ee","tags":["x_refsource_MISC"]},{"url":"https://github.com/solana-labs/rbpf/blob/c14764850f0b83b58aa013248eaf6d65836c1218/src/elf.rs#L609-L630","tags":["x_refsource_MISC"]},{"url":"https://github.com/solana-labs/rbpf/pull/200","tags":["x_refsource_MISC"]},{"url":"https://github.com/solana-labs/rbpf/pull/236","tags":["x_refsource_MISC"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":16.11}]},"affected":[{"ecosystem":"crates.io","package":"solana_rbpf","vulnerableRanges":[">=0.2.14, <0.2.17"],"patched":["0.2.17"],"from":["GHSA-xwqr-xmgg-j69q"],"provenance":"source"}],"summary":{"text":"The flaw is an integer overflow in the \"relocate\" function of src/elf.rs in Solana rBPF, affecting versions 0.2.14 through 0.2.16. The function reads sym.st_value directly from the ELF file without validation, so an unusually large value causes an overflow when computing \"addr\" via \"addr = (sym.st_value + refd_pa) as u64\".","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:50Z"},"euvd":{"id":"EUVD-2022-0750","exploited":false,"provenance":"source"}}