Memory Leak Vulnerability in Linux Kernel (CVE-2022-50107)

linux Updated 02 Oct 2025

Summary

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

CVE-2022-50107: In the Linux kernel, the following vulnerability has been resolved: cifs: Fix memory leak when using fscache If we hit the 'index == next_cached' case, we leak a refcount on the struct page. 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 many operating systems, including Debian. It manages system resources and hardware communication, providing essential services for software applications. The kernel is known for its stability and performance, but like any complex software, it can have vulnerabilities. CVE-2022-50107 is a specific issue that affects the CIFS (Common Internet File System) implementation in the Linux kernel, leading to potential memory leaks under certain conditions.

Vulnerability Detail

CVE-2022-50107 is a memory leak vulnerability that occurs in the CIFS subsystem of the Linux kernel. When the condition 'index == next_cached' is met, a reference count on the struct page is leaked, which can lead to increased memory usage and potentially exhaust system resources. This vulnerability can affect system performance and stability, especially in environments with high file system activity.

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-50107 is a significant memory leak vulnerability in the Linux kernel's CIFS implementation. Users are encouraged to update to the patched version to mitigate potential risks. Regular monitoring and timely updates are essential for maintaining system integrity and performance.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50107 is a memory leak vulnerability in the CIFS implementation of the Linux kernel that can lead to increased memory usage.

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

The main consequence is a potential memory leak that can degrade system performance and stability over time.

Yes, a patch is available in version 6.0.2-1 of the Linux kernel. Users should update to this version or later.

While there are no specific workarounds, it is advisable to monitor your system's memory usage and plan for an update as soon as possible.

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