Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0108
HistoryJul 25, 2021 - 12:00 p.m.

Remote memory exhaustion in ckb

2021-07-2512:00:00
Google
osv.dev
6
ckb
syncstate
hashmap
misbehavior
sessionid
integer
denial of service
51% attack

EPSS

0.002

Percentile

59.2%

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.

EPSS

0.002

Percentile

59.2%

Related for OSV:RUSTSEC-2021-0108