CVE-2025-71153Published Jan 23, 2026 · Jan 23Updated 3d ago
ksmbd: Fix memory leak in get_file_all_info()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ksmbd get_file_all_info() function leaks an allocated filename if vfs_getattr() fails. The input does not establish whether an attacker can trigger the failure or what access or user interaction would be required.
Engineers running Linux kernels with ksmbd should check their versions; affected versions were not provided.