CVE-2025-71312·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.14% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.4
Fixed in: 6.19.4
How to fix this CVE
Update your Linux kernel to version 6.19.4 or later to address a memory leak in the NTFS3 filesystem driver. The vulnerability occurs during filesystem mounting when mount options are not properly freed, leading to kernel memory exhaustion over time. Users running affected kernel versions (6.19.x through 6.19.3) should prioritize this update to prevent potential denial-of-service conditions.
sudo dnf update kernel kernel-headers kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r — verify if running a 6.19.x version between 6.19.0 and 6.19.3
- Confirm NTFS3 driver is loaded: lsmod | grep ntfs3 — if output is empty, NTFS3 is not in use and risk is minimal
- Monitor kernel memory leaks: sudo dmesg | grep -i kmemleak — look for unreferenced objects in the ntfs_mount_options structure
- Verify patch application post-update: uname -r — should show 6.19.4 or a newer stable kernel version
FAQ
What is CVE-2025-71312?
This vulnerability is a memory leak in the Linux kernel's NTFS3 filesystem driver that occurs during mount operations. When a filesystem mount fails or completes, the mount options structure is not properly freed, causing kernel memory to accumulate over repeated mount attempts.
Is CVE-2025-71312 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it can still be triggered locally by repeatedly mounting NTFS3 filesystems.
What versions of Kernel are affected by CVE-2025-71312?
Linux kernel versions 6.19.0 through 6.19.3 are affected. The vulnerability was patched in kernel 6.19.4 and subsequent releases.
How do I check if my server is vulnerable to CVE-2025-71312?
Run 'uname -r' to check your kernel version — if it shows 6.19.0, 6.19.1, 6.19.2, or 6.19.3, you are vulnerable. Additionally, run 'lsmod | grep ntfs3' to confirm if the NTFS3 driver is active on your system.
Does Defensia detect CVE-2025-71312?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel version is detected on your monitored servers, CVE-2025-71312 will appear in your dashboard with remediation steps and patch availability.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-71312. Free for 1 server.
Get started free