# CVE-2025-37962: ksmbd: fix memory leak in parse\_lease\_state()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-20T16:01:54.612Z
- **Modified:** 2026-06-17T09:15:47.067Z

## 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

## 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

- 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)

## Mitigation

- Upgrade Linux to 6.14 or later.
- Upgrade Linux to 6.14.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/facf22c1a394c1e023dab5daf9a494f722771e1c>
- patch: <https://git.kernel.org/stable/c/af9e2d4732a548db8f6f5a90c2c20a789a3d7240>
- patch: <https://git.kernel.org/stable/c/2148d34371b06dac696c0497a98a6bf905a51650>
- patch: <https://git.kernel.org/stable/c/829e19ef741d9e9932abdc3bee5466195e0852cf>
- patch: <https://git.kernel.org/stable/c/eb4447bcce915b43b691123118893fca4f372a8f>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37962>

HTML: <https://flawdb.com/CVE-2025-37962> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37962>
