Linux Kernelのメモリ管理テストに解放後使用の脆弱性
概要
Linux Kernelのメモリ管理テスト「debug_vm_pgtable」で、テスト終了時にページテーブルのエントリが消されず残ってしまう問題です。残ったエントリを別のプロセスが参照すると不具合が起きるおそれがあり、CVSSは7.0です。影響を受けるのは5.15.190より前の5.15系、6.1.149より前の6.1系、6.6.103より前の6.6系、6.12.44より前の6.12系、6.16.4より前の6.16系などで、5.15.190、6.1.149、6.6.103、6.12.44、6.16.4以降に修正されています。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Kernel という製品で、CVE-2025-39776 という番号がついた弱点 (脆弱性) が見つかりました。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 7.0/10 です。
対策: Kernel を 5.15.190, 6.1.149, 6.6.103, 6.12.44, 6.16.4 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「Kernel CVE-2025-39776」を検索してください。
CVE-2025-39776 (Kernel) — CWE-416 / CVSS v3 7.0
攻撃ベクター: ローカル / 被害者操作不要
修正バージョン: 5.15.190, 6.1.149, 6.6.103, 6.12.44, 6.16.4 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
Kernel に 解放後使用 (use-after-free) (CWE-416) があります。
Kernel の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 重要 (CVSS 7.0/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
5.15.190, 6.1.149, 6.6.103, 6.12.44, 6.16.4 に更新してください。
修正版が未提供時は、影響機能の無効化・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 5.15.190, 6.1.149, 6.6.103, 6.12.44, 6.16.4ステージング環境で 5.15.190, 6.1.149, 6.6.103, 6.12.44, 6.16.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| LinuxKernel |
5.15.0 以上 5.15.190 未満→ 5.15.190 5.16.0 以上 6.1.149 未満→ 6.1.149 6.2.0 以上 6.6.103 未満→ 6.6.103 6.7.0 以上 6.12.44 未満→ 6.12.44 6.13.0 以上 6.16.4 未満→ 6.16.4 |
5.15.190 6.1.149 6.6.103 6.12.44 6.16.4 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- BellSoft Alpaquita BELL-CVE-2025-39776 linux-lts 修正版あり
- Debian DEBIAN-CVE-2025-39776 linux-6.1, linux 修正版あり
- Ubuntu UBUNTU-CVE-2025-39776 linux-xilinx-zynqmp, linux-xilinx, linux-riscv-6.8 ほか 46 件 修正版あり
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
In the Linux kernel, the following vulnerability has been resolved:
mm/debug_vm_pgtable: clear page table entries at destroy_args()
The mm/debug_vm_pagetable test allocates manually page table entries for
the tests it runs, using also its manually allocated mm_struct. That in
itself is ok, but when it exits, at destroy_args() it fails to clear those
entries with the *_clear functions.
The problem is that leaves stale entries. If another process allocates an
mm_struct with a pgd at the same address, it may end up running into the
stale entry. This is happening in practice on a debug kernel with
CONFIG_DEBUG_VM_PGTABLE=y, for example this is the output with some extra
debugging I added (it prints a warning trace if pgtables_bytes goes
negative, in addition to the warning at check_mm() function):
[ 2.539353] debug_vm_pgtable: [get_random_vaddr ]: random_vaddr is 0x7ea247140000
[ 2.539366] kmem_cache info
[ 2.539374] kmem_cachep 0x000000002ce82385 - freelist 0x0000000000000000 - offset 0x508
[ 2.539447] debug_vm_pgtable: [init_args ]: args->mm is 0x000000002267cc9e
(...)
[ 2.552800] WARNING: CPU: 5 PID: 116 at include/linux/mm.h:2841 free_pud_range+0x8bc/0x8d0
[ 2.552816] Modules linked in:
[ 2.552843] CPU: 5 UID: 0 PID: 116 Comm: modprobe Not tainted 6.12.0-105.debug_vm2.el10.ppc64le+debug #1 VOLUNTARY
[ 2.552859] Hardware name: IBM,9009-41A POWER9 (architected) 0x4e0202 0xf000005 of:IBM,FW910.00 (VL910_062) hv:phyp pSeries
[…
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web lists.debian.org
- web cert-portal.siemens.com
- web github.com