Advisory

GHSA-xwqr-xmgg-j69q

Also known as: CVE-2021-46102

Summary

Integer overflow in solana_rbpf

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-28 22:59 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

solana_rbpf

crates.io · All systems

Affected

  • introduced 0.2.14, fixed 0.2.17 (semver)

Fixed versions

0.2.17

Fix

  • Fixed version 0.2.17
    cargo update -p solana_rbpf --precise 0.2.17

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences