CVE-2022-23066 Solana rBPF - Incorrect Calculation in sdiv instruction

Critical 9.1 Published Updated

Incorrect calculation in the sdiv instruction can lead to wrong execution paths, causing token transfer errors and availability issues in Solana rBPF.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-23066?

CVE-2022-23066 is a critical vulnerability in solana-labs rbpf, published on 9 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-682

Which versions are affected by CVE-2022-23066?

2 open source packages ship an affected version, including solana_rbpf. It affects 1 product.

PackageAffectedFixed in
solana_rbpf crates.ioFrom 0.2.260.2.28
solana_rbpf crates.ioFrom 0.2.260.2.28

Products include Solana Rbpf.

How do I fix CVE-2022-23066?

Upgrade solana_rbpf to 0.2.28 or later.

Is CVE-2022-23066 being exploited?

There is no known exploitation of CVE-2022-23066 in the wild and no public exploit code.

Sources

Also known as GHSA-9qmm-4mfr-r3wj.

Is CVE-2022-23066 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free