CVE-2025-37962 ksmbd: fix memory leak in parse_lease_state()
A memory leak in the Linux kernel's ksmbd module allows attackers to cause a denial of service by exhausting system memory.
- 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-37962?
CVE-2025-37962 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 20 May 2025. 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 parse_lease_state()
The previous patch that added bounds check for create lease context introduced a memory leak. When the bounds check fails, the function returns NULL without freeing the previously allocated lease_ctx_info structure.
This patch fixes the issue by adding kfree(lreq) before returning NULL in both boundary check cases.
Weakness: CWE-401
Which versions are affected by CVE-2025-37962?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-37962?
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-37962 being exploited?
There is no known exploitation of CVE-2025-37962 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2025-37962, DEBIAN-CVE-2025-37962, GHSA-pgjf-j2hp-qqxv, ROOT-OS-DEBIAN-12-CVE-2025-37962, ROOT-OS-UBUNTU-2404-CVE-2025-37962, UBUNTU-CVE-2025-37962.