Miggo Logo

CVE-2021-46102: Integer overflow in solana_rbpf

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.64989%
Published
1/28/2022
Updated
4/26/2023
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
solana_rbpfrust>= 0.2.14, < 0.2.170.2.17

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability description explicitly identifies the 'relocate' function in src/elf.rs as containing the integer overflow. The code analysis shows sym.st_value is used in an unchecked addition operation. The GitHub advisory and CVE both confirm this is the vulnerable function. The fix in v0.2.17 adds overflow checks (e.g., checked_add), validating this as the root cause location.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*rom v*rsion *.*.** to *.*.** *or Sol*n* r*P*, *un*tion "r*lo**t*" in t** *il* sr*/*l*.rs **s *n int***r ov*r*low *u* ****us* t** sym.st_v*lu* is r*** *ir**tly *rom *L* *il* wit*out ****kin*. I* t** sym.st_v*lu* is r*t**r l*r**, *n int***r ov*r*low i

Reasoning

T** vuln*r**ility **s*ription *xpli*itly i**nti*i*s t** 'r*lo**t*' *un*tion in sr*/*l*.rs *s *ont*inin* t** int***r ov*r*low. T** *o** *n*lysis s*ows sym.st_v*lu* is us** in *n un****k** ***ition op*r*tion. T** *it*u* **visory *n* *V* *ot* *on*irm t*