CRITICAL9.1
GHSA-9qmm-4mfr-r3wj
Incorrect Calculation in solana_rbpf
Details
In Solana rBPF versions 0.2.26 and 0.2.27 are affected by Incorrect Calculation which is caused by improper implementation of sdiv instruction. This can lead to the wrong execution path, resulting in huge loss in specific cases. For example, the result of a sdiv instruction may decide whether to transfer tokens or not. The vulnerability affects both integrity and may cause serious availability problems.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/solana_rbpf
Introduced in:
0.2.26Fixed in: 0.2.28Upgrade solana_rbpf to 0.2.28 or newer (ecosystem crates.io).
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-23066[ADVISORY]
- https://github.com/solana-labs/rbpf/commit/e61e045f8c244de978401d186dcfd50838817297[WEB]
- https://blocksecteam.medium.com/how-a-critical-bug-in-solana-network-was-detected-and-timely-patched-a701870e1324[WEB]
- https://github.com/solana-labs/rbpf[PACKAGE]
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2022-23066[WEB]