Memory Leak Vulnerability in Linux Kernel's ksmbd Package

linux Updated 02 Oct 2025

Summary

20/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-37962: 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. Affects linux versions < 6.1.140-1. Fixed in 6.1.140-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system operations. The ksmbd module allows for SMB (Server Message Block) protocol support, enabling file sharing and printing services over a network. This vulnerability affects Debian versions 12 and 13 of the Linux kernel, which are widely used in various distributions.

Vulnerability Detail

The vulnerability, identified as CVE-2025-37962, arises from a memory leak in the ksmbd module's parse_lease_state() function. A recent patch introduced bounds checks for creating lease contexts, but it inadvertently caused a memory leak. When the bounds check fails, the function returns NULL without freeing the previously allocated lease_ctx_info structure, leading to potential memory exhaustion and degraded system performance.

How To Fix

Minimum fixed version

6.1.140-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. It is advisable to apply the patch as soon as it becomes available to mitigate any risks associated with the memory leak.

Conclusion

The CVE-2025-37962 vulnerability in the Linux kernel's ksmbd module presents a significant risk due to a memory leak issue. Users are encouraged to update their systems promptly to mitigate potential impacts. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-37962 is a vulnerability in the Linux kernel's ksmbd module that causes a memory leak due to improper handling of lease context bounds checks.

This vulnerability can lead to memory exhaustion, which may degrade system performance and stability over time.

Yes, Debian versions 12 and 13 of the Linux kernel are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

While there are no specific workarounds, it is crucial to monitor your system for any unusual behavior and apply the patch as soon as it is available.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.140-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback