High
Security advisory
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";
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-46102
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:24 UTC · Revision 1
Source evidence
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";
osv:CVE-2021-46102
Complete source record
{
"id": "480951d4a4c4adba315f400f48b685432d44f75ad6c4e467b54eec22f30b3b2f",
"url": "https://osv.dev/vulnerability/CVE-2021-46102",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-46102",
"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\";",
"evidence": "osv:CVE-2021-46102",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-46102",
"aliases": [
"CVE-2021-46102",
"GHSA-xwqr-xmgg-j69q"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/solana-labs/rbpf",
"type": "GIT",
"events": [
{
"introduced": "302de4d10888dfb76534693308f4ef8060b86fcd"
},
{
"last_affected": "c14764850f0b83b58aa013248eaf6d65836c1218"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:solanalabs:rbpf:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.2.14"
},
{
"last_affected": "0.2.16"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.2.16",
"v0.2.15",
"v0.2.14"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46102.json"
}
}
],
"modified": "2026-10-20T10:54:13.465041876Z",
"provider": "osv",
"references": [
"https://github.com/solana-labs/rbpf/pull/200",
"https://github.com/solana-labs/rbpf/pull/236",
"https://blocksecteam.medium.com/new-integer-overflow-bug-discovered-in-solana-rbpf-7729717159ee",
"https://github.com/solana-labs/rbpf/blob/c14764850f0b83b58aa013248eaf6d65836c1218/src/elf.rs#L609-L630"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-46102",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384968,
"published_at": "2022-01-27T18:15:07.77+00:00"
}