Skip to content

Incorrect Calculation in solana_rbpf

Critical severity GitHub Reviewed Published May 10, 2022 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

cargo solana_rbpf (Rust)

Affected versions

>= 0.2.26, < 0.2.28

Patched versions

0.2.28

Description

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.

References

Published by the National Vulnerability Database May 9, 2022
Published to the GitHub Advisory Database May 10, 2022
Reviewed May 24, 2022
Last updated Jan 27, 2023

Severity

Critical
9.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Weaknesses

CVE ID

CVE-2022-23066

GHSA ID

GHSA-9qmm-4mfr-r3wj

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.