ckb
Affected
- introduced
0, fixed0.34.2(semver)
Fixed versions
0.34.2
Fix
- Fixed version
0.34.2cargo update -p ckb --precise 0.34.2
Advisory
Also known as: None
Nervos CKB Snappy decompress length can be very large and causes out of memory error
Impact
Adversary can create message which compressed size is less than the package limit but the decompressed length is very large such as 1G. It will cost the node many memories to process the network messages, and on the system with less than 1G memory, the process is killed directly because of out of memory error.
Patches
The node must check the decompress length before allocating the memory for the message.
References
High Basis: The source's own band: HIGH
0, fixed 0.34.2 (semver)0.34.2
0.34.2cargo update -p ckb --precise 0.34.2Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0