CVE-2024-7884
概要

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.

公表日 2024年9月5日22:15
登録日 2024年9月6日5:00
最終更新日 2024年9月13日5:47
CVSS3.1 : HIGH
スコア 7.5
ベクター 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)
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
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:*:*
関連情報、対策とツール
共通脆弱性一覧

JVN脆弱性情報
dfinity の Rust 用 canister developer kit for the internet computer における有効期限後のメモリの解放の欠如に関する脆弱性
タイトル dfinity の Rust 用 canister developer kit for the internet computer における有効期限後のメモリの解放の欠如に関する脆弱性
概要

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

想定される影響 サービス運用妨害 (DoS) 状態にされる可能性があります。
対策

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

公表日 2024年9月5日0:00
登録日 2024年9月17日13:50
最終更新日 2024年9月17日13:50
影響を受けるシステム
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 (共通脆弱性タイプ一覧)
その他
変更履歴
No 変更内容 変更日
1 [2024年09月17日]
  掲載
2024年9月17日13:50