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.
Configurations

Configuration 1 (hide)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

26 Oct 2026, 16:17

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/d977b979081ef2585a15453f309a6311c95ede02 -

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fs/ntfs3: corrección de fuga de ntfs_mount_options en ntfs_fill_super() En ntfs_fill_super(), el puntero fc -> fs_private se establece en NULL sin liberar primero la memoria a la que apunta. Esto provoca que la llamada subsiguiente a ntfs_fs_free() omita liberar la estructura ntfs_mount_options. Esto resulta en un informe de kmemleak: objeto sin referencia 0xff1100015378b800 (tamaño 32): comm 'mount', pid 582, jiffies 4294890685 volcado hexadecimal (primeros 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 ................ rastreo de pila (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 Este problema puede reproducirse usando los siguientes comandos: fallocate -l 100M test.file mount test.file /tmp/test Dado que sbi -> options se duplica de fc -> fs_private y no utiliza directamente la memoria asignada para fs_private, es innecesario establecer fc -> fs_private en NULL. Además, este parche simplifica el código al utilizar la función auxiliar put_mount_options() en lugar de codificar directamente la lógica de limpieza.

Information

Published : 2026-05-27 14:16

Updated : 2026-10-26 16:17


NVD link : CVE-2025-71312

Mitre link : CVE-2025-71312

CVE.ORG link : CVE-2025-71312


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-401

Missing Release of Memory after Effective Lifetime