Memory Allocation Failure in Linux Kernel's SMB Client - Linux Package Vulnerability

linux Updated 02 Oct 2025

Summary

05/11/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-50120: In the Linux kernel, the following vulnerability has been resolved: smb: client: Handle kstrdup failures for passwords In smb3_reconfigure(), after duplicating ctx->password and ctx->password2 with kstrdup(), we need to... Affects linux versions < 6.11.6-1. Fixed in 6.11.6-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, process control, and system security. The Linux package in Debian distributions is crucial for system stability and performance. This vulnerability affects the SMB (Server Message Block) client functionality, which is responsible for file sharing and network communication between systems. The vulnerability arises from improper handling of memory allocation failures, which could lead to system instability or crashes.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the SMB client where the function smb3_reconfigure() fails to properly handle memory allocation failures when duplicating password strings using kstrdup(). If the allocation for ses->password fails, the function should return -ENOMEM. If the allocation for ses->password2 fails, it should free ses->password, set it to NULL, and return -ENOMEM. This oversight can lead to potential denial of service conditions, as the system may not handle these errors gracefully.

How To Fix

Minimum fixed version

6.11.6-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. The best course of action is to apply the patch by updating to the fixed version of the Linux package.

Conclusion

In summary, the vulnerability in the Linux kernel's SMB client poses a risk due to improper handling of memory allocation failures. It is crucial to update to the patched version 6.11.6-1 to mitigate potential risks. Regular monitoring and timely updates are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability involves improper handling of memory allocation failures in the SMB client of the Linux kernel.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

If exploited, this vulnerability could lead to denial of service conditions, causing system instability or crashes.

Yes, the patched version is 6.11.6-1. Updating to this version will resolve the vulnerability.

While there are no specific workarounds, it is recommended to monitor your system closely and apply the update as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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