製品・ソフトウェアに関する情報
LinuxのLinux Kernelにおける有効期限後のメモリの解放の欠如に関する脆弱性
Title LinuxのLinux Kernelにおける有効期限後のメモリの解放の欠如に関する脆弱性
Summary

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()を利用してコードを簡素化しています。

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

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

Publication Date May 27, 2026, midnight
Registration Date June 26, 2026, 11:49 a.m.
Last Update June 26, 2026, 11:49 a.m.
CVSS3.0 : 警告
Score 5.5
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected System
Linux
Linux Kernel 6.19 以上 6.19.4 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2026年06月26日]
  掲載
June 26, 2026, 11:49 a.m.

NVD Vulnerability Information
CVE-2025-71312
Summary

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.

Publication Date May 27, 2026, 11:16 p.m.
Registration Date May 28, 2026, 4:10 a.m.
Last Update May 27, 2026, 11:48 p.m.
Related information, measures and tools
Common Vulnerabilities List