Advisory

GHSA-mcmr-49x3-4jqm

Also known as: None

Summary

ckb type_id script resume may randomly fail

Details

Impact
https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879
TypeIdSystemScript resume handle is not correct when max_cycles is not enough, ScriptError::ExceededMaximumCycles will be raised directly ranther than suspend as expect, and also because script_group execution order is random, so this will happen randomly.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-11-02 18:15 UTC
Modified
2022-11-02 18:15 UTC

Affected packages and fixes

ckb

crates.io · All systems

Affected

  • introduced 0.100.0, fixed 0.102.0 (semver)

Fixed versions

0.102.0

Fix

  • Fixed version 0.102.0
    cargo update -p ckb --precise 0.102.0

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