NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-7884
Summary

When a canister method is called via ic_cdk::call* , a new Future CallFuture is created and can be awaited by the caller to get the execution result. Internally, the state of the Future is tracked and stored in a struct called CallFutureState. A bug in the polling implementation of the CallFuture allows multiple references to be held for this internal state and not all references were dropped before the Future is resolved. Since we have unaccounted references held, a copy of the internal state ended up being persisted in the canister's heap and thus causing a memory leak.
Impact Canisters built in Rust with ic_cdk and ic_cdk_timers are affected. If these canisters call a canister method, use timers or heartbeat, they will likely leak a small amount of memory on every such operation. In the worst case, this could lead to heap memory exhaustion triggered by an attacker. Motoko based canisters are not affected by the bug.
PatchesThe patch has been backported to all minor versions between >= 0.8.0, <= 0.15.0. The patched versions available are 0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1 and their previous versions have been yanked. WorkaroundsThere are no known workarounds at the moment. Developers are recommended to upgrade their canister as soon as possible to the latest available patched version of ic_cdk to avoid running out of Wasm heap memory.
Upgrading the canisters (without updating `ic_cdk`) also frees the leaked memory but it's only a temporary solution.

Publication Date Sept. 5, 2024, 10:15 p.m.
Registration Date Sept. 6, 2024, 5 a.m.
Last Update Sept. 13, 2024, 5:47 a.m.
CVSS3.1 : HIGH
スコア 7.5
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C) なし
完全性への影響(I) なし
可用性への影響(A)
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:0.15.0:*:*:*:*:rust:*:*
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:*:*:*:*:*:rust:*:* 0.8.0 0.8.2
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:*:*:*:*:*:rust:*:* 0.9.0 0.9.3
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:0.10.0:*:*:*:*:rust:*:*
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:*:*:*:*:*:rust:*:* 0.11.0 0.11.6
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:*:*:*:*:*:rust:*:* 0.12.0 0.12.2
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:*:*:*:*:*:rust:*:* 0.13.0 0.13.5
cpe:2.3:a:dfinity:canister_developer_kit_for_the_internet_computer:0.14.0:*:*:*:*:rust:*:*
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
dfinity の Rust 用 canister developer kit for the internet computer における有効期限後のメモリの解放の欠如に関する脆弱性
Title dfinity の Rust 用 canister developer kit for the internet computer における有効期限後のメモリの解放の欠如に関する脆弱性
Summary

dfinity の Rust 用 canister developer kit for the internet computer には、有効期限後のメモリの解放の欠如に関する脆弱性が存在します。

Possible impacts サービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date Sept. 5, 2024, midnight
Registration Date Sept. 17, 2024, 1:50 p.m.
Last Update Sept. 17, 2024, 1:50 p.m.
Affected System
dfinity
canister developer kit for the internet computer 0.10.0
canister developer kit for the internet computer 0.11.0 以上 0.11.6 未満
canister developer kit for the internet computer 0.12.0 以上 0.12.2 未満
canister developer kit for the internet computer 0.13.0 以上 0.13.5 未満
canister developer kit for the internet computer 0.14.0
canister developer kit for the internet computer 0.15.0
canister developer kit for the internet computer 0.8.0 以上 0.8.2 未満
canister developer kit for the internet computer 0.9.0 以上 0.9.3 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2024年09月17日]
  掲載
Sept. 17, 2024, 1:50 p.m.