Linuxカーネルの脆弱性、未初期化のスタック領域の扱いで情報が漏れるおそれ
概要
2024年2月に公表されたCVE-2023-52452は、LinuxカーネルのeBPFで未初期化のスタック領域へのアクセスが不適切に扱われ、想定外のデータが読み出されるおそれがある脆弱性です。影響を受けるのは5.12.0以降6.1.191未満、6.2.0以降6.6.14未満、6.7.0以降6.7.2未満のカーネルで、修正版は6.1.191、6.6.14、6.7.2です。修正版への更新をおすすめします。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Kernel という製品で、CVE-2023-52452 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。
対策: Kernel を 6.6.14, 6.7.2 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「Kernel CVE-2023-52452」を検索してください。
CVE-2023-52452 (Kernel)
修正バージョン: 6.6.14, 6.7.2 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
Kernel に 脆弱性 (分類未定) があります。
Kernel の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: ?。不正な操作・情報露出のリスクがあります。
6.6.14, 6.7.2 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'Kernel' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Kernelを grep し、稼働しているサービス・バージョンを把握する。 -
2
パッチ適用patch
Upgrade Kernel to 6.6.14, 6.7.2ステージング環境で 6.6.14, 6.7.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| LinuxKernel |
5.10.33 以上 5.11 未満→ 5.11 5.11.17 以上 5.12 未満→ 5.12 5.12.0 以上 6.1.191 未満→ 6.1.191 6.2.0 以上 6.6.14 未満→ 6.6.14 6.7.0 以上 6.7.2 未満→ 6.7.2 |
5.11 5.12 6.1.191 6.6.14 6.7.2 |
| LinuxLinux | — | 記載なし |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- BellSoft Alpaquita BELL-CVE-2023-52452 linux-lts 修正版あり
- Debian DEBIAN-CVE-2023-52452 linux 修正版あり
- Ubuntu UBUNTU-CVE-2023-52452 linux-starfive-6.5, linux-riscv-6.5, linux-raspi-realtime ほか 7 件 修正版あり
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix accesses to uninit stack slots
Privileged programs are supposed to be able to read uninitialized stack
memory (ever since 6715df8d5) but, before this patch, these accesses
were permitted inconsistently. In particular, accesses were permitted
above state->allocated_stack, but not below it. In other words, if the
stack was already "large enough", the access was permitted, but
otherwise the access was rejected instead of being allowed to "grow the
stack". This undesired rejection was happening in two places:
- in check_stack_slot_within_bounds()
- in check_stack_range_initialized()
This patch arranges for these accesses to be permitted. A bunch of tests
that were relying on the old rejection had to change; all of them were
changed to add also run unprivileged, in which case the old behavior
persists. One tests couldn't be updated - global_func16 - because it
can't run unprivileged for other reasons.
This patch also fixes the tracking of the stack size for variable-offset
reads. This second fix is bundled in the same commit as the first one
because they're inter-related. Before this patch, writes to the stack
using registers containing a variable offset (as opposed to registers
with fixed, known values) were not properly contributing to the
function's needed stack size. As a result, it was possible for a program
to verify, but then to attempt to read out-of-bounds data at runtime
because a too small s…
出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
参照URL
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com