Vulnerability RUSTSEC-2021-0108

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
5 years ago
July 25, 2021 at 12:00 PM UTC
Remote memory exhaustion in ckb
0.1.0 - 0.39.1
0.1.0 - 0.39.1

Summary

Remote memory exhaustion in ckb

Details

In the ckb sync protocol, SyncState maintains a HashMap called 'misbehavior' that keeps a score of a peer's violations of the protocol. This HashMap is keyed to PeerIndex (an alias for SessionId), and entries are never removed from it. SessionId is an integer that increases monotonically with every new connection.

A remote attacker can manipulate this HashMap to grow forever, resulting in degraded performance and ultimately a panic on allocation failure or being killed by the OS, depending on the platform.

This is a critical severity security bug. It could be exploited to create a targeted or network-wide denial of service, to reduce the hash power of the network as part of a 51% attack, and perhaps in other creative ways.

Impacted packages

Timeline

Published
5 years ago
July 25, 2021 at 12:00 PM UTC
Fixed (0.40.0)
5 years ago
February 24, 2021 at 04:37 AM UTC
Last Modified
1 hour ago
October 12, 2026 at 06:00 PM UTC