CVE-2025-37962

ksmbd: fix memory leak in parse_lease_state()

MEDIUM
5.5
CVSS Score
Published: May 20, 2025 at 04:01 PM UTC
Updated: June 17, 2026 at 09:15 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.13.116.1.134 ≤ v < 6.1.1396.12.23 ≤ v < 6.12.296.13.11 ≤ v < 6.146.14.2 ≤ v < 6.14.76.6.87 ≤ v < 6.6.916.1.1346.12.236.13.116.14.26.15 rc16.15 rc26.15 rc36.15 rc46.15 rc56.6.8760b7207893a8a06c78441934931a08fdad63f18e629dd37acc336ad778979361c351e782053ea284800c482c9ef5910f05e3a713943c67cc6c1d49399a1b6ea955e6c7b29939a6d98701202f9d9644eca41cd52f00907a040ca22c73d4805bb79b0d0972bab703ed8472aa9d109c5f8c1863921533363dae
Vendor states this is fixed in 2148d34371b06dac696c0497a98a6bf905a51650 (fixed)
Vendor states this is fixed in 829e19ef741d9e9932abdc3bee5466195e0852cf (fixed)
Vendor states this is fixed in af9e2d4732a548db8f6f5a90c2c20a789a3d7240 (fixed)
Vendor states this is fixed in eb4447bcce915b43b691123118893fca4f372a8f (fixed)
Vendor states this is fixed in facf22c1a394c1e023dab5daf9a494f722771e1c (fixed)
Affected range stops below 6.1.139, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.12.29, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.14.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.6.91, so it looks safe — our inference, not a vendor statement

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2148d34371b06dac696c0497a98a6bf905a51650
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/829e19ef741d9e9932abdc3bee5466195e0852cf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af9e2d4732a548db8f6f5a90c2c20a789a3d7240
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb4447bcce915b43b691123118893fca4f372a8f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/facf22c1a394c1e023dab5daf9a494f722771e1c
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card