Linuxカーネルの匿名inode処理により情報漏洩が発生する脆弱性
タイトル Linuxカーネルの匿名inode処理により情報漏洩が発生する脆弱性
概要

Linuxカーネルでは、fs: anon_inode_make_secure_inode()のエクスポートにより、secretmemのLSMバイパス問題が修正されました。この対応によって、KVMのguest_memfdが適切なセキュリティコンテキストで匿名inodeを作成できるようになり、セキュリティ上の回避策やリグレッションを解消します。今後、guest_memfdがcore-mmに移行した場合には、本シンボルのエクスポートは不要になります。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2025年7月25日0:00
登録日 2025年12月25日16:59
最終更新日 2025年12月25日16:59
CVSS3.0 : 重要
スコア 7.8
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
影響を受けるシステム
Debian
Debian GNU/Linux 11.0
Linux
Linux Kernel 6.0 から 6.1.146 未満
Linux Kernel 6.13 から 6.15.6 未満
Linux Kernel 6.16
Linux Kernel 6.2 から 6.6.97 未満
Linux Kernel 6.7 から 6.12.37 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2025年12月25日]
  掲載
2025年12月25日16:59

NVD脆弱性情報
CVE-2025-38396
概要

In the Linux kernel, the following vulnerability has been resolved:

fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass

Export anon_inode_make_secure_inode() to allow KVM guest_memfd to create
anonymous inodes with proper security context. This replaces the current
pattern of calling alloc_anon_inode() followed by
inode_init_security_anon() for creating security context manually.

This change also fixes a security regression in secretmem where the
S_PRIVATE flag was not cleared after alloc_anon_inode(), causing
LSM/SELinux checks to be bypassed for secretmem file descriptors.

As guest_memfd currently resides in the KVM module, we need to export this
symbol for use outside the core kernel. In the future, guest_memfd might be
moved to core-mm, at which point the symbols no longer would have to be
exported. When/if that happens is still unclear.

公表日 2025年7月25日22:15
登録日 2025年7月26日4:01
最終更新日 2025年7月25日22:15
関連情報、対策とツール
共通脆弱性一覧