CVE-2025-37962
ksmbd: fix memory leak in parse_lease_state()
Summary
ksmbd: fix memory leak in parse_lease_state()
Original description
The description as published by the source.
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.
Affected packages
Linux
Kernel
[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.134"},{"fixed":"6.1.139"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.87"},{"fixed":"6.6.91"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.23"},{"fixed":"6.12.29"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.14.2"},{"fixed":"6.14.7"}]}]
Fix status by distribution
Fixed packages published by each distribution for this CVE
- BellSoft Alpaquita BELL-CVE-2025-37962 linux-lts Fixed in: 6.1.140-r0
- Debian DEBIAN-CVE-2025-37962 linux Fixed in: 6.1.140-1
- Ubuntu UBUNTU-CVE-2025-37962 linux-hwe-edge
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web lists.debian.org