Memory Leak Vulnerability in ksmbd Package

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002528: ksmbd: fix memleak in get_file_stream_info(). Affects Kernel versions >= 34061d6b76a41b1e43c19e1e50d98e5d77f77d4e, < 11e659827c3a2facb3a04e08cc97ff14d5091f51. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The ksmbd package is a component of the Linux Kernel ecosystem. It provides support for the Server Message Block (SMB) protocol, allowing Linux systems to act as SMB servers. The package enables file and printer sharing between Linux and Windows systems. However, a memory leak vulnerability has been discovered in the ksmbd package.

Vulnerability Detail

The vulnerability, identified as GSD-2021-1002528, is caused by a memory leak in the get_file_stream_info() function of the ksmbd package. This function fails to release allocated memory, leading to a gradual depletion of system resources. An attacker could potentially exploit this vulnerability to exhaust available memory, causing denial-of-service conditions or other unpredictable behavior. The vulnerability was introduced in version v5.15 of the Linux Kernel and has been fixed in version v5.15.6.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.6 or later. This update includes the commit 11e659827c3a2facb3a04e08cc97ff14d5091f51, which resolves the memory leak issue in the get_file_stream_info() function.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

No specific workaround has been provided for this vulnerability. It is advised to apply the recommended fix by updating the Linux Kernel to the latest version.

Conclusion

In conclusion, the ksmbd package in the Linux Kernel is vulnerable to a memory leak issue in the get_file_stream_info() function. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.15.6 or later. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The ksmbd package is a component of the Linux Kernel ecosystem that enables Linux systems to act as SMB servers, facilitating file and printer sharing with Windows systems.

The memory leak vulnerability in the ksmbd package can lead to a gradual depletion of system resources, potentially causing denial-of-service conditions or other unpredictable behavior.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.6 or later, which includes the necessary fix for the memory leak issue.

No specific workaround has been provided for this vulnerability. Updating the Linux Kernel to the latest version is the recommended solution.

For more information about this vulnerability, you can refer to the source link provided in the vulnerability details section of the Open Source Vulnerability format.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.6 or later. This update includes the commit 11e659827c3a2facb3a04e08cc97ff14d5091f51, which resolves the memory leak issue in the get_file_stream_info() function.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.