{"id":"CVE-2021-46102","aliases":["CVE-2021-46102","GHSA-xwqr-xmgg-j69q"],"related":[],"kind":"vulnerability","state":"published","title":"Integer overflow in solana_rbpf","summary":"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\";","summarySource":"cvelist","descriptions":[{"lang":"en","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\";","source":"cvelist"},{"lang":"en","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`","format":"markdown","source":"ghsa"},{"lang":"es","text":"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\"","source":"nvd"}],"published":"2022-01-27T17:44:59.000Z","modified":"2026-06-17T04:14:32.753Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.2.14","status":"affected","fixed":"0.2.17"}],"ecosystem":"crates.io","package":"solana_rbpf","purl":"pkg:cargo/solana_rbpf","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.2.14","lastAffected":"0.2.16"}],"vendor":"solanalabs","product":"rbpf","cpe":"cpe:2.3:a:solanalabs:rbpf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://blocksecteam.medium.com/new-integer-overflow-bug-discovered-in-solana-rbpf-7729717159ee","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/solana-labs/rbpf/blob/c14764850f0b83b58aa013248eaf6d65836c1218/src/elf.rs#L609-L630","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/solana-labs/rbpf/pull/200","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/solana-labs/rbpf/pull/236","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46102","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/solana-labs/rbpf","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/solana-labs/rbpf/releases/tag/v0.2.17","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46102","url":"https://www.cve.org/CVERecord?id=CVE-2021-46102","licence":"CVE Terms of Use","modified":"2024-08-04T05:02:10.272Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xwqr-xmgg-j69q","url":"https://github.com/advisories/GHSA-xwqr-xmgg-j69q","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:25.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46102","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46102","licence":"Public domain","modified":"2026-06-17T04:14:32.753Z"}],"updatedAt":"2026-11-25T22:58:06.678Z","epss":{"score":0.01934,"percentile":0.80638,"date":"2026-12-01T12:00:22.000Z"}}