Linux kernel の脆弱性 (CVE-2021-47069)
概要
Linux kernel に 脆弱性 (CVE-2021-47069) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。ewq_addr 経由で攻撃可能。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
In the Linux kernel, the following vulnerability has been resolved:
ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry
do_mq_timedreceive calls wq_sleep with a stack local address. The
sender (do_mq_timedsend) uses this address to later call pipelined_send.
This leads to a very hard to trigger race where a do_mq_timedreceive
call might return and leave do_mq_timedsend to rely on an invalid
address, causing the following crash:
RIP: 0010:wake_q_add_safe+0x13/0x60
Call Trace:
__x64_sys_mq_timedsend+0x2a9/0x490
do_syscall_64+0x80/0x680
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f5928e40343
The race occurs as:
-
do_mq_timedreceive calls wq_sleep with the address of
struct ext_wait_queueon function stack (aliased asewq_addrhere) - it
holds a validstruct ext_wait_queue *as long as the stack has not
been overwritten. -
ewq_addrgets added to info->e_wait_q[RECV].list in wq_add, and
do_mq_timedsend receives it via wq_get_first_waiter(info, RECV) to call
__pipelined_op. -
Sender calls __pipelined_op::smp_store_release(&this->state,
STATE_READY). Here is where the race window begins. (thisis
ewq_addr.) -
If the receiver wakes up now in do_mq_timedreceive::wq_sleep, it
will seestate == STATE_READYand break. -
do_mq_timedreceive returns, and
ewq_addris no longer guaranteed
to be astruct ext_wait_queue *since it was on do_mq_timedreceive's
stack. (Although the addr…
出典: NIST National Vulnerability Database NVD
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
Linux kernel という製品で、CVE-2021-47069 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに ewq_addr のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 7.8/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「Linux kernel CVE-2021-47069」を検索してください。
CVE-2021-47069 (Linux kernel) — CWE-672 / CVSS v3 7.8
攻撃ベクター: ローカル / 被害者操作不要
脆弱箇所: ewq_addr / this
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
Linux kernel に 脆弱性 (CWE-672) があります。攻撃者は ewq_addr を経由して脆弱な処理に到達できます。
Linux kernel の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: ewq_addr / this。
重要度: 重要 (CVSS 7.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
ベンダー公式アドバイザリの修正版に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで Linux kernel を使っているサービスとバージョンを洗い出す。
-
2事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の修正パッケージ
- Debian DEBIAN-CVE-2021-47069 linux 修正版: 5.10.40-1
- Ubuntu UBUNTU-CVE-2021-47069 linux-hwe-edge
参照URL
- patch git.kernel.org
- patch git.kernel.org
- patch git.kernel.org