What’s Vulnerable › Vulnerabilities
CVE-2025-71153: ksmbd: Fix memory leak in get_file_all_info()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-01-23 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix memory leak in get_file_all_info() In get_file_all_info(), if vfs_getattr() fails, the function returns immediately without freeing the allocated filename, leading to a memory leak. Fix this by freeing the filename before returning in this error case.
Affected products
- Linux kernel: from 6.6.24 before 6.6.120; from 6.7.12 before 6.8; from 6.8.3 before 6.12.64; from 6.13 before 6.18.4; 6.19-rc1, 6.19-rc2, 6.19-rc3 — fixed in 6.12.64, 6.18.4, 6.6.120, 6.8
How to fix
Upgrade to a fixed version: Linux kernel 6.12.64, 6.18.4, 6.6.120, 6.8. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/0c56693b06a68476ba113db6347e7897475f9e4c
- https://git.kernel.org/stable/c/5012b4c812230ae066902a00442708c999111183
- https://git.kernel.org/stable/c/676907004256e0226c7ed3691db9f431404ca258
- https://git.kernel.org/stable/c/d026f47db68638521df8543535ef863814fb01b1
Get alerted when CVE-2025-71153 or the next vulnerability affects your stack