Memory Leak Vulnerability in Linux Kernel CIFS Package

linux Updated 02 Oct 2025

Summary

18/06/2025
N/A
Yes i
Unrated
Not published

CVE-2022-50076: In the Linux kernel, the following vulnerability has been resolved: cifs: Fix memory leak on the deferred close xfstests on smb21 report kmemleak as below: unreferenced object 0xffff8881767d6200 (size 64): comm "xfs_io",... Affects linux versions < 6.0.2-1. Fixed in 6.0.2-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 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 Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. The CIFS (Common Internet File System) module allows for file sharing over a network, enabling users to access files on remote servers. This package is critical for systems that rely on network file sharing, making its security paramount. The vulnerability identified as CVE-2022-50076 pertains to a memory leak issue that can occur during the deferred close operation, potentially leading to resource exhaustion.

Vulnerability Detail

CVE-2022-50076 is a memory leak vulnerability in the CIFS module of the Linux kernel. The issue arises when the deferred close work is canceled without properly cleaning up the associated data structures, specifically the 'cifs_deferred_close' structure. This oversight can result in unreferenced memory objects persisting in the system, which may lead to increased memory usage and, ultimately, resource exhaustion. The vulnerability was detected during xfstests on smb21, where kmemleak reported unreferenced objects, indicating that memory allocated for certain operations was not released correctly. If exploited, this vulnerability could degrade system performance and stability.

How To Fix

Minimum fixed version

6.0.2-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 as soon as it is available.

Conclusion

CVE-2022-50076 is a significant memory leak vulnerability in the CIFS module of the Linux kernel that can lead to resource exhaustion. It is essential to update to the patched version to ensure system stability and security. Monitoring tools like Vulert can assist in identifying vulnerabilities in your applications.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50076 is a memory leak vulnerability in the CIFS module of the Linux kernel that can lead to resource exhaustion.

This vulnerability can cause increased memory usage, potentially leading to system performance degradation and instability.

Yes, a patch is available in version 6.0.2-1 of the Linux package. It is recommended to update to this version or later.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

While there are no specific workarounds, it is crucial to prioritize applying the patch as soon as possible to mitigate the risk associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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

Minimum fixed version

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