LinuxのLinux Kernelにおける有効期限後のメモリの解放の欠如に関する脆弱性
タイトル LinuxのLinux Kernelにおける有効期限後のメモリの解放の欠如に関する脆弱性
概要

Linuxカーネルにおいて、以下の脆弱性が修正されました。fs/ntfs3: ntfs_fill_super()内のntfs_mount_optionsリークを修正しました。ntfs_fill_super()関数内で、fc-fs_privateポインタが指しているメモリを解放せずにNULLに設定していました。そのため、後続のntfs_fs_free()呼び出しでntfs_mount_options構造体の解放処理がスキップされていました。これが原因で以下のようなkmemleakレポートが発生します。参照されていないオブジェクト0xff1100015378b800(サイズ32): コマンド "mount"、pid 582、ジフィー4294890685。16進ダンプ(最初の32バイト): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 ed ff ed ff 00 04 00 00 ................。バックトレース(crc ed541d8c): __kmalloc_cache_noprof+0x424/0x5a0、__ntfs_init_fs_context+0x47/0x590、alloc_fs_context+0x5d8/0x960、__x64_sys_fsopen+0xb1/0x190、do_syscall_64+0x50/0x1f0、entry_SYSCALL_64_after_hwframe+0x76/0x7e。この問題は以下のコマンドで再現可能です。fallocate -l 100M test.file、および mount test.file /tmp/test。sbi-optionsはfc-fs_privateから複製されており、fs_privateの割り当てメモリを直接使用していないため、fc-fs_privateをNULLに設定する必要はありません。さらに、このパッチではクリーンアップ処理を直接記述する代わりにヘルパー関数put_mount_options()を利用してコードを簡素化しています。

想定される影響 ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 
対策

リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

公表日 2026年5月27日0:00
登録日 2026年6月26日11:49
最終更新日 2026年6月26日11:49
CVSS3.0 : 警告
スコア 5.5
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
影響を受けるシステム
Linux
Linux Kernel 6.19 以上 6.19.4 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
変更履歴
No 変更内容 変更日
1 [2026年06月26日]
  掲載
2026年6月26日11:49

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

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

fs/ntfs3: fix ntfs_mount_options leak in ntfs_fill_super()

In ntfs_fill_super(), the fc->fs_private pointer is set to NULL without
first freeing the memory it points to. This causes the subsequent call to
ntfs_fs_free() to skip freeing the ntfs_mount_options structure.

This results in a kmemleak report:

unreferenced object 0xff1100015378b800 (size 32):
comm "mount", pid 582, jiffies 4294890685
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 ed ff ed ff 00 04 00 00 ................
backtrace (crc ed541d8c):
__kmalloc_cache_noprof+0x424/0x5a0
__ntfs_init_fs_context+0x47/0x590
alloc_fs_context+0x5d8/0x960
__x64_sys_fsopen+0xb1/0x190
do_syscall_64+0x50/0x1f0
entry_SYSCALL_64_after_hwframe+0x76/0x7e

This issue can be reproduced using the following commands:
fallocate -l 100M test.file
mount test.file /tmp/test

Since sbi->options is duplicated from fc->fs_private and does not
directly use the memory allocated for fs_private, it is unnecessary to
set fc->fs_private to NULL.

Additionally, this patch simplifies the code by utilizing the helper
function put_mount_options() instead of open-coding the cleanup logic.

公表日 2026年5月27日23:16
登録日 2026年5月28日4:10
最終更新日 2026年5月27日23:48
関連情報、対策とツール
共通脆弱性一覧