CVE-2025-71312
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
27/05/2026
Última modificación:
27/05/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
fs/ntfs3: fix ntfs_mount_options leak in ntfs_fill_super()<br />
<br />
In ntfs_fill_super(), the fc->fs_private pointer is set to NULL without<br />
first freeing the memory it points to. This causes the subsequent call to<br />
ntfs_fs_free() to skip freeing the ntfs_mount_options structure.<br />
<br />
This results in a kmemleak report:<br />
<br />
unreferenced object 0xff1100015378b800 (size 32):<br />
comm "mount", pid 582, jiffies 4294890685<br />
hex dump (first 32 bytes):<br />
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................<br />
00 00 00 00 00 00 00 00 ed ff ed ff 00 04 00 00 ................<br />
backtrace (crc ed541d8c):<br />
__kmalloc_cache_noprof+0x424/0x5a0<br />
__ntfs_init_fs_context+0x47/0x590<br />
alloc_fs_context+0x5d8/0x960<br />
__x64_sys_fsopen+0xb1/0x190<br />
do_syscall_64+0x50/0x1f0<br />
entry_SYSCALL_64_after_hwframe+0x76/0x7e<br />
<br />
This issue can be reproduced using the following commands:<br />
fallocate -l 100M test.file<br />
mount test.file /tmp/test<br />
<br />
Since sbi->options is duplicated from fc->fs_private and does not<br />
directly use the memory allocated for fs_private, it is unnecessary to<br />
set fc->fs_private to NULL.<br />
<br />
Additionally, this patch simplifies the code by utilizing the helper<br />
function put_mount_options() instead of open-coding the cleanup logic.



