CVE-2025-71153 ksmbd: Fix memory leak in get_file_all_info()
A memory leak in the Linux kernel's ksmbd module allows attackers to cause a denial of service by triggering a specific error path.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-71153?
CVE-2025-71153 is a medium-severity denial of service vulnerability in Linux kernel, published on 23 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2025-71153?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-71153?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-71153 being exploited?
There is no known exploitation of CVE-2025-71153 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-71153, DEBIAN-CVE-2025-71153, GHSA-q7c3-mrwp-rr4g, ROOT-OS-UBUNTU-2404-CVE-2025-71153, UBUNTU-CVE-2025-71153.