CVE-2025-37962
ksmbd: fix memory leak in parse_lease_state()
Mitigation
- Upgrade Linux to 6.14 or later.
- Upgrade Linux to 6.14.7 or later.
Who should check
- Anyone running Linux >= 629dd37acc336ad778979361c351e782053ea284, < facf22c1a394c1e023dab5daf9a494f722771e1c; >= 60b7207893a8a06c78441934931a08fdad63f18e, < af9e2d4732a548db8f6f5a90c2c20a789a3d7240; >= 800c482c9ef5910f05e3a713943c67cc6c1d4939, < 2148d34371b06dac696c0497a98a6bf905a51650; >= 9a1b6ea955e6c7b29939a6d98701202f9d9644ec, < 829e19ef741d9e9932abdc3bee5466195e0852cf; >= bab703ed8472aa9d109c5f8c1863921533363dae, < eb4447bcce915b43b691123118893fca4f372a8f; a41cd52f00907a040ca22c73d4805bb79b0d0972; >= 6.13.11, < 6.14
- Anyone running Linux >= 6.1.134, < 6.1.139; >= 6.6.87, < 6.6.91; >= 6.12.23, < 6.12.29; >= 6.14.2, < 6.14.7
Vulnerability facts
- Affected
- Linux >= 629dd37acc336ad778979361c351e782053ea284, < facf22c1a394c1e023dab5daf9a494f722771e1c; >= 60b7207893a8a06c78441934931a08fdad63f18e, < af9e2d4732a548db8f6f5a90c2c20a789a3d7240; >= 800c482c9ef5910f05e3a713943c67cc6c1d4939, < 2148d34371b06dac696c0497a98a6bf905a51650; >= 9a1b6ea955e6c7b29939a6d98701202f9d9644ec, < 829e19ef741d9e9932abdc3bee5466195e0852cf; >= bab703ed8472aa9d109c5f8c1863921533363dae, < eb4447bcce915b43b691123118893fca4f372a8f; a41cd52f00907a040ca22c73d4805bb79b0d0972; >= 6.13.11, < 6.14; Linux >= 6.1.134, < 6.1.139; >= 6.6.87, < 6.6.91; >= 6.12.23, < 6.12.29; >= 6.14.2, < 6.14.7
- Fixed in
- Linux 2148d34371b06dac696c0497a98a6bf905a51650, Linux 829e19ef741d9e9932abdc3bee5466195e0852cf, Linux 6.14, Linux 6.1.139, Linux 6.6.91, Linux 6.12.29, Linux 6.14.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-401
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 629dd37acc336ad778979361c351e782053ea284, < facf22c1a394c1e023dab5daf9a494f722771e1c; >= 60b7207893a8a06c78441934931a08fdad63f18e, < af9e2d4732a548db8f6f5a90c2c20a789a3d7240; >= 800c482c9ef5910f05e3a713943c67cc6c1d4939, < 2148d34371b06dac696c0497a98a6bf905a51650; >= 9a1b6ea955e6c7b29939a6d98701202f9d9644ec, < 829e19ef741d9e9932abdc3bee5466195e0852cf; >= bab703ed8472aa9d109c5f8c1863921533363dae, < eb4447bcce915b43b691123118893fca4f372a8f; a41cd52f00907a040ca22c73d4805bb79b0d0972; >= 6.13.11, < 6.14 | — | cvelist |
| Linux | >= 6.1.134, < 6.1.139; >= 6.6.87, < 6.6.91; >= 6.12.23, < 6.12.29; >= 6.14.2, < 6.14.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-37962. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-37962.md Affected: Linux >= 629dd37acc336ad778979361c351e782053ea284, < facf22c1a394c1e023dab5daf9a494f722771e1c; >= 60b7207893a8a06c78441934931a08fdad63f18e, < af9e2d4732a548db8f6f5a90c2c20a789a3d7240; >= 800c482c9ef5910f05e3a713943c67cc6c1d4939, < 2148d34371b06dac696c0497a98a6bf905a51650; >= 9a1b6ea955e6c7b29939a6d… Fixed in: Linux 2148d34371b06dac696c0497a98a6bf905a51650, Linux 829e19ef741d9e9932abdc3bee5466195e0852cf, Linux 6.14, Linux 6.1.139, Linux 6.6.91, Linux 6.12.29, Linux 6.14.7 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/facf22c1a394c1e023dab5daf9a494f722771e1c
- https://git.kernel.org/stable/c/af9e2d4732a548db8f6f5a90c2c20a789a3d7240
- https://git.kernel.org/stable/c/2148d34371b06dac696c0497a98a6bf905a51650
- https://git.kernel.org/stable/c/829e19ef741d9e9932abdc3bee5466195e0852cf
- https://git.kernel.org/stable/c/eb4447bcce915b43b691123118893fca4f372a8f
FAQ
Is CVE-2025-37962 being exploited?
There is no confirmed exploitation: CVE-2025-37962 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-37962?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-37962?
Linux >= 629dd37acc336ad778979361c351e782053ea284, < facf22c1a394c1e023dab5daf9a494f722771e1c; >= 60b7207893a8a06c78441934931a08fdad63f18e, < af9e2d4732a548db8f6f5a90c2c20a789a3d7240; >= 800c482c9ef5910f05e3a713943c67cc6c1d4939, < 2148d34371b06dac696c0497a98a6bf905a51650; >= 9a1b6ea955e6c7b29939a6d98701202f9d9644ec, < 829e19ef741d9e9932abdc3bee5466195e0852cf; >= bab703ed8472aa9d109c5f8c1863921533363dae, < eb4447bcce915b43b691123118893fca4f372a8f; a41cd52f00907a040ca22c73d4805bb79b0d0972; >= 6.13.11, < 6.14; Linux >= 6.1.134, < 6.1.139; >= 6.6.87, < 6.6.91; >= 6.12.23, < 6.12.29; >= 6.14.2, < 6.14.7.
Is there a fix for CVE-2025-37962?
Yes. Fixed in Linux 2148d34371b06dac696c0497a98a6bf905a51650, Linux 829e19ef741d9e9932abdc3bee5466195e0852cf, Linux 6.14, Linux 6.1.139, Linux 6.6.91, Linux 6.12.29, Linux 6.14.7. Upgrade Linux to 6.14 or later. Upgrade Linux to 6.14.7 or later.
How do I check if I'm affected by CVE-2025-37962?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.