RUSTSEC-2021-0108

Source
https://rustsec.org/advisories/RUSTSEC-2021-0108
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0108.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0108
Aliases
Published
2021-07-25T12:00:00Z
Modified
2023-11-08T04:07:22.625998Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / ckb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.40.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": []
}