ksmbd: Fix memory leak in get_file_all_info()
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.
02 / AFFECTED SOFTWARE
Affected packages
920 explicit affected versions
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- 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
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71153.json
- https://nvd.nist.gov/vuln/detail/CVE-2025-71153