lucet-runtime に 解放後使用 (Use-After-Free) (CVE-2021-43790)
概要
lucet-runtime に 脆弱性 (CVE-2021-43790) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。Instance 経由で攻撃可能。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
There is a bug in the main branch of Lucet's lucet-runtime that allows a use-after-free in an Instance object that could result in memory corruption, data race, or other related issues. This bug was introduced early in the development of Lucet and is present in all releases. As a result of this bug, and dependent on the memory backing for the Instance objects, it is possible to trigger a use-after-free when the Instance is dropped.
Patches
Users should upgrade to the main branch of the Lucet repository. Lucet does not provide versioned releases on crates.io.
Workarounds
There is no way to remediate this vulnerability without upgrading.
Description
Lucet uses a "pool" allocator for new WebAssembly instances that are created. This pool allocator manages everything from the linear memory of the wasm instance, the runtime stack for async switching, as well as the memory behind the Instance itself. Instances are referred to via an InstanceHandle type which will, on drop, release the memory backing the Instance back to the pool.
When an Instance is dropped, the fields of the Instance are destructed top-to-bottom, however when the alloc: Alloc field is destructed, the memory backing the Instance is released back to the pool before the destructors of the remaining fields are run. If another thread allocates the same memory from the pool while these destructors are still running, a race condition occurs that can lead to use-after-free e…
出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
lucet-runtime という製品で、CVE-2021-43790 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに Instance のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「lucet-runtime CVE-2021-43790」を検索してください。
CVE-2021-43790 (lucet-runtime) — CWE-416
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: Instance / main / Instances / InstanceHandle
暫定回避: There is no way to remediate this vulnerability without upgrading.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
lucet-runtime に 解放後使用 (use-after-free) (CWE-416) があります。攻撃者は Instance を経由して脆弱な処理に到達できます。
lucet-runtime の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: Instance / main / Instances / InstanceHandle。
重要度: ?。悪用されるとシステム全体を乗っ取られる可能性があります。
ベンダー公式アドバイザリの修正版に更新してください。
暫定回避: There is no way to remediate this vulnerability without upgrading.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'lucet-runtime' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
lucet-runtimeを grep し、稼働しているサービス・バージョンを把握する。 -
2暫定回避策の適用 mitigate
There is no way to remediate this vulnerability without upgrading.パッチが適用されるまでの応急処置として、There is no way to remediate this vulnerability without upgrading. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web crates.io
- web rustsec.org