Memory Leak in jffs2_do_mount_fs in Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001617: jffs2: fix memory leak in jffs2_do_mount_fs. Affects Kernel versions >= e631ddba588783edd521c5a89f7b2902772fb691, < 5f34310d1376ca5b2ed798258def2c2ab3cc6699. 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 Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities, such as device drivers, memory management, and process scheduling. The jffs2 file system is a flash-friendly file system designed for use with embedded devices. It is commonly used in Linux-based systems to store data on flash memory. However, a vulnerability has been identified in the jffs2_do_mount_fs function, which can lead to a memory leak.

Vulnerability Detail

The vulnerability in jffs2_do_mount_fs function allows an attacker to cause a memory leak. When mounting a jffs2 file system, the function fails to release allocated memory in certain error scenarios. This can result in a gradual depletion of system memory, leading to performance degradation or even a denial of service condition. The vulnerability was introduced in version v2.6.15 of the Linux Kernel and has been fixed in version v5.16.19.

How To Fix

No fixed version is published for this vulnerability.

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

Workaround

As a temporary workaround, users can avoid mounting jffs2 file systems until the Kernel is updated to a fixed version. This can be achieved by modifying the system configuration to prevent the automatic mounting of jffs2 file systems or by manually unmounting any existing jffs2 file systems.

Conclusion

In conclusion, a memory leak vulnerability has been identified in the jffs2_do_mount_fs function of the Kernel. This vulnerability can lead to a gradual depletion of system memory and potential performance degradation or denial of service. It is recommended to update the Linux Kernel to version v5.16.19 or later to fix this vulnerability. Users can also use Vulert's playground (https://vulert.com/scanner) to check if their system is affected and receive real-time alerts for open-source vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a memory leak, causing gradual depletion of system memory and potential performance degradation or denial of service.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze the dependencies and alert you if any vulnerabilities are found.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the fix as soon as possible to mitigate any potential risks.

No, manual release of allocated memory is not recommended as it may lead to system instability or crashes. It is best to apply the official fix provided by the Linux Kernel developers.

Yes, there are alternative file systems available for use in Linux-based systems, such as ext4, XFS, and Btrfs. These file systems have their own advantages and considerations, so it is recommended to evaluate the specific requirements of your system before choosing an alternative.

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.

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